OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef IOS_CHROME_BROWSER_METRICS_IOS_CHROME_STABILITY_METRICS_PROVIDER_H_ | 5 #ifndef IOS_CHROME_BROWSER_METRICS_IOS_CHROME_STABILITY_METRICS_PROVIDER_H_ |
6 #define IOS_CHROME_BROWSER_METRICS_IOS_CHROME_STABILITY_METRICS_PROVIDER_H_ | 6 #define IOS_CHROME_BROWSER_METRICS_IOS_CHROME_STABILITY_METRICS_PROVIDER_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "base/metrics/user_metrics.h" | |
10 #include "components/metrics/metrics_provider.h" | 9 #include "components/metrics/metrics_provider.h" |
11 #include "components/metrics/stability_metrics_helper.h" | 10 #include "components/metrics/stability_metrics_helper.h" |
12 #include "ios/web/public/web_state/global_web_state_observer.h" | 11 #include "ios/web/public/web_state/global_web_state_observer.h" |
13 | 12 |
14 class PrefService; | 13 class PrefService; |
15 | 14 |
16 // IOSChromeStabilityMetricsProvider gathers and logs Chrome-specific stability- | 15 // IOSChromeStabilityMetricsProvider gathers and logs Chrome-specific stability- |
17 // related metrics. | 16 // related metrics. |
18 class IOSChromeStabilityMetricsProvider : public metrics::MetricsProvider, | 17 class IOSChromeStabilityMetricsProvider : public metrics::MetricsProvider, |
19 public web::GlobalWebStateObserver { | 18 public web::GlobalWebStateObserver { |
(...skipping 17 matching lines...) Expand all Loading... |
37 private: | 36 private: |
38 metrics::StabilityMetricsHelper helper_; | 37 metrics::StabilityMetricsHelper helper_; |
39 | 38 |
40 // True if recording is currently enabled. | 39 // True if recording is currently enabled. |
41 bool recording_enabled_; | 40 bool recording_enabled_; |
42 | 41 |
43 DISALLOW_COPY_AND_ASSIGN(IOSChromeStabilityMetricsProvider); | 42 DISALLOW_COPY_AND_ASSIGN(IOSChromeStabilityMetricsProvider); |
44 }; | 43 }; |
45 | 44 |
46 #endif // IOS_CHROME_BROWSER_METRICS_IOS_CHROME_STABILITY_METRICS_PROVIDER_H_ | 45 #endif // IOS_CHROME_BROWSER_METRICS_IOS_CHROME_STABILITY_METRICS_PROVIDER_H_ |
OLD | NEW |