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 11 matching lines...) Expand all Loading... |
22 class CRLSetFetcher; | 22 class CRLSetFetcher; |
23 class ComponentUpdateService; | 23 class ComponentUpdateService; |
24 class DownloadRequestLimiter; | 24 class DownloadRequestLimiter; |
25 class DownloadStatusUpdater; | 25 class DownloadStatusUpdater; |
26 class GLStringManager; | 26 class GLStringManager; |
27 class IconManager; | 27 class IconManager; |
28 class IntranetRedirectDetector; | 28 class IntranetRedirectDetector; |
29 class IOThread; | 29 class IOThread; |
30 class MetricsService; | 30 class MetricsService; |
31 class NotificationUIManager; | 31 class NotificationUIManager; |
32 class PrefServiceSimple; | 32 class PrefRegistrySimple; |
| 33 class PrefService; |
33 class Profile; | 34 class Profile; |
34 class ProfileManager; | 35 class ProfileManager; |
35 class RenderWidgetSnapshotTaker; | 36 class RenderWidgetSnapshotTaker; |
36 class SafeBrowsingService; | 37 class SafeBrowsingService; |
37 class StatusTray; | 38 class StatusTray; |
38 class WatchDogThread; | 39 class WatchDogThread; |
39 | 40 |
40 namespace chrome { | 41 namespace chrome { |
41 class MediaFileSystemRegistry; | 42 class MediaFileSystemRegistry; |
42 } | 43 } |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 | 97 |
97 // Invoked when the user is logging out/shutting down. When logging off we may | 98 // Invoked when the user is logging out/shutting down. When logging off we may |
98 // not have enough time to do a normal shutdown. This method is invoked prior | 99 // not have enough time to do a normal shutdown. This method is invoked prior |
99 // to normal shutdown and saves any state that must be saved before we are | 100 // to normal shutdown and saves any state that must be saved before we are |
100 // continue shutdown. | 101 // continue shutdown. |
101 virtual void EndSession() = 0; | 102 virtual void EndSession() = 0; |
102 | 103 |
103 // Services: any of these getters may return NULL | 104 // Services: any of these getters may return NULL |
104 virtual MetricsService* metrics_service() = 0; | 105 virtual MetricsService* metrics_service() = 0; |
105 virtual ProfileManager* profile_manager() = 0; | 106 virtual ProfileManager* profile_manager() = 0; |
106 virtual PrefServiceSimple* local_state() = 0; | 107 virtual PrefService* local_state() = 0; |
107 virtual net::URLRequestContextGetter* system_request_context() = 0; | 108 virtual net::URLRequestContextGetter* system_request_context() = 0; |
108 virtual chrome_variations::VariationsService* variations_service() = 0; | 109 virtual chrome_variations::VariationsService* variations_service() = 0; |
109 | 110 |
110 #if defined(OS_CHROMEOS) | 111 #if defined(OS_CHROMEOS) |
111 // Returns the out-of-memory priority manager. | 112 // Returns the out-of-memory priority manager. |
112 virtual chromeos::OomPriorityManager* oom_priority_manager() = 0; | 113 virtual chromeos::OomPriorityManager* oom_priority_manager() = 0; |
113 #endif // defined(OS_CHROMEOS) | 114 #endif // defined(OS_CHROMEOS) |
114 | 115 |
115 virtual extensions::EventRouterForwarder* | 116 virtual extensions::EventRouterForwarder* |
116 extension_event_router_forwarder() = 0; | 117 extension_event_router_forwarder() = 0; |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
219 virtual void PlatformSpecificCommandLineProcessing( | 220 virtual void PlatformSpecificCommandLineProcessing( |
220 const CommandLine& command_line) = 0; | 221 const CommandLine& command_line) = 0; |
221 | 222 |
222 private: | 223 private: |
223 DISALLOW_COPY_AND_ASSIGN(BrowserProcess); | 224 DISALLOW_COPY_AND_ASSIGN(BrowserProcess); |
224 }; | 225 }; |
225 | 226 |
226 extern BrowserProcess* g_browser_process; | 227 extern BrowserProcess* g_browser_process; |
227 | 228 |
228 #endif // CHROME_BROWSER_BROWSER_PROCESS_H_ | 229 #endif // CHROME_BROWSER_BROWSER_PROCESS_H_ |
OLD | NEW |