| 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 // When each service is created, we set a flag indicating this. At this point, | 5 // When each service is created, we set a flag indicating this. At this point, |
| 6 // the service initialization could fail or succeed. This allows us to remember | 6 // the service initialization could fail or succeed. This allows us to remember |
| 7 // if we tried to create a service, and not try creating it over and over if | 7 // if we tried to create a service, and not try creating it over and over if |
| 8 // the creation failed. | 8 // the creation failed. |
| 9 | 9 |
| 10 #ifndef CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_ | 10 #ifndef CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_ |
| 11 #define CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_ | 11 #define CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_ |
| 12 | 12 |
| 13 #include <string> | 13 #include <string> |
| 14 | 14 |
| 15 #include "base/basictypes.h" | 15 #include "base/basictypes.h" |
| 16 #include "base/debug/stack_trace.h" | 16 #include "base/debug/stack_trace.h" |
| 17 #include "base/memory/ref_counted.h" | 17 #include "base/memory/ref_counted.h" |
| 18 #include "base/memory/scoped_ptr.h" | 18 #include "base/memory/scoped_ptr.h" |
| 19 #include "base/prefs/pref_change_registrar.h" | 19 #include "base/prefs/pref_change_registrar.h" |
| 20 #include "base/threading/non_thread_safe.h" | 20 #include "base/threading/non_thread_safe.h" |
| 21 #include "base/timer/timer.h" | 21 #include "base/timer/timer.h" |
| 22 #include "chrome/browser/browser_process.h" | 22 #include "chrome/browser/browser_process.h" |
| 23 | 23 |
| 24 class ChromeChildProcessWatcher; | 24 class ChromeChildProcessWatcher; |
| 25 class ChromeDeviceClient; | 25 class ChromeDeviceClient; |
| 26 class ChromeNetLog; | |
| 27 class ChromeResourceDispatcherHostDelegate; | 26 class ChromeResourceDispatcherHostDelegate; |
| 28 class RemoteDebuggingServer; | 27 class RemoteDebuggingServer; |
| 29 class PrefRegistrySimple; | 28 class PrefRegistrySimple; |
| 30 | 29 |
| 31 #if defined(ENABLE_PLUGIN_INSTALLATION) | 30 #if defined(ENABLE_PLUGIN_INSTALLATION) |
| 32 class PluginsResourceService; | 31 class PluginsResourceService; |
| 33 #endif | 32 #endif |
| 34 | 33 |
| 35 namespace base { | 34 namespace base { |
| 36 class CommandLine; | 35 class CommandLine; |
| 37 class SequencedTaskRunner; | 36 class SequencedTaskRunner; |
| 38 } | 37 } |
| 39 | 38 |
| 40 namespace extensions { | 39 namespace extensions { |
| 41 class ExtensionsBrowserClient; | 40 class ExtensionsBrowserClient; |
| 42 } | 41 } |
| 43 | 42 |
| 44 namespace gcm { | 43 namespace gcm { |
| 45 class GCMDriver; | 44 class GCMDriver; |
| 46 } | 45 } |
| 47 | 46 |
| 47 namespace net_log { |
| 48 class ChromeNetLog; |
| 49 } |
| 50 |
| 48 namespace policy { | 51 namespace policy { |
| 49 class BrowserPolicyConnector; | 52 class BrowserPolicyConnector; |
| 50 class PolicyService; | 53 class PolicyService; |
| 51 }; | 54 }; |
| 52 | 55 |
| 53 namespace web_resource { | 56 namespace web_resource { |
| 54 class PromoResourceService; | 57 class PromoResourceService; |
| 55 } | 58 } |
| 56 | 59 |
| 57 // Real implementation of BrowserProcess that creates and returns the services. | 60 // Real implementation of BrowserProcess that creates and returns the services. |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 scoped_ptr<BackgroundModeManager> manager) override; | 124 scoped_ptr<BackgroundModeManager> manager) override; |
| 122 StatusTray* status_tray() override; | 125 StatusTray* status_tray() override; |
| 123 SafeBrowsingService* safe_browsing_service() override; | 126 SafeBrowsingService* safe_browsing_service() override; |
| 124 safe_browsing::ClientSideDetectionService* safe_browsing_detection_service() | 127 safe_browsing::ClientSideDetectionService* safe_browsing_detection_service() |
| 125 override; | 128 override; |
| 126 | 129 |
| 127 #if (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) | 130 #if (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) |
| 128 void StartAutoupdateTimer() override; | 131 void StartAutoupdateTimer() override; |
| 129 #endif | 132 #endif |
| 130 | 133 |
| 131 ChromeNetLog* net_log() override; | 134 net_log::ChromeNetLog* net_log() override; |
| 132 component_updater::ComponentUpdateService* component_updater() override; | 135 component_updater::ComponentUpdateService* component_updater() override; |
| 133 CRLSetFetcher* crl_set_fetcher() override; | 136 CRLSetFetcher* crl_set_fetcher() override; |
| 134 component_updater::PnaclComponentInstaller* pnacl_component_installer() | 137 component_updater::PnaclComponentInstaller* pnacl_component_installer() |
| 135 override; | 138 override; |
| 136 component_updater::SupervisedUserWhitelistInstaller* | 139 component_updater::SupervisedUserWhitelistInstaller* |
| 137 supervised_user_whitelist_installer() override; | 140 supervised_user_whitelist_installer() override; |
| 138 MediaFileSystemRegistry* media_file_system_registry() override; | 141 MediaFileSystemRegistry* media_file_system_registry() override; |
| 139 bool created_local_state() const override; | 142 bool created_local_state() const override; |
| 140 #if defined(ENABLE_WEBRTC) | 143 #if defined(ENABLE_WEBRTC) |
| 141 WebRtcLogUploader* webrtc_log_uploader() override; | 144 WebRtcLogUploader* webrtc_log_uploader() override; |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 253 scoped_refptr<DownloadRequestLimiter> download_request_limiter_; | 256 scoped_refptr<DownloadRequestLimiter> download_request_limiter_; |
| 254 | 257 |
| 255 // Sequenced task runner for local state related I/O tasks. | 258 // Sequenced task runner for local state related I/O tasks. |
| 256 const scoped_refptr<base::SequencedTaskRunner> local_state_task_runner_; | 259 const scoped_refptr<base::SequencedTaskRunner> local_state_task_runner_; |
| 257 | 260 |
| 258 // Ensures that the observers of plugin/print disable/enable state | 261 // Ensures that the observers of plugin/print disable/enable state |
| 259 // notifications are properly added and removed. | 262 // notifications are properly added and removed. |
| 260 PrefChangeRegistrar pref_change_registrar_; | 263 PrefChangeRegistrar pref_change_registrar_; |
| 261 | 264 |
| 262 // Lives here so can safely log events on shutdown. | 265 // Lives here so can safely log events on shutdown. |
| 263 scoped_ptr<ChromeNetLog> net_log_; | 266 scoped_ptr<net_log::ChromeNetLog> net_log_; |
| 264 | 267 |
| 265 scoped_ptr<ChromeResourceDispatcherHostDelegate> | 268 scoped_ptr<ChromeResourceDispatcherHostDelegate> |
| 266 resource_dispatcher_host_delegate_; | 269 resource_dispatcher_host_delegate_; |
| 267 | 270 |
| 268 scoped_ptr<web_resource::PromoResourceService> promo_resource_service_; | 271 scoped_ptr<web_resource::PromoResourceService> promo_resource_service_; |
| 269 | 272 |
| 270 #if (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) | 273 #if (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) |
| 271 base::RepeatingTimer<BrowserProcessImpl> autoupdate_timer_; | 274 base::RepeatingTimer<BrowserProcessImpl> autoupdate_timer_; |
| 272 | 275 |
| 273 // Gets called by autoupdate timer to see if browser needs restart and can be | 276 // Gets called by autoupdate timer to see if browser needs restart and can be |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 321 // chrome/browser/memory/oom_priority_manager_browsertest.cc | 324 // chrome/browser/memory/oom_priority_manager_browsertest.cc |
| 322 scoped_ptr<memory::OomPriorityManager> oom_priority_manager_; | 325 scoped_ptr<memory::OomPriorityManager> oom_priority_manager_; |
| 323 #endif | 326 #endif |
| 324 | 327 |
| 325 ShellIntegration::DefaultWebClientState cached_default_web_client_state_; | 328 ShellIntegration::DefaultWebClientState cached_default_web_client_state_; |
| 326 | 329 |
| 327 DISALLOW_COPY_AND_ASSIGN(BrowserProcessImpl); | 330 DISALLOW_COPY_AND_ASSIGN(BrowserProcessImpl); |
| 328 }; | 331 }; |
| 329 | 332 |
| 330 #endif // CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_ | 333 #endif // CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_ |
| OLD | NEW |