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 PrefService; | 32 class PrefServiceSimple; |
33 class Profile; | 33 class Profile; |
34 class ProfileManager; | 34 class ProfileManager; |
35 class RenderWidgetSnapshotTaker; | 35 class RenderWidgetSnapshotTaker; |
36 class SafeBrowsingService; | 36 class SafeBrowsingService; |
37 class StatusTray; | 37 class StatusTray; |
38 class WatchDogThread; | 38 class WatchDogThread; |
39 | 39 |
40 namespace chrome { | 40 namespace chrome { |
41 class MediaFileSystemRegistry; | 41 class MediaFileSystemRegistry; |
42 } | 42 } |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 | 90 |
91 // Invoked when the user is logging out/shutting down. When logging off we may | 91 // Invoked when the user is logging out/shutting down. When logging off we may |
92 // not have enough time to do a normal shutdown. This method is invoked prior | 92 // not have enough time to do a normal shutdown. This method is invoked prior |
93 // to normal shutdown and saves any state that must be saved before we are | 93 // to normal shutdown and saves any state that must be saved before we are |
94 // continue shutdown. | 94 // continue shutdown. |
95 virtual void EndSession() = 0; | 95 virtual void EndSession() = 0; |
96 | 96 |
97 // Services: any of these getters may return NULL | 97 // Services: any of these getters may return NULL |
98 virtual MetricsService* metrics_service() = 0; | 98 virtual MetricsService* metrics_service() = 0; |
99 virtual ProfileManager* profile_manager() = 0; | 99 virtual ProfileManager* profile_manager() = 0; |
100 virtual PrefService* local_state() = 0; | 100 virtual PrefServiceSimple* local_state() = 0; |
101 virtual net::URLRequestContextGetter* system_request_context() = 0; | 101 virtual net::URLRequestContextGetter* system_request_context() = 0; |
102 virtual chrome_variations::VariationsService* variations_service() = 0; | 102 virtual chrome_variations::VariationsService* variations_service() = 0; |
103 | 103 |
104 #if defined(OS_CHROMEOS) | 104 #if defined(OS_CHROMEOS) |
105 // Returns the out-of-memory priority manager. | 105 // Returns the out-of-memory priority manager. |
106 virtual chromeos::OomPriorityManager* oom_priority_manager() = 0; | 106 virtual chromeos::OomPriorityManager* oom_priority_manager() = 0; |
107 #endif // defined(OS_CHROMEOS) | 107 #endif // defined(OS_CHROMEOS) |
108 | 108 |
109 virtual extensions::EventRouterForwarder* | 109 virtual extensions::EventRouterForwarder* |
110 extension_event_router_forwarder() = 0; | 110 extension_event_router_forwarder() = 0; |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
208 virtual void PlatformSpecificCommandLineProcessing( | 208 virtual void PlatformSpecificCommandLineProcessing( |
209 const CommandLine& command_line) = 0; | 209 const CommandLine& command_line) = 0; |
210 | 210 |
211 private: | 211 private: |
212 DISALLOW_COPY_AND_ASSIGN(BrowserProcess); | 212 DISALLOW_COPY_AND_ASSIGN(BrowserProcess); |
213 }; | 213 }; |
214 | 214 |
215 extern BrowserProcess* g_browser_process; | 215 extern BrowserProcess* g_browser_process; |
216 | 216 |
217 #endif // CHROME_BROWSER_BROWSER_PROCESS_H_ | 217 #endif // CHROME_BROWSER_BROWSER_PROCESS_H_ |
OLD | NEW |