Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(212)

Side by Side Diff: chrome/browser/metrics/chrome_metrics_service_client.h

Issue 717223002: Browser watcher end-end-to-end . (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git/+/lkgr
Patch Set: Move to components Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 virtual ~ChromeMetricsServiceClient(); 52 virtual ~ChromeMetricsServiceClient();
49 53
50 // Factory function. 54 // Factory function.
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 #if defined(ENABLE_PLUGINS) 163 #if defined(ENABLE_PLUGINS)
160 // The PluginMetricsProvider instance that was registered with 164 // The PluginMetricsProvider instance that was registered with
161 // MetricsService. Has the same lifetime as |metrics_service_|. 165 // MetricsService. Has the same lifetime as |metrics_service_|.
162 PluginMetricsProvider* plugin_metrics_provider_; 166 PluginMetricsProvider* plugin_metrics_provider_;
163 #endif 167 #endif
164 168
165 #if defined(OS_WIN) 169 #if defined(OS_WIN)
166 // The GoogleUpdateMetricsProviderWin instance that was registered with 170 // The GoogleUpdateMetricsProviderWin instance that was registered with
167 // MetricsService. Has the same lifetime as |metrics_service_|. 171 // MetricsService. Has the same lifetime as |metrics_service_|.
168 GoogleUpdateMetricsProviderWin* google_update_metrics_provider_; 172 GoogleUpdateMetricsProviderWin* google_update_metrics_provider_;
173
174 // The WatcherMetricsProviderWin instance that was registered with
175 // MetricsService. Has the same lifetime as |metrics_service_|.
176 browser_watcher::WatcherMetricsProviderWin* watcher_metrics_provider_;
169 #endif 177 #endif
170 178
171 #if !defined(OS_CHROMEOS) && !defined(OS_IOS) 179 #if !defined(OS_CHROMEOS) && !defined(OS_IOS)
172 // The SigninStatusMetricsProvider instance that was registered with 180 // The SigninStatusMetricsProvider instance that was registered with
173 // MetricsService. Has the same lifetime as |metrics_service_|. 181 // MetricsService. Has the same lifetime as |metrics_service_|.
174 SigninStatusMetricsProvider* signin_status_metrics_provider_; 182 SigninStatusMetricsProvider* signin_status_metrics_provider_;
175 #endif 183 #endif
176 184
177 // Callback that is called when initial metrics gathering is complete. 185 // Callback that is called when initial metrics gathering is complete.
178 base::Closure finished_gathering_initial_metrics_callback_; 186 base::Closure finished_gathering_initial_metrics_callback_;
179 187
180 // The MemoryGrowthTracker instance that tracks memory usage growth in 188 // The MemoryGrowthTracker instance that tracks memory usage growth in
181 // MemoryDetails. 189 // MemoryDetails.
182 MemoryGrowthTracker memory_growth_tracker_; 190 MemoryGrowthTracker memory_growth_tracker_;
183 191
184 base::WeakPtrFactory<ChromeMetricsServiceClient> weak_ptr_factory_; 192 base::WeakPtrFactory<ChromeMetricsServiceClient> weak_ptr_factory_;
185 193
186 DISALLOW_COPY_AND_ASSIGN(ChromeMetricsServiceClient); 194 DISALLOW_COPY_AND_ASSIGN(ChromeMetricsServiceClient);
187 }; 195 };
188 196
189 #endif // CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_CLIENT_H_ 197 #endif // CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698