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 BackgroundModeManager; | 20 class BackgroundModeManager; |
21 class ChromeNetLog; | 21 class ChromeNetLog; |
22 class CRLSetFetcher; | 22 class CRLSetFetcher; |
23 class DownloadRequestLimiter; | 23 class DownloadRequestLimiter; |
24 class DownloadStatusUpdater; | 24 class DownloadStatusUpdater; |
25 class GLStringManager; | |
26 class GpuModeManager; | 25 class GpuModeManager; |
| 26 class GpuPrefManager; |
27 class IconManager; | 27 class IconManager; |
28 class IntranetRedirectDetector; | 28 class IntranetRedirectDetector; |
29 class IOThread; | 29 class IOThread; |
30 class MediaFileSystemRegistry; | 30 class MediaFileSystemRegistry; |
31 class MetricsService; | 31 class MetricsService; |
32 class MetricsServicesManager; | 32 class MetricsServicesManager; |
33 class NotificationUIManager; | 33 class NotificationUIManager; |
34 class PrefRegistrySimple; | 34 class PrefRegistrySimple; |
35 class PrefService; | 35 class PrefService; |
36 class Profile; | 36 class Profile; |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 | 148 |
149 // Starts and manages the policy system. | 149 // Starts and manages the policy system. |
150 virtual policy::BrowserPolicyConnector* browser_policy_connector() = 0; | 150 virtual policy::BrowserPolicyConnector* browser_policy_connector() = 0; |
151 | 151 |
152 // This is the main interface for chromium components to retrieve policy | 152 // This is the main interface for chromium components to retrieve policy |
153 // information from the policy system. | 153 // information from the policy system. |
154 virtual policy::PolicyService* policy_service() = 0; | 154 virtual policy::PolicyService* policy_service() = 0; |
155 | 155 |
156 virtual IconManager* icon_manager() = 0; | 156 virtual IconManager* icon_manager() = 0; |
157 | 157 |
158 virtual GLStringManager* gl_string_manager() = 0; | 158 virtual GpuModeManager* gpu_mode_manager() = 0; |
159 | 159 |
160 virtual GpuModeManager* gpu_mode_manager() = 0; | 160 virtual GpuPrefManager* gpu_pref_manager() = 0; |
161 | 161 |
162 virtual void CreateDevToolsHttpProtocolHandler( | 162 virtual void CreateDevToolsHttpProtocolHandler( |
163 chrome::HostDesktopType host_desktop_type, | 163 chrome::HostDesktopType host_desktop_type, |
164 const std::string& ip, | 164 const std::string& ip, |
165 int port) = 0; | 165 int port) = 0; |
166 | 166 |
167 virtual unsigned int AddRefModule() = 0; | 167 virtual unsigned int AddRefModule() = 0; |
168 virtual unsigned int ReleaseModule() = 0; | 168 virtual unsigned int ReleaseModule() = 0; |
169 | 169 |
170 virtual bool IsShuttingDown() = 0; | 170 virtual bool IsShuttingDown() = 0; |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
236 | 236 |
237 virtual gcm::GCMDriver* gcm_driver() = 0; | 237 virtual gcm::GCMDriver* gcm_driver() = 0; |
238 | 238 |
239 private: | 239 private: |
240 DISALLOW_COPY_AND_ASSIGN(BrowserProcess); | 240 DISALLOW_COPY_AND_ASSIGN(BrowserProcess); |
241 }; | 241 }; |
242 | 242 |
243 extern BrowserProcess* g_browser_process; | 243 extern BrowserProcess* g_browser_process; |
244 | 244 |
245 #endif // CHROME_BROWSER_BROWSER_PROCESS_H_ | 245 #endif // CHROME_BROWSER_BROWSER_PROCESS_H_ |
OLD | NEW |