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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 class WatchDogThread; | 47 class WatchDogThread; |
48 | 48 |
49 namespace base { | 49 namespace base { |
50 class Thread; | 50 class Thread; |
51 } | 51 } |
52 | 52 |
53 #if defined(OS_CHROMEOS) | 53 #if defined(OS_CHROMEOS) |
54 namespace browser { | 54 namespace browser { |
55 class OomPriorityManager; | 55 class OomPriorityManager; |
56 } | 56 } |
57 | |
58 namespace chromeos { | |
59 class ProxyConfigServiceImpl; | |
60 } | |
61 #endif // defined(OS_CHROMEOS) | 57 #endif // defined(OS_CHROMEOS) |
62 | 58 |
63 namespace net { | 59 namespace net { |
64 class URLRequestContextGetter; | 60 class URLRequestContextGetter; |
65 } | 61 } |
66 | 62 |
67 namespace prerender { | 63 namespace prerender { |
68 class PrerenderTracker; | 64 class PrerenderTracker; |
69 } | 65 } |
70 | 66 |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 | 100 |
105 virtual MetricsService* metrics_service() = 0; | 101 virtual MetricsService* metrics_service() = 0; |
106 virtual ProfileManager* profile_manager() = 0; | 102 virtual ProfileManager* profile_manager() = 0; |
107 virtual PrefService* local_state() = 0; | 103 virtual PrefService* local_state() = 0; |
108 virtual DevToolsManager* devtools_manager() = 0; | 104 virtual DevToolsManager* devtools_manager() = 0; |
109 virtual SidebarManager* sidebar_manager() = 0; | 105 virtual SidebarManager* sidebar_manager() = 0; |
110 virtual ui::Clipboard* clipboard() = 0; | 106 virtual ui::Clipboard* clipboard() = 0; |
111 virtual net::URLRequestContextGetter* system_request_context() = 0; | 107 virtual net::URLRequestContextGetter* system_request_context() = 0; |
112 | 108 |
113 #if defined(OS_CHROMEOS) | 109 #if defined(OS_CHROMEOS) |
114 // Returns ChromeOS's ProxyConfigServiceImpl, creating if not yet created. | |
115 virtual chromeos::ProxyConfigServiceImpl* | |
116 chromeos_proxy_config_service_impl() = 0; | |
117 | |
118 // Returns the out-of-memory priority manager. | 110 // Returns the out-of-memory priority manager. |
119 virtual browser::OomPriorityManager* oom_priority_manager() = 0; | 111 virtual browser::OomPriorityManager* oom_priority_manager() = 0; |
120 #endif // defined(OS_CHROMEOS) | 112 #endif // defined(OS_CHROMEOS) |
121 | 113 |
122 virtual ExtensionEventRouterForwarder* | 114 virtual ExtensionEventRouterForwarder* |
123 extension_event_router_forwarder() = 0; | 115 extension_event_router_forwarder() = 0; |
124 | 116 |
125 // Returns the manager for desktop notifications. | 117 // Returns the manager for desktop notifications. |
126 virtual NotificationUIManager* notification_ui_manager() = 0; | 118 virtual NotificationUIManager* notification_ui_manager() = 0; |
127 | 119 |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
247 | 239 |
248 virtual CRLSetFetcher* crl_set_fetcher() = 0; | 240 virtual CRLSetFetcher* crl_set_fetcher() = 0; |
249 | 241 |
250 private: | 242 private: |
251 DISALLOW_COPY_AND_ASSIGN(BrowserProcess); | 243 DISALLOW_COPY_AND_ASSIGN(BrowserProcess); |
252 }; | 244 }; |
253 | 245 |
254 extern BrowserProcess* g_browser_process; | 246 extern BrowserProcess* g_browser_process; |
255 | 247 |
256 #endif // CHROME_BROWSER_BROWSER_PROCESS_H_ | 248 #endif // CHROME_BROWSER_BROWSER_PROCESS_H_ |
OLD | NEW |