| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 22 matching lines...) Expand all Loading... |
| 33 class IOThread; | 33 class IOThread; |
| 34 class MetricsService; | 34 class MetricsService; |
| 35 class MHTMLGenerationManager; | 35 class MHTMLGenerationManager; |
| 36 class NotificationUIManager; | 36 class NotificationUIManager; |
| 37 class PrefService; | 37 class PrefService; |
| 38 class Profile; | 38 class Profile; |
| 39 class ProfileManager; | 39 class ProfileManager; |
| 40 class ResourceDispatcherHost; | 40 class ResourceDispatcherHost; |
| 41 class SafeBrowsingService; | 41 class SafeBrowsingService; |
| 42 class SidebarManager; | 42 class SidebarManager; |
| 43 class SpdyConfigServiceManager; |
| 43 class StatusTray; | 44 class StatusTray; |
| 44 class TabCloseableStateWatcher; | 45 class TabCloseableStateWatcher; |
| 45 class ThumbnailGenerator; | 46 class ThumbnailGenerator; |
| 46 class WatchDogThread; | 47 class WatchDogThread; |
| 47 | 48 |
| 48 namespace base { | 49 namespace base { |
| 49 class Thread; | 50 class Thread; |
| 50 } | 51 } |
| 51 | 52 |
| 52 #if defined(OS_CHROMEOS) | 53 #if defined(OS_CHROMEOS) |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 // to normal shutdown and saves any state that must be saved before we are | 94 // to normal shutdown and saves any state that must be saved before we are |
| 94 // continue shutdown. | 95 // continue shutdown. |
| 95 virtual void EndSession() = 0; | 96 virtual void EndSession() = 0; |
| 96 | 97 |
| 97 // Services: any of these getters may return NULL | 98 // Services: any of these getters may return NULL |
| 98 virtual ResourceDispatcherHost* resource_dispatcher_host() = 0; | 99 virtual ResourceDispatcherHost* resource_dispatcher_host() = 0; |
| 99 | 100 |
| 100 virtual MetricsService* metrics_service() = 0; | 101 virtual MetricsService* metrics_service() = 0; |
| 101 virtual ProfileManager* profile_manager() = 0; | 102 virtual ProfileManager* profile_manager() = 0; |
| 102 virtual PrefService* local_state() = 0; | 103 virtual PrefService* local_state() = 0; |
| 104 virtual SpdyConfigServiceManager* spdy_config_service_manager() = 0; |
| 103 virtual DevToolsManager* devtools_manager() = 0; | 105 virtual DevToolsManager* devtools_manager() = 0; |
| 104 virtual SidebarManager* sidebar_manager() = 0; | 106 virtual SidebarManager* sidebar_manager() = 0; |
| 105 virtual ui::Clipboard* clipboard() = 0; | 107 virtual ui::Clipboard* clipboard() = 0; |
| 106 virtual net::URLRequestContextGetter* system_request_context() = 0; | 108 virtual net::URLRequestContextGetter* system_request_context() = 0; |
| 107 | 109 |
| 108 #if defined(OS_CHROMEOS) | 110 #if defined(OS_CHROMEOS) |
| 109 // Returns ChromeOS's ProxyConfigServiceImpl, creating if not yet created. | 111 // Returns ChromeOS's ProxyConfigServiceImpl, creating if not yet created. |
| 110 virtual chromeos::ProxyConfigServiceImpl* | 112 virtual chromeos::ProxyConfigServiceImpl* |
| 111 chromeos_proxy_config_service_impl() = 0; | 113 chromeos_proxy_config_service_impl() = 0; |
| 112 #endif // defined(OS_CHROMEOS) | 114 #endif // defined(OS_CHROMEOS) |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 237 | 239 |
| 238 virtual ComponentUpdateService* component_updater() = 0; | 240 virtual ComponentUpdateService* component_updater() = 0; |
| 239 | 241 |
| 240 private: | 242 private: |
| 241 DISALLOW_COPY_AND_ASSIGN(BrowserProcess); | 243 DISALLOW_COPY_AND_ASSIGN(BrowserProcess); |
| 242 }; | 244 }; |
| 243 | 245 |
| 244 extern BrowserProcess* g_browser_process; | 246 extern BrowserProcess* g_browser_process; |
| 245 | 247 |
| 246 #endif // CHROME_BROWSER_BROWSER_PROCESS_H_ | 248 #endif // CHROME_BROWSER_BROWSER_PROCESS_H_ |
| OLD | NEW |