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 CRLSetFetcher; | 20 class CRLSetFetcher; |
21 class ComponentUpdateService; | 21 class ComponentUpdateService; |
22 class DownloadRequestLimiter; | 22 class DownloadRequestLimiter; |
23 class DownloadStatusUpdater; | 23 class DownloadStatusUpdater; |
24 class ExtensionEventRouterForwarder; | |
25 class IconManager; | 24 class IconManager; |
26 class IntranetRedirectDetector; | 25 class IntranetRedirectDetector; |
27 class IOThread; | 26 class IOThread; |
28 class MetricsService; | 27 class MetricsService; |
29 class NotificationUIManager; | 28 class NotificationUIManager; |
30 class PrefService; | 29 class PrefService; |
31 class Profile; | 30 class Profile; |
32 class ProfileManager; | 31 class ProfileManager; |
33 class SafeBrowsingService; | 32 class SafeBrowsingService; |
34 class StatusTray; | 33 class StatusTray; |
35 class ThumbnailGenerator; | 34 class ThumbnailGenerator; |
36 class WatchDogThread; | 35 class WatchDogThread; |
37 | 36 |
38 #if defined(OS_CHROMEOS) | 37 #if defined(OS_CHROMEOS) |
39 namespace chromeos { | 38 namespace chromeos { |
40 class OomPriorityManager; | 39 class OomPriorityManager; |
41 } | 40 } |
42 #endif // defined(OS_CHROMEOS) | 41 #endif // defined(OS_CHROMEOS) |
43 | 42 |
44 namespace chrome_variations { | 43 namespace chrome_variations { |
45 class VariationsService; | 44 class VariationsService; |
46 } | 45 } |
47 | 46 |
| 47 namespace extensions { |
| 48 class EventRouterForwarder; |
| 49 } |
| 50 |
48 namespace net { | 51 namespace net { |
49 class URLRequestContextGetter; | 52 class URLRequestContextGetter; |
50 } | 53 } |
51 | 54 |
52 namespace policy { | 55 namespace policy { |
53 class BrowserPolicyConnector; | 56 class BrowserPolicyConnector; |
54 class PolicyService; | 57 class PolicyService; |
55 } | 58 } |
56 | 59 |
57 namespace prerender { | 60 namespace prerender { |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 virtual PrefService* local_state() = 0; | 97 virtual PrefService* local_state() = 0; |
95 virtual ui::Clipboard* clipboard() = 0; | 98 virtual ui::Clipboard* clipboard() = 0; |
96 virtual net::URLRequestContextGetter* system_request_context() = 0; | 99 virtual net::URLRequestContextGetter* system_request_context() = 0; |
97 virtual chrome_variations::VariationsService* variations_service() = 0; | 100 virtual chrome_variations::VariationsService* variations_service() = 0; |
98 | 101 |
99 #if defined(OS_CHROMEOS) | 102 #if defined(OS_CHROMEOS) |
100 // Returns the out-of-memory priority manager. | 103 // Returns the out-of-memory priority manager. |
101 virtual chromeos::OomPriorityManager* oom_priority_manager() = 0; | 104 virtual chromeos::OomPriorityManager* oom_priority_manager() = 0; |
102 #endif // defined(OS_CHROMEOS) | 105 #endif // defined(OS_CHROMEOS) |
103 | 106 |
104 virtual ExtensionEventRouterForwarder* | 107 virtual extensions::EventRouterForwarder* |
105 extension_event_router_forwarder() = 0; | 108 extension_event_router_forwarder() = 0; |
106 | 109 |
107 // Returns the manager for desktop notifications. | 110 // Returns the manager for desktop notifications. |
108 virtual NotificationUIManager* notification_ui_manager() = 0; | 111 virtual NotificationUIManager* notification_ui_manager() = 0; |
109 | 112 |
110 // Returns the state object for the thread that we perform I/O | 113 // Returns the state object for the thread that we perform I/O |
111 // coordination on (network requests, communication with renderers, | 114 // coordination on (network requests, communication with renderers, |
112 // etc. | 115 // etc. |
113 // | 116 // |
114 // Can be NULL close to startup and shutdown. | 117 // Can be NULL close to startup and shutdown. |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 | 201 |
199 virtual CRLSetFetcher* crl_set_fetcher() = 0; | 202 virtual CRLSetFetcher* crl_set_fetcher() = 0; |
200 | 203 |
201 private: | 204 private: |
202 DISALLOW_COPY_AND_ASSIGN(BrowserProcess); | 205 DISALLOW_COPY_AND_ASSIGN(BrowserProcess); |
203 }; | 206 }; |
204 | 207 |
205 extern BrowserProcess* g_browser_process; | 208 extern BrowserProcess* g_browser_process; |
206 | 209 |
207 #endif // CHROME_BROWSER_BROWSER_PROCESS_H_ | 210 #endif // CHROME_BROWSER_BROWSER_PROCESS_H_ |
OLD | NEW |