1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
android_webview / browser / metrics / renderer_process_metrics_provider.h [blame]
// Copyright 2021 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef ANDROID_WEBVIEW_BROWSER_METRICS_RENDERER_PROCESS_METRICS_PROVIDER_H_
#define ANDROID_WEBVIEW_BROWSER_METRICS_RENDERER_PROCESS_METRICS_PROVIDER_H_
#include "components/metrics/metrics_provider.h"
namespace android_webview {
// RendererProcessMetricsProvider is responsible for logging whether a WebView
// instance is running in single process (with an in process renderer) or multi
// process (with an out of process renderer) mode.
class RendererProcessMetricsProvider : public metrics::MetricsProvider {
public:
RendererProcessMetricsProvider() = default;
~RendererProcessMetricsProvider() override = default;
void ProvideCurrentSessionData(
metrics::ChromeUserMetricsExtension* uma_proto) override;
RendererProcessMetricsProvider(const RendererProcessMetricsProvider&) =
delete;
RendererProcessMetricsProvider& operator=(
const RendererProcessMetricsProvider&) = delete;
};
} // namespace android_webview
#endif // ANDROID_WEBVIEW_BROWSER_METRICS_RENDERER_PROCESS_METRICS_PROVIDER_H_