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

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

Issue 308433004: Reduce plugin_metrics_provider_ usage in MetricsService (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 6 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
« no previous file with comments | « no previous file | chrome/browser/browser_process_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 11 matching lines...) Expand all
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 MetricsService; 31 class MetricsService;
32 class MetricsServicesManager;
32 class NotificationUIManager; 33 class NotificationUIManager;
33 class PrefRegistrySimple; 34 class PrefRegistrySimple;
34 class PrefService; 35 class PrefService;
35 class Profile; 36 class Profile;
36 class ProfileManager; 37 class ProfileManager;
37 class SafeBrowsingService; 38 class SafeBrowsingService;
38 class StatusTray; 39 class StatusTray;
39 class WatchDogThread; 40 class WatchDogThread;
40 #if defined(ENABLE_WEBRTC) 41 #if defined(ENABLE_WEBRTC)
41 class WebRtcLogUploader; 42 class WebRtcLogUploader;
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 103
103 // Called when the ResourceDispatcherHost object is created by content. 104 // Called when the ResourceDispatcherHost object is created by content.
104 virtual void ResourceDispatcherHostCreated() = 0; 105 virtual void ResourceDispatcherHostCreated() = 0;
105 106
106 // Invoked when the user is logging out/shutting down. When logging off we may 107 // Invoked when the user is logging out/shutting down. When logging off we may
107 // not have enough time to do a normal shutdown. This method is invoked prior 108 // not have enough time to do a normal shutdown. This method is invoked prior
108 // to normal shutdown and saves any state that must be saved before we are 109 // to normal shutdown and saves any state that must be saved before we are
109 // continue shutdown. 110 // continue shutdown.
110 virtual void EndSession() = 0; 111 virtual void EndSession() = 0;
111 112
113 // Gets the manager for the various metrics-related services, constructing it
114 // if necessary.
115 virtual MetricsServicesManager* GetMetricsServicesManager() = 0;
116
112 // Services: any of these getters may return NULL 117 // Services: any of these getters may return NULL
113 virtual MetricsService* metrics_service() = 0; 118 virtual MetricsService* metrics_service() = 0;
114 virtual rappor::RapporService* rappor_service() = 0; 119 virtual rappor::RapporService* rappor_service() = 0;
115 virtual ProfileManager* profile_manager() = 0; 120 virtual ProfileManager* profile_manager() = 0;
116 virtual PrefService* local_state() = 0; 121 virtual PrefService* local_state() = 0;
117 virtual net::URLRequestContextGetter* system_request_context() = 0; 122 virtual net::URLRequestContextGetter* system_request_context() = 0;
118 virtual chrome_variations::VariationsService* variations_service() = 0; 123 virtual chrome_variations::VariationsService* variations_service() = 0;
119 124
120 virtual BrowserProcessPlatformPart* platform_part() = 0; 125 virtual BrowserProcessPlatformPart* platform_part() = 0;
121 126
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 236
232 virtual gcm::GCMDriver* gcm_driver() = 0; 237 virtual gcm::GCMDriver* gcm_driver() = 0;
233 238
234 private: 239 private:
235 DISALLOW_COPY_AND_ASSIGN(BrowserProcess); 240 DISALLOW_COPY_AND_ASSIGN(BrowserProcess);
236 }; 241 };
237 242
238 extern BrowserProcess* g_browser_process; 243 extern BrowserProcess* g_browser_process;
239 244
240 #endif // CHROME_BROWSER_BROWSER_PROCESS_H_ 245 #endif // CHROME_BROWSER_BROWSER_PROCESS_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/browser_process_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698