OLD | NEW |
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 Loading... |
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; | |
33 class NetworkTimeTracker; | 32 class NetworkTimeTracker; |
34 class NotificationUIManager; | 33 class NotificationUIManager; |
35 class PrefRegistrySimple; | 34 class PrefRegistrySimple; |
36 class PrefService; | 35 class PrefService; |
37 class Profile; | 36 class Profile; |
38 class ProfileManager; | 37 class ProfileManager; |
39 class SafeBrowsingService; | 38 class SafeBrowsingService; |
40 class StatusTray; | 39 class StatusTray; |
41 class WatchDogThread; | 40 class WatchDogThread; |
42 #if defined(ENABLE_WEBRTC) | 41 #if defined(ENABLE_WEBRTC) |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 | 95 |
97 // Called when the ResourceDispatcherHost object is created by content. | 96 // Called when the ResourceDispatcherHost object is created by content. |
98 virtual void ResourceDispatcherHostCreated() = 0; | 97 virtual void ResourceDispatcherHostCreated() = 0; |
99 | 98 |
100 // Invoked when the user is logging out/shutting down. When logging off we may | 99 // Invoked when the user is logging out/shutting down. When logging off we may |
101 // not have enough time to do a normal shutdown. This method is invoked prior | 100 // not have enough time to do a normal shutdown. This method is invoked prior |
102 // to normal shutdown and saves any state that must be saved before we are | 101 // to normal shutdown and saves any state that must be saved before we are |
103 // continue shutdown. | 102 // continue shutdown. |
104 virtual void EndSession() = 0; | 103 virtual void EndSession() = 0; |
105 | 104 |
106 // Gets the manager for the various metrics-related services, constructing it | |
107 // if necessary. | |
108 virtual MetricsServicesManager* GetMetricsServicesManager() = 0; | |
109 | |
110 // Services: any of these getters may return NULL | 105 // Services: any of these getters may return NULL |
111 virtual MetricsService* metrics_service() = 0; | 106 virtual MetricsService* metrics_service() = 0; |
112 virtual rappor::RapporService* rappor_service() = 0; | 107 virtual rappor::RapporService* rappor_service() = 0; |
113 virtual ProfileManager* profile_manager() = 0; | 108 virtual ProfileManager* profile_manager() = 0; |
114 virtual PrefService* local_state() = 0; | 109 virtual PrefService* local_state() = 0; |
115 virtual net::URLRequestContextGetter* system_request_context() = 0; | 110 virtual net::URLRequestContextGetter* system_request_context() = 0; |
116 virtual chrome_variations::VariationsService* variations_service() = 0; | 111 virtual chrome_variations::VariationsService* variations_service() = 0; |
117 | 112 |
118 virtual BrowserProcessPlatformPart* platform_part() = 0; | 113 virtual BrowserProcessPlatformPart* platform_part() = 0; |
119 | 114 |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
227 | 222 |
228 virtual NetworkTimeTracker* network_time_tracker() = 0; | 223 virtual NetworkTimeTracker* network_time_tracker() = 0; |
229 | 224 |
230 private: | 225 private: |
231 DISALLOW_COPY_AND_ASSIGN(BrowserProcess); | 226 DISALLOW_COPY_AND_ASSIGN(BrowserProcess); |
232 }; | 227 }; |
233 | 228 |
234 extern BrowserProcess* g_browser_process; | 229 extern BrowserProcess* g_browser_process; |
235 | 230 |
236 #endif // CHROME_BROWSER_BROWSER_PROCESS_H_ | 231 #endif // CHROME_BROWSER_BROWSER_PROCESS_H_ |
OLD | NEW |