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 #include "base/memory/scoped_ptr.h" | 16 #include "base/memory/scoped_ptr.h" |
17 #include "chrome/browser/browser_process_platform_part.h" | 17 #include "chrome/browser/browser_process_platform_part.h" |
18 #include "chrome/browser/ui/host_desktop.h" | 18 #include "chrome/browser/ui/host_desktop.h" |
19 | 19 |
20 class AutomationProviderList; | 20 class AutomationProviderList; |
21 class BackgroundModeManager; | 21 class BackgroundModeManager; |
22 class BookmarkPromptController; | 22 class BookmarkPromptController; |
23 class ChromeNetLog; | 23 class ChromeNetLog; |
24 class CRLSetFetcher; | 24 class CRLSetFetcher; |
25 class ComponentUpdateService; | |
26 class DownloadRequestLimiter; | 25 class DownloadRequestLimiter; |
27 class DownloadStatusUpdater; | 26 class DownloadStatusUpdater; |
28 class GLStringManager; | 27 class GLStringManager; |
29 class GpuModeManager; | 28 class GpuModeManager; |
30 class IconManager; | 29 class IconManager; |
31 class IntranetRedirectDetector; | 30 class IntranetRedirectDetector; |
32 class IOThread; | 31 class IOThread; |
33 class MediaFileSystemRegistry; | 32 class MediaFileSystemRegistry; |
34 class MetricsService; | 33 class MetricsService; |
35 class NotificationUIManager; | 34 class NotificationUIManager; |
36 class PnaclComponentInstaller; | |
37 class PrefRegistrySimple; | 35 class PrefRegistrySimple; |
38 class PrefService; | 36 class PrefService; |
39 class Profile; | 37 class Profile; |
40 class ProfileManager; | 38 class ProfileManager; |
41 class RenderWidgetSnapshotTaker; | 39 class RenderWidgetSnapshotTaker; |
42 class SafeBrowsingService; | 40 class SafeBrowsingService; |
43 class StatusTray; | 41 class StatusTray; |
44 class StorageMonitor; | 42 class StorageMonitor; |
45 class WatchDogThread; | 43 class WatchDogThread; |
46 #if defined(ENABLE_WEBRTC) | 44 #if defined(ENABLE_WEBRTC) |
47 class WebRtcLogUploader; | 45 class WebRtcLogUploader; |
48 #endif | 46 #endif |
49 | 47 |
50 namespace chrome_variations { | 48 namespace chrome_variations { |
51 class VariationsService; | 49 class VariationsService; |
52 } | 50 } |
53 | 51 |
| 52 namespace component_updater { |
| 53 class ComponentUpdateService; |
| 54 class PnaclComponentInstaller; |
| 55 } |
| 56 |
54 namespace extensions { | 57 namespace extensions { |
55 class EventRouterForwarder; | 58 class EventRouterForwarder; |
56 } | 59 } |
57 | 60 |
58 namespace message_center { | 61 namespace message_center { |
59 class MessageCenter; | 62 class MessageCenter; |
60 } | 63 } |
61 | 64 |
62 namespace net { | 65 namespace net { |
63 class URLRequestContextGetter; | 66 class URLRequestContextGetter; |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 // and add the command line key that will force Chrome to start in the | 201 // and add the command line key that will force Chrome to start in the |
199 // background mode. For the full list of "blacklisted" keys, refer to | 202 // background mode. For the full list of "blacklisted" keys, refer to |
200 // |kSwitchesToRemoveOnAutorestart| array in browser_process_impl.cc. | 203 // |kSwitchesToRemoveOnAutorestart| array in browser_process_impl.cc. |
201 virtual void StartAutoupdateTimer() = 0; | 204 virtual void StartAutoupdateTimer() = 0; |
202 #endif | 205 #endif |
203 | 206 |
204 virtual ChromeNetLog* net_log() = 0; | 207 virtual ChromeNetLog* net_log() = 0; |
205 | 208 |
206 virtual prerender::PrerenderTracker* prerender_tracker() = 0; | 209 virtual prerender::PrerenderTracker* prerender_tracker() = 0; |
207 | 210 |
208 virtual ComponentUpdateService* component_updater() = 0; | 211 virtual component_updater::ComponentUpdateService* component_updater() = 0; |
209 | 212 |
210 virtual CRLSetFetcher* crl_set_fetcher() = 0; | 213 virtual CRLSetFetcher* crl_set_fetcher() = 0; |
211 | 214 |
212 virtual PnaclComponentInstaller* pnacl_component_installer() = 0; | 215 virtual component_updater::PnaclComponentInstaller* |
| 216 pnacl_component_installer() = 0; |
213 | 217 |
214 virtual BookmarkPromptController* bookmark_prompt_controller() = 0; | 218 virtual BookmarkPromptController* bookmark_prompt_controller() = 0; |
215 | 219 |
216 virtual MediaFileSystemRegistry* media_file_system_registry() = 0; | 220 virtual MediaFileSystemRegistry* media_file_system_registry() = 0; |
217 | 221 |
218 virtual StorageMonitor* storage_monitor() = 0; | 222 virtual StorageMonitor* storage_monitor() = 0; |
219 | 223 |
220 virtual bool created_local_state() const = 0; | 224 virtual bool created_local_state() const = 0; |
221 | 225 |
222 #if defined(ENABLE_WEBRTC) | 226 #if defined(ENABLE_WEBRTC) |
223 virtual WebRtcLogUploader* webrtc_log_uploader() = 0; | 227 virtual WebRtcLogUploader* webrtc_log_uploader() = 0; |
224 #endif | 228 #endif |
225 | 229 |
226 private: | 230 private: |
227 DISALLOW_COPY_AND_ASSIGN(BrowserProcess); | 231 DISALLOW_COPY_AND_ASSIGN(BrowserProcess); |
228 }; | 232 }; |
229 | 233 |
230 extern BrowserProcess* g_browser_process; | 234 extern BrowserProcess* g_browser_process; |
231 | 235 |
232 #endif // CHROME_BROWSER_BROWSER_PROCESS_H_ | 236 #endif // CHROME_BROWSER_BROWSER_PROCESS_H_ |
OLD | NEW |