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 28 matching lines...) Expand all Loading... | |
| 39 class SafeBrowsingService; | 39 class SafeBrowsingService; |
| 40 class StatusTray; | 40 class StatusTray; |
| 41 class WatchDogThread; | 41 class WatchDogThread; |
| 42 | 42 |
| 43 namespace chrome { | 43 namespace chrome { |
| 44 class MediaFileSystemRegistry; | 44 class MediaFileSystemRegistry; |
| 45 } | 45 } |
| 46 | 46 |
| 47 #if defined(OS_CHROMEOS) | 47 #if defined(OS_CHROMEOS) |
| 48 namespace chromeos { | 48 namespace chromeos { |
| 49 class DeviceOAuth2TokenService; | |
| 49 class OomPriorityManager; | 50 class OomPriorityManager; |
| 50 } | 51 } |
| 51 #endif // defined(OS_CHROMEOS) | 52 #endif // defined(OS_CHROMEOS) |
| 52 | 53 |
| 53 namespace chrome_variations { | 54 namespace chrome_variations { |
| 54 class VariationsService; | 55 class VariationsService; |
| 55 } | 56 } |
| 56 | 57 |
| 57 namespace extensions { | 58 namespace extensions { |
| 58 class EventRouterForwarder; | 59 class EventRouterForwarder; |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 106 // Services: any of these getters may return NULL | 107 // Services: any of these getters may return NULL |
| 107 virtual MetricsService* metrics_service() = 0; | 108 virtual MetricsService* metrics_service() = 0; |
| 108 virtual ProfileManager* profile_manager() = 0; | 109 virtual ProfileManager* profile_manager() = 0; |
| 109 virtual PrefService* local_state() = 0; | 110 virtual PrefService* local_state() = 0; |
| 110 virtual net::URLRequestContextGetter* system_request_context() = 0; | 111 virtual net::URLRequestContextGetter* system_request_context() = 0; |
| 111 virtual chrome_variations::VariationsService* variations_service() = 0; | 112 virtual chrome_variations::VariationsService* variations_service() = 0; |
| 112 | 113 |
| 113 #if defined(OS_CHROMEOS) | 114 #if defined(OS_CHROMEOS) |
| 114 // Returns the out-of-memory priority manager. | 115 // Returns the out-of-memory priority manager. |
| 115 virtual chromeos::OomPriorityManager* oom_priority_manager() = 0; | 116 virtual chromeos::OomPriorityManager* oom_priority_manager() = 0; |
| 117 | |
| 118 // Returns the OAuth2TokenService instance for the device-level robot | |
| 119 // account (available on enterprise-enrolled devices). Must only be called | |
| 120 // when the IO thread is available. | |
| 121 virtual chromeos::DeviceOAuth2TokenService* device_oauth2_token_service() = 0; | |
|
brettw
2013/03/28 20:18:32
We're trying to kill BrowserProcess. If your class
| |
| 116 #endif // defined(OS_CHROMEOS) | 122 #endif // defined(OS_CHROMEOS) |
| 117 | 123 |
| 118 virtual extensions::EventRouterForwarder* | 124 virtual extensions::EventRouterForwarder* |
| 119 extension_event_router_forwarder() = 0; | 125 extension_event_router_forwarder() = 0; |
| 120 | 126 |
| 121 // Returns the manager for desktop notifications. | 127 // Returns the manager for desktop notifications. |
| 122 virtual NotificationUIManager* notification_ui_manager() = 0; | 128 virtual NotificationUIManager* notification_ui_manager() = 0; |
| 123 | 129 |
| 124 #if defined(ENABLE_MESSAGE_CENTER) | 130 #if defined(ENABLE_MESSAGE_CENTER) |
| 125 // MessageCenter is a global list of currently displayed notifications. | 131 // MessageCenter is a global list of currently displayed notifications. |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 225 virtual void PlatformSpecificCommandLineProcessing( | 231 virtual void PlatformSpecificCommandLineProcessing( |
| 226 const CommandLine& command_line) = 0; | 232 const CommandLine& command_line) = 0; |
| 227 | 233 |
| 228 private: | 234 private: |
| 229 DISALLOW_COPY_AND_ASSIGN(BrowserProcess); | 235 DISALLOW_COPY_AND_ASSIGN(BrowserProcess); |
| 230 }; | 236 }; |
| 231 | 237 |
| 232 extern BrowserProcess* g_browser_process; | 238 extern BrowserProcess* g_browser_process; |
| 233 | 239 |
| 234 #endif // CHROME_BROWSER_BROWSER_PROCESS_H_ | 240 #endif // CHROME_BROWSER_BROWSER_PROCESS_H_ |
| OLD | NEW |