| 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/shell_integration.h" | 18 #include "chrome/browser/shell_integration.h" |
| 19 #include "chrome/browser/ui/host_desktop.h" | 19 #include "chrome/browser/ui/host_desktop.h" |
| 20 | 20 |
| 21 class BackgroundModeManager; | 21 class BackgroundModeManager; |
| 22 class ChromeNetLog; | |
| 23 class CRLSetFetcher; | 22 class CRLSetFetcher; |
| 24 class DownloadRequestLimiter; | 23 class DownloadRequestLimiter; |
| 25 class DownloadStatusUpdater; | 24 class DownloadStatusUpdater; |
| 26 class GLStringManager; | 25 class GLStringManager; |
| 27 class GpuModeManager; | 26 class GpuModeManager; |
| 28 class IconManager; | 27 class IconManager; |
| 29 class IntranetRedirectDetector; | 28 class IntranetRedirectDetector; |
| 30 class IOThread; | 29 class IOThread; |
| 31 class MediaFileSystemRegistry; | 30 class MediaFileSystemRegistry; |
| 32 class MetricsServicesManager; | 31 class MetricsServicesManager; |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 } | 68 } |
| 70 | 69 |
| 71 namespace metrics { | 70 namespace metrics { |
| 72 class MetricsService; | 71 class MetricsService; |
| 73 } | 72 } |
| 74 | 73 |
| 75 namespace net { | 74 namespace net { |
| 76 class URLRequestContextGetter; | 75 class URLRequestContextGetter; |
| 77 } | 76 } |
| 78 | 77 |
| 78 namespace net_log { |
| 79 class ChromeNetLog; |
| 80 } |
| 81 |
| 79 namespace network_time { | 82 namespace network_time { |
| 80 class NetworkTimeTracker; | 83 class NetworkTimeTracker; |
| 81 } | 84 } |
| 82 | 85 |
| 83 namespace policy { | 86 namespace policy { |
| 84 class BrowserPolicyConnector; | 87 class BrowserPolicyConnector; |
| 85 class PolicyService; | 88 class PolicyService; |
| 86 } | 89 } |
| 87 | 90 |
| 88 namespace printing { | 91 namespace printing { |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 216 // This will start a timer that, if Chrome is in persistent mode, will check | 219 // This will start a timer that, if Chrome is in persistent mode, will check |
| 217 // whether an update is available, and if that's the case, restart the | 220 // whether an update is available, and if that's the case, restart the |
| 218 // browser. Note that restart code will strip some of the command line keys | 221 // browser. Note that restart code will strip some of the command line keys |
| 219 // and all loose values from the cl this instance of Chrome was launched with, | 222 // and all loose values from the cl this instance of Chrome was launched with, |
| 220 // and add the command line key that will force Chrome to start in the | 223 // and add the command line key that will force Chrome to start in the |
| 221 // background mode. For the full list of "blacklisted" keys, refer to | 224 // background mode. For the full list of "blacklisted" keys, refer to |
| 222 // |kSwitchesToRemoveOnAutorestart| array in browser_process_impl.cc. | 225 // |kSwitchesToRemoveOnAutorestart| array in browser_process_impl.cc. |
| 223 virtual void StartAutoupdateTimer() = 0; | 226 virtual void StartAutoupdateTimer() = 0; |
| 224 #endif | 227 #endif |
| 225 | 228 |
| 226 virtual ChromeNetLog* net_log() = 0; | 229 virtual net_log::ChromeNetLog* net_log() = 0; |
| 227 | 230 |
| 228 virtual component_updater::ComponentUpdateService* component_updater() = 0; | 231 virtual component_updater::ComponentUpdateService* component_updater() = 0; |
| 229 | 232 |
| 230 virtual CRLSetFetcher* crl_set_fetcher() = 0; | 233 virtual CRLSetFetcher* crl_set_fetcher() = 0; |
| 231 | 234 |
| 232 virtual component_updater::PnaclComponentInstaller* | 235 virtual component_updater::PnaclComponentInstaller* |
| 233 pnacl_component_installer() = 0; | 236 pnacl_component_installer() = 0; |
| 234 | 237 |
| 235 virtual component_updater::SupervisedUserWhitelistInstaller* | 238 virtual component_updater::SupervisedUserWhitelistInstaller* |
| 236 supervised_user_whitelist_installer() = 0; | 239 supervised_user_whitelist_installer() = 0; |
| (...skipping 19 matching lines...) Expand all Loading... |
| 256 virtual ShellIntegration::DefaultWebClientState | 259 virtual ShellIntegration::DefaultWebClientState |
| 257 CachedDefaultWebClientState() = 0; | 260 CachedDefaultWebClientState() = 0; |
| 258 | 261 |
| 259 private: | 262 private: |
| 260 DISALLOW_COPY_AND_ASSIGN(BrowserProcess); | 263 DISALLOW_COPY_AND_ASSIGN(BrowserProcess); |
| 261 }; | 264 }; |
| 262 | 265 |
| 263 extern BrowserProcess* g_browser_process; | 266 extern BrowserProcess* g_browser_process; |
| 264 | 267 |
| 265 #endif // CHROME_BROWSER_BROWSER_PROCESS_H_ | 268 #endif // CHROME_BROWSER_BROWSER_PROCESS_H_ |
| OLD | NEW |