OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_CLIENT_H_ | 5 #ifndef CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_CLIENT_H_ |
6 #define CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_CLIENT_H_ | 6 #define CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_CLIENT_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 20 matching lines...) Expand all Loading... |
31 namespace base { | 31 namespace base { |
32 class FilePath; | 32 class FilePath; |
33 } | 33 } |
34 | 34 |
35 namespace metrics { | 35 namespace metrics { |
36 class MetricsService; | 36 class MetricsService; |
37 class MetricsStateManager; | 37 class MetricsStateManager; |
38 class ProfilerMetricsProvider; | 38 class ProfilerMetricsProvider; |
39 } | 39 } |
40 | 40 |
| 41 namespace browser_watcher { |
| 42 class WatcherMetricsProviderWin; |
| 43 } |
| 44 |
41 // ChromeMetricsServiceClient provides an implementation of MetricsServiceClient | 45 // ChromeMetricsServiceClient provides an implementation of MetricsServiceClient |
42 // that depends on chrome/. | 46 // that depends on chrome/. |
43 class ChromeMetricsServiceClient | 47 class ChromeMetricsServiceClient |
44 : public metrics::MetricsServiceClient, | 48 : public metrics::MetricsServiceClient, |
45 public metrics::TrackingSynchronizerObserver, | 49 public metrics::TrackingSynchronizerObserver, |
46 public content::NotificationObserver { | 50 public content::NotificationObserver { |
47 public: | 51 public: |
48 ~ChromeMetricsServiceClient() override; | 52 ~ChromeMetricsServiceClient() override; |
49 | 53 |
50 // Factory function. | 54 // Factory function. |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 #if defined(ENABLE_PLUGINS) | 161 #if defined(ENABLE_PLUGINS) |
158 // The PluginMetricsProvider instance that was registered with | 162 // The PluginMetricsProvider instance that was registered with |
159 // MetricsService. Has the same lifetime as |metrics_service_|. | 163 // MetricsService. Has the same lifetime as |metrics_service_|. |
160 PluginMetricsProvider* plugin_metrics_provider_; | 164 PluginMetricsProvider* plugin_metrics_provider_; |
161 #endif | 165 #endif |
162 | 166 |
163 #if defined(OS_WIN) | 167 #if defined(OS_WIN) |
164 // The GoogleUpdateMetricsProviderWin instance that was registered with | 168 // The GoogleUpdateMetricsProviderWin instance that was registered with |
165 // MetricsService. Has the same lifetime as |metrics_service_|. | 169 // MetricsService. Has the same lifetime as |metrics_service_|. |
166 GoogleUpdateMetricsProviderWin* google_update_metrics_provider_; | 170 GoogleUpdateMetricsProviderWin* google_update_metrics_provider_; |
| 171 |
| 172 // The WatcherMetricsProviderWin instance that was registered with |
| 173 // MetricsService. Has the same lifetime as |metrics_service_|. |
| 174 browser_watcher::WatcherMetricsProviderWin* watcher_metrics_provider_; |
167 #endif | 175 #endif |
168 | 176 |
169 // Callback that is called when initial metrics gathering is complete. | 177 // Callback that is called when initial metrics gathering is complete. |
170 base::Closure finished_gathering_initial_metrics_callback_; | 178 base::Closure finished_gathering_initial_metrics_callback_; |
171 | 179 |
172 // The MemoryGrowthTracker instance that tracks memory usage growth in | 180 // The MemoryGrowthTracker instance that tracks memory usage growth in |
173 // MemoryDetails. | 181 // MemoryDetails. |
174 MemoryGrowthTracker memory_growth_tracker_; | 182 MemoryGrowthTracker memory_growth_tracker_; |
175 | 183 |
176 base::WeakPtrFactory<ChromeMetricsServiceClient> weak_ptr_factory_; | 184 base::WeakPtrFactory<ChromeMetricsServiceClient> weak_ptr_factory_; |
177 | 185 |
178 DISALLOW_COPY_AND_ASSIGN(ChromeMetricsServiceClient); | 186 DISALLOW_COPY_AND_ASSIGN(ChromeMetricsServiceClient); |
179 }; | 187 }; |
180 | 188 |
181 #endif // CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_CLIENT_H_ | 189 #endif // CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_CLIENT_H_ |
OLD | NEW |