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

Side by Side Diff: chrome/browser/browser_process.h

Issue 1412113002: Componentize MetricsServicesManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@refactor_metrics_services_manager
Patch Set: Rebase Created 5 years, 2 months 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // This interface is for managing the global services of the application. Each 5 // This interface is for managing the global services of the application. Each
6 // service is lazily created when requested the first time. The service getters 6 // service is lazily created when requested the first time. The service getters
7 // will return NULL if the service is not available, so callers must check for 7 // will return NULL if the service is not available, so callers must check for
8 // this condition. 8 // this condition.
9 9
10 #ifndef CHROME_BROWSER_BROWSER_PROCESS_H_ 10 #ifndef CHROME_BROWSER_BROWSER_PROCESS_H_
(...skipping 10 matching lines...) Expand all
21 class BackgroundModeManager; 21 class BackgroundModeManager;
22 class CRLSetFetcher; 22 class CRLSetFetcher;
23 class DownloadRequestLimiter; 23 class DownloadRequestLimiter;
24 class DownloadStatusUpdater; 24 class DownloadStatusUpdater;
25 class GLStringManager; 25 class GLStringManager;
26 class GpuModeManager; 26 class GpuModeManager;
27 class IconManager; 27 class IconManager;
28 class IntranetRedirectDetector; 28 class IntranetRedirectDetector;
29 class IOThread; 29 class IOThread;
30 class MediaFileSystemRegistry; 30 class MediaFileSystemRegistry;
31 class MetricsServicesManager;
32 class NotificationUIManager; 31 class NotificationUIManager;
33 class PrefRegistrySimple; 32 class PrefRegistrySimple;
34 class PrefService; 33 class PrefService;
35 class Profile; 34 class Profile;
36 class ProfileManager; 35 class ProfileManager;
37 class SafeBrowsingService; 36 class SafeBrowsingService;
38 class StatusTray; 37 class StatusTray;
39 class WatchDogThread; 38 class WatchDogThread;
40 #if defined(ENABLE_WEBRTC) 39 #if defined(ENABLE_WEBRTC)
41 class WebRtcLogUploader; 40 class WebRtcLogUploader;
(...skipping 22 matching lines...) Expand all
64 } 63 }
65 64
66 namespace message_center { 65 namespace message_center {
67 class MessageCenter; 66 class MessageCenter;
68 } 67 }
69 68
70 namespace metrics { 69 namespace metrics {
71 class MetricsService; 70 class MetricsService;
72 } 71 }
73 72
73 namespace metrics_services_manager {
Lei Zhang 2015/10/21 14:48:44 namespace is a wee bit long. :-P
blundell 2015/10/21 14:51:21 Yeah, it's a mouthful. metrics_services_manager::M
74 class MetricsServicesManager;
75 }
76
74 namespace net { 77 namespace net {
75 class URLRequestContextGetter; 78 class URLRequestContextGetter;
76 } 79 }
77 80
78 namespace net_log { 81 namespace net_log {
79 class ChromeNetLog; 82 class ChromeNetLog;
80 } 83 }
81 84
82 namespace network_time { 85 namespace network_time {
83 class NetworkTimeTracker; 86 class NetworkTimeTracker;
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 virtual void ResourceDispatcherHostCreated() = 0; 120 virtual void ResourceDispatcherHostCreated() = 0;
118 121
119 // Invoked when the user is logging out/shutting down. When logging off we may 122 // Invoked when the user is logging out/shutting down. When logging off we may
120 // not have enough time to do a normal shutdown. This method is invoked prior 123 // not have enough time to do a normal shutdown. This method is invoked prior
121 // to normal shutdown and saves any state that must be saved before we are 124 // to normal shutdown and saves any state that must be saved before we are
122 // continue shutdown. 125 // continue shutdown.
123 virtual void EndSession() = 0; 126 virtual void EndSession() = 0;
124 127
125 // Gets the manager for the various metrics-related services, constructing it 128 // Gets the manager for the various metrics-related services, constructing it
126 // if necessary. 129 // if necessary.
127 virtual MetricsServicesManager* GetMetricsServicesManager() = 0; 130 virtual metrics_services_manager::MetricsServicesManager*
131 GetMetricsServicesManager() = 0;
128 132
129 // Services: any of these getters may return NULL 133 // Services: any of these getters may return NULL
130 virtual metrics::MetricsService* metrics_service() = 0; 134 virtual metrics::MetricsService* metrics_service() = 0;
131 virtual rappor::RapporService* rappor_service() = 0; 135 virtual rappor::RapporService* rappor_service() = 0;
132 virtual ProfileManager* profile_manager() = 0; 136 virtual ProfileManager* profile_manager() = 0;
133 virtual PrefService* local_state() = 0; 137 virtual PrefService* local_state() = 0;
134 virtual net::URLRequestContextGetter* system_request_context() = 0; 138 virtual net::URLRequestContextGetter* system_request_context() = 0;
135 virtual variations::VariationsService* variations_service() = 0; 139 virtual variations::VariationsService* variations_service() = 0;
136 virtual web_resource::PromoResourceService* promo_resource_service() = 0; 140 virtual web_resource::PromoResourceService* promo_resource_service() = 0;
137 141
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 virtual ShellIntegration::DefaultWebClientState 263 virtual ShellIntegration::DefaultWebClientState
260 CachedDefaultWebClientState() = 0; 264 CachedDefaultWebClientState() = 0;
261 265
262 private: 266 private:
263 DISALLOW_COPY_AND_ASSIGN(BrowserProcess); 267 DISALLOW_COPY_AND_ASSIGN(BrowserProcess);
264 }; 268 };
265 269
266 extern BrowserProcess* g_browser_process; 270 extern BrowserProcess* g_browser_process;
267 271
268 #endif // CHROME_BROWSER_BROWSER_PROCESS_H_ 272 #endif // CHROME_BROWSER_BROWSER_PROCESS_H_
OLDNEW
« no previous file with comments | « chrome/browser/android/metrics/uma_session_stats.cc ('k') | chrome/browser/browser_process_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698