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 "chrome/browser/ui/host_desktop.h" | 16 #include "chrome/browser/ui/host_desktop.h" |
17 | 17 |
18 class AutomationProviderList; | 18 class AutomationProviderList; |
19 class BackgroundModeManager; | 19 class BackgroundModeManager; |
20 class BookmarkPromptController; | 20 class BookmarkPromptController; |
21 class ChromeNetLog; | 21 class ChromeNetLog; |
22 class CommandLine; | 22 class CommandLine; |
23 class CRLSetFetcher; | 23 class CRLSetFetcher; |
24 class ComponentUpdateService; | 24 class ComponentUpdateService; |
25 class DownloadRequestLimiter; | 25 class DownloadRequestLimiter; |
26 class DownloadStatusUpdater; | 26 class DownloadStatusUpdater; |
27 class GLStringManager; | 27 class GLStringManager; |
| 28 class GpuModeManager; |
28 class IconManager; | 29 class IconManager; |
29 class IntranetRedirectDetector; | 30 class IntranetRedirectDetector; |
30 class IOThread; | 31 class IOThread; |
31 class MetricsService; | 32 class MetricsService; |
32 class NotificationUIManager; | 33 class NotificationUIManager; |
33 class PrefRegistrySimple; | 34 class PrefRegistrySimple; |
34 class PrefService; | 35 class PrefService; |
35 class Profile; | 36 class Profile; |
36 class ProfileManager; | 37 class ProfileManager; |
37 class RenderWidgetSnapshotTaker; | 38 class RenderWidgetSnapshotTaker; |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 virtual policy::BrowserPolicyConnector* browser_policy_connector() = 0; | 143 virtual policy::BrowserPolicyConnector* browser_policy_connector() = 0; |
143 | 144 |
144 // This is the main interface for chromium components to retrieve policy | 145 // This is the main interface for chromium components to retrieve policy |
145 // information from the policy system. | 146 // information from the policy system. |
146 virtual policy::PolicyService* policy_service() = 0; | 147 virtual policy::PolicyService* policy_service() = 0; |
147 | 148 |
148 virtual IconManager* icon_manager() = 0; | 149 virtual IconManager* icon_manager() = 0; |
149 | 150 |
150 virtual GLStringManager* gl_string_manager() = 0; | 151 virtual GLStringManager* gl_string_manager() = 0; |
151 | 152 |
| 153 virtual GpuModeManager* gpu_mode_manager() = 0; |
| 154 |
152 virtual RenderWidgetSnapshotTaker* GetRenderWidgetSnapshotTaker() = 0; | 155 virtual RenderWidgetSnapshotTaker* GetRenderWidgetSnapshotTaker() = 0; |
153 | 156 |
154 virtual AutomationProviderList* GetAutomationProviderList() = 0; | 157 virtual AutomationProviderList* GetAutomationProviderList() = 0; |
155 | 158 |
156 virtual void CreateDevToolsHttpProtocolHandler( | 159 virtual void CreateDevToolsHttpProtocolHandler( |
157 Profile* profile, | 160 Profile* profile, |
158 chrome::HostDesktopType host_desktop_type, | 161 chrome::HostDesktopType host_desktop_type, |
159 const std::string& ip, | 162 const std::string& ip, |
160 int port, | 163 int port, |
161 const std::string& frontend_url) = 0; | 164 const std::string& frontend_url) = 0; |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
222 virtual void PlatformSpecificCommandLineProcessing( | 225 virtual void PlatformSpecificCommandLineProcessing( |
223 const CommandLine& command_line) = 0; | 226 const CommandLine& command_line) = 0; |
224 | 227 |
225 private: | 228 private: |
226 DISALLOW_COPY_AND_ASSIGN(BrowserProcess); | 229 DISALLOW_COPY_AND_ASSIGN(BrowserProcess); |
227 }; | 230 }; |
228 | 231 |
229 extern BrowserProcess* g_browser_process; | 232 extern BrowserProcess* g_browser_process; |
230 | 233 |
231 #endif // CHROME_BROWSER_BROWSER_PROCESS_H_ | 234 #endif // CHROME_BROWSER_BROWSER_PROCESS_H_ |
OLD | NEW |