Chromium Code Reviews| 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 18 matching lines...) Expand all Loading... | |
| 29 class IOThread; | 29 class IOThread; |
| 30 class MediaFileSystemRegistry; | 30 class MediaFileSystemRegistry; |
| 31 class MetricsServicesManager; | 31 class MetricsServicesManager; |
| 32 class NotificationUIManager; | 32 class NotificationUIManager; |
| 33 class PrefRegistrySimple; | 33 class PrefRegistrySimple; |
| 34 class PrefService; | 34 class PrefService; |
| 35 class Profile; | 35 class Profile; |
| 36 class ProfileManager; | 36 class ProfileManager; |
| 37 class PromoResourceService; | 37 class PromoResourceService; |
| 38 class SafeBrowsingService; | 38 class SafeBrowsingService; |
| 39 class SidebarManager; | |
| 39 class StatusTray; | 40 class StatusTray; |
| 40 class WatchDogThread; | 41 class WatchDogThread; |
| 41 #if defined(ENABLE_WEBRTC) | 42 #if defined(ENABLE_WEBRTC) |
| 42 class WebRtcLogUploader; | 43 class WebRtcLogUploader; |
| 43 #endif | 44 #endif |
| 44 | 45 |
| 45 namespace chrome_variations { | 46 namespace chrome_variations { |
| 46 class VariationsService; | 47 class VariationsService; |
| 47 } | 48 } |
| 48 | 49 |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 113 | 114 |
| 114 // Gets the manager for the various metrics-related services, constructing it | 115 // Gets the manager for the various metrics-related services, constructing it |
| 115 // if necessary. | 116 // if necessary. |
| 116 virtual MetricsServicesManager* GetMetricsServicesManager() = 0; | 117 virtual MetricsServicesManager* GetMetricsServicesManager() = 0; |
| 117 | 118 |
| 118 // Services: any of these getters may return NULL | 119 // Services: any of these getters may return NULL |
| 119 virtual metrics::MetricsService* metrics_service() = 0; | 120 virtual metrics::MetricsService* metrics_service() = 0; |
| 120 virtual rappor::RapporService* rappor_service() = 0; | 121 virtual rappor::RapporService* rappor_service() = 0; |
| 121 virtual ProfileManager* profile_manager() = 0; | 122 virtual ProfileManager* profile_manager() = 0; |
| 122 virtual PrefService* local_state() = 0; | 123 virtual PrefService* local_state() = 0; |
| 124 virtual SidebarManager* sidebar_manager() = 0; | |
|
Devlin
2015/05/27 16:51:05
We almost certainly don't want to have a SidebarMa
| |
| 123 virtual net::URLRequestContextGetter* system_request_context() = 0; | 125 virtual net::URLRequestContextGetter* system_request_context() = 0; |
| 124 virtual chrome_variations::VariationsService* variations_service() = 0; | 126 virtual chrome_variations::VariationsService* variations_service() = 0; |
| 125 virtual PromoResourceService* promo_resource_service() = 0; | 127 virtual PromoResourceService* promo_resource_service() = 0; |
| 126 | 128 |
| 127 virtual BrowserProcessPlatformPart* platform_part() = 0; | 129 virtual BrowserProcessPlatformPart* platform_part() = 0; |
| 128 | 130 |
| 129 virtual extensions::EventRouterForwarder* | 131 virtual extensions::EventRouterForwarder* |
| 130 extension_event_router_forwarder() = 0; | 132 extension_event_router_forwarder() = 0; |
| 131 | 133 |
| 132 // Returns the manager for desktop notifications. | 134 // Returns the manager for desktop notifications. |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 239 | 241 |
| 240 virtual gcm::GCMDriver* gcm_driver() = 0; | 242 virtual gcm::GCMDriver* gcm_driver() = 0; |
| 241 | 243 |
| 242 private: | 244 private: |
| 243 DISALLOW_COPY_AND_ASSIGN(BrowserProcess); | 245 DISALLOW_COPY_AND_ASSIGN(BrowserProcess); |
| 244 }; | 246 }; |
| 245 | 247 |
| 246 extern BrowserProcess* g_browser_process; | 248 extern BrowserProcess* g_browser_process; |
| 247 | 249 |
| 248 #endif // CHROME_BROWSER_BROWSER_PROCESS_H_ | 250 #endif // CHROME_BROWSER_BROWSER_PROCESS_H_ |
| OLD | NEW |