| 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 10 matching lines...) Expand all Loading... |
| 21 class ChromeNetLog; | 21 class ChromeNetLog; |
| 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; | |
| 32 class MetricsServicesManager; | 31 class MetricsServicesManager; |
| 33 class NotificationUIManager; | 32 class NotificationUIManager; |
| 34 class PrefRegistrySimple; | 33 class PrefRegistrySimple; |
| 35 class PrefService; | 34 class PrefService; |
| 36 class Profile; | 35 class Profile; |
| 37 class ProfileManager; | 36 class ProfileManager; |
| 38 class SafeBrowsingService; | 37 class SafeBrowsingService; |
| 39 class StatusTray; | 38 class StatusTray; |
| 40 class WatchDogThread; | 39 class WatchDogThread; |
| 41 #if defined(ENABLE_WEBRTC) | 40 #if defined(ENABLE_WEBRTC) |
| (...skipping 14 matching lines...) Expand all Loading... |
| 56 } | 55 } |
| 57 | 56 |
| 58 namespace gcm { | 57 namespace gcm { |
| 59 class GCMDriver; | 58 class GCMDriver; |
| 60 } | 59 } |
| 61 | 60 |
| 62 namespace message_center { | 61 namespace message_center { |
| 63 class MessageCenter; | 62 class MessageCenter; |
| 64 } | 63 } |
| 65 | 64 |
| 65 namespace metrics { |
| 66 class MetricsService; |
| 67 } |
| 68 |
| 66 namespace net { | 69 namespace net { |
| 67 class URLRequestContextGetter; | 70 class URLRequestContextGetter; |
| 68 } | 71 } |
| 69 | 72 |
| 70 namespace network_time { | 73 namespace network_time { |
| 71 class NetworkTimeTracker; | 74 class NetworkTimeTracker; |
| 72 } | 75 } |
| 73 | 76 |
| 74 namespace policy { | 77 namespace policy { |
| 75 class BrowserPolicyConnector; | 78 class BrowserPolicyConnector; |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 // not have enough time to do a normal shutdown. This method is invoked prior | 111 // not have enough time to do a normal shutdown. This method is invoked prior |
| 109 // to normal shutdown and saves any state that must be saved before we are | 112 // to normal shutdown and saves any state that must be saved before we are |
| 110 // continue shutdown. | 113 // continue shutdown. |
| 111 virtual void EndSession() = 0; | 114 virtual void EndSession() = 0; |
| 112 | 115 |
| 113 // Gets the manager for the various metrics-related services, constructing it | 116 // Gets the manager for the various metrics-related services, constructing it |
| 114 // if necessary. | 117 // if necessary. |
| 115 virtual MetricsServicesManager* GetMetricsServicesManager() = 0; | 118 virtual MetricsServicesManager* GetMetricsServicesManager() = 0; |
| 116 | 119 |
| 117 // Services: any of these getters may return NULL | 120 // Services: any of these getters may return NULL |
| 118 virtual MetricsService* metrics_service() = 0; | 121 virtual metrics::MetricsService* metrics_service() = 0; |
| 119 virtual rappor::RapporService* rappor_service() = 0; | 122 virtual rappor::RapporService* rappor_service() = 0; |
| 120 virtual ProfileManager* profile_manager() = 0; | 123 virtual ProfileManager* profile_manager() = 0; |
| 121 virtual PrefService* local_state() = 0; | 124 virtual PrefService* local_state() = 0; |
| 122 virtual net::URLRequestContextGetter* system_request_context() = 0; | 125 virtual net::URLRequestContextGetter* system_request_context() = 0; |
| 123 virtual chrome_variations::VariationsService* variations_service() = 0; | 126 virtual chrome_variations::VariationsService* variations_service() = 0; |
| 124 | 127 |
| 125 virtual BrowserProcessPlatformPart* platform_part() = 0; | 128 virtual BrowserProcessPlatformPart* platform_part() = 0; |
| 126 | 129 |
| 127 virtual extensions::EventRouterForwarder* | 130 virtual extensions::EventRouterForwarder* |
| 128 extension_event_router_forwarder() = 0; | 131 extension_event_router_forwarder() = 0; |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 236 | 239 |
| 237 virtual gcm::GCMDriver* gcm_driver() = 0; | 240 virtual gcm::GCMDriver* gcm_driver() = 0; |
| 238 | 241 |
| 239 private: | 242 private: |
| 240 DISALLOW_COPY_AND_ASSIGN(BrowserProcess); | 243 DISALLOW_COPY_AND_ASSIGN(BrowserProcess); |
| 241 }; | 244 }; |
| 242 | 245 |
| 243 extern BrowserProcess* g_browser_process; | 246 extern BrowserProcess* g_browser_process; |
| 244 | 247 |
| 245 #endif // CHROME_BROWSER_BROWSER_PROCESS_H_ | 248 #endif // CHROME_BROWSER_BROWSER_PROCESS_H_ |
| OLD | NEW |