| 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_ |
| 11 #define CHROME_BROWSER_BROWSER_PROCESS_H_ | 11 #define CHROME_BROWSER_BROWSER_PROCESS_H_ |
| 12 | 12 |
| 13 #include <string> | 13 #include <string> |
| 14 | 14 |
| 15 #include "base/basictypes.h" | 15 #include "base/basictypes.h" |
| 16 | 16 |
| 17 class AutomationProviderList; | 17 class AutomationProviderList; |
| 18 class BackgroundModeManager; | 18 class BackgroundModeManager; |
| 19 class ChromeNetLog; | 19 class ChromeNetLog; |
| 20 class ChromeResourceDispatcherHostDelegate; |
| 20 class CRLSetFetcher; | 21 class CRLSetFetcher; |
| 21 class ComponentUpdateService; | 22 class ComponentUpdateService; |
| 22 class DownloadRequestLimiter; | 23 class DownloadRequestLimiter; |
| 23 class DownloadStatusUpdater; | 24 class DownloadStatusUpdater; |
| 24 class IconManager; | 25 class IconManager; |
| 25 class IntranetRedirectDetector; | 26 class IntranetRedirectDetector; |
| 26 class IOThread; | 27 class IOThread; |
| 27 class MetricsService; | 28 class MetricsService; |
| 28 class NotificationUIManager; | 29 class NotificationUIManager; |
| 29 class PrefService; | 30 class PrefService; |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 // continue shutdown. | 92 // continue shutdown. |
| 92 virtual void EndSession() = 0; | 93 virtual void EndSession() = 0; |
| 93 | 94 |
| 94 // Services: any of these getters may return NULL | 95 // Services: any of these getters may return NULL |
| 95 virtual MetricsService* metrics_service() = 0; | 96 virtual MetricsService* metrics_service() = 0; |
| 96 virtual ProfileManager* profile_manager() = 0; | 97 virtual ProfileManager* profile_manager() = 0; |
| 97 virtual PrefService* local_state() = 0; | 98 virtual PrefService* local_state() = 0; |
| 98 virtual ui::Clipboard* clipboard() = 0; | 99 virtual ui::Clipboard* clipboard() = 0; |
| 99 virtual net::URLRequestContextGetter* system_request_context() = 0; | 100 virtual net::URLRequestContextGetter* system_request_context() = 0; |
| 100 virtual chrome_variations::VariationsService* variations_service() = 0; | 101 virtual chrome_variations::VariationsService* variations_service() = 0; |
| 102 virtual ChromeResourceDispatcherHostDelegate* |
| 103 resource_dispatcher_host_delegate() = 0; |
| 101 | 104 |
| 102 #if defined(OS_CHROMEOS) | 105 #if defined(OS_CHROMEOS) |
| 103 // Returns the out-of-memory priority manager. | 106 // Returns the out-of-memory priority manager. |
| 104 virtual chromeos::OomPriorityManager* oom_priority_manager() = 0; | 107 virtual chromeos::OomPriorityManager* oom_priority_manager() = 0; |
| 105 #endif // defined(OS_CHROMEOS) | 108 #endif // defined(OS_CHROMEOS) |
| 106 | 109 |
| 107 virtual extensions::EventRouterForwarder* | 110 virtual extensions::EventRouterForwarder* |
| 108 extension_event_router_forwarder() = 0; | 111 extension_event_router_forwarder() = 0; |
| 109 | 112 |
| 110 // Returns the manager for desktop notifications. | 113 // Returns the manager for desktop notifications. |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 201 | 204 |
| 202 virtual CRLSetFetcher* crl_set_fetcher() = 0; | 205 virtual CRLSetFetcher* crl_set_fetcher() = 0; |
| 203 | 206 |
| 204 private: | 207 private: |
| 205 DISALLOW_COPY_AND_ASSIGN(BrowserProcess); | 208 DISALLOW_COPY_AND_ASSIGN(BrowserProcess); |
| 206 }; | 209 }; |
| 207 | 210 |
| 208 extern BrowserProcess* g_browser_process; | 211 extern BrowserProcess* g_browser_process; |
| 209 | 212 |
| 210 #endif // CHROME_BROWSER_BROWSER_PROCESS_H_ | 213 #endif // CHROME_BROWSER_BROWSER_PROCESS_H_ |
| OLD | NEW |