| 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_ |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 | 34 |
| 35 namespace base { | 35 namespace base { |
| 36 class CommandLine; | 36 class CommandLine; |
| 37 class SequencedTaskRunner; | 37 class SequencedTaskRunner; |
| 38 } | 38 } |
| 39 | 39 |
| 40 namespace extensions { | 40 namespace extensions { |
| 41 class ExtensionsBrowserClient; | 41 class ExtensionsBrowserClient; |
| 42 } | 42 } |
| 43 | 43 |
| 44 namespace gcm { |
| 45 class GCMDriver; |
| 46 } |
| 47 |
| 44 namespace policy { | 48 namespace policy { |
| 45 class BrowserPolicyConnector; | 49 class BrowserPolicyConnector; |
| 46 class PolicyService; | 50 class PolicyService; |
| 47 }; | 51 }; |
| 48 | 52 |
| 49 // Real implementation of BrowserProcess that creates and returns the services. | 53 // Real implementation of BrowserProcess that creates and returns the services. |
| 50 class BrowserProcessImpl : public BrowserProcess, | 54 class BrowserProcessImpl : public BrowserProcess, |
| 51 public base::NonThreadSafe { | 55 public base::NonThreadSafe { |
| 52 public: | 56 public: |
| 53 // |local_state_task_runner| must be a shutdown-blocking task runner. | 57 // |local_state_task_runner| must be a shutdown-blocking task runner. |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 component_updater() OVERRIDE; | 130 component_updater() OVERRIDE; |
| 127 virtual CRLSetFetcher* crl_set_fetcher() OVERRIDE; | 131 virtual CRLSetFetcher* crl_set_fetcher() OVERRIDE; |
| 128 virtual component_updater::PnaclComponentInstaller* | 132 virtual component_updater::PnaclComponentInstaller* |
| 129 pnacl_component_installer() OVERRIDE; | 133 pnacl_component_installer() OVERRIDE; |
| 130 virtual MediaFileSystemRegistry* media_file_system_registry() OVERRIDE; | 134 virtual MediaFileSystemRegistry* media_file_system_registry() OVERRIDE; |
| 131 virtual bool created_local_state() const OVERRIDE; | 135 virtual bool created_local_state() const OVERRIDE; |
| 132 #if defined(ENABLE_WEBRTC) | 136 #if defined(ENABLE_WEBRTC) |
| 133 virtual WebRtcLogUploader* webrtc_log_uploader() OVERRIDE; | 137 virtual WebRtcLogUploader* webrtc_log_uploader() OVERRIDE; |
| 134 #endif | 138 #endif |
| 135 virtual NetworkTimeTracker* network_time_tracker() OVERRIDE; | 139 virtual NetworkTimeTracker* network_time_tracker() OVERRIDE; |
| 140 virtual gcm::GCMDriver* gcm_driver() OVERRIDE; |
| 136 | 141 |
| 137 static void RegisterPrefs(PrefRegistrySimple* registry); | 142 static void RegisterPrefs(PrefRegistrySimple* registry); |
| 138 | 143 |
| 139 private: | 144 private: |
| 140 void CreateWatchdogThread(); | 145 void CreateWatchdogThread(); |
| 141 void CreateProfileManager(); | 146 void CreateProfileManager(); |
| 142 void CreateLocalState(); | 147 void CreateLocalState(); |
| 143 void CreateViewedPageTracker(); | 148 void CreateViewedPageTracker(); |
| 144 void CreateIconManager(); | 149 void CreateIconManager(); |
| 145 void CreateIntranetRedirectDetector(); | 150 void CreateIntranetRedirectDetector(); |
| 146 void CreateNotificationUIManager(); | 151 void CreateNotificationUIManager(); |
| 147 void CreateStatusTrayManager(); | 152 void CreateStatusTrayManager(); |
| 148 void CreatePrintPreviewDialogController(); | 153 void CreatePrintPreviewDialogController(); |
| 149 void CreateBackgroundPrintingManager(); | 154 void CreateBackgroundPrintingManager(); |
| 150 void CreateSafeBrowsingService(); | 155 void CreateSafeBrowsingService(); |
| 151 void CreateSafeBrowsingDetectionService(); | 156 void CreateSafeBrowsingDetectionService(); |
| 152 void CreateStatusTray(); | 157 void CreateStatusTray(); |
| 153 void CreateBackgroundModeManager(); | 158 void CreateBackgroundModeManager(); |
| 159 void CreateGCMDriver(); |
| 154 | 160 |
| 155 MetricsServicesManager* GetMetricsServicesManager(); | 161 MetricsServicesManager* GetMetricsServicesManager(); |
| 156 | 162 |
| 157 void ApplyAllowCrossOriginAuthPromptPolicy(); | 163 void ApplyAllowCrossOriginAuthPromptPolicy(); |
| 158 void ApplyDefaultBrowserPolicy(); | 164 void ApplyDefaultBrowserPolicy(); |
| 159 void ApplyMetricsReportingPolicy(); | 165 void ApplyMetricsReportingPolicy(); |
| 160 | 166 |
| 161 scoped_ptr<MetricsServicesManager> metrics_services_manager_; | 167 scoped_ptr<MetricsServicesManager> metrics_services_manager_; |
| 162 | 168 |
| 163 scoped_ptr<IOThread> io_thread_; | 169 scoped_ptr<IOThread> io_thread_; |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 281 // the callstack which released the final module reference count. | 287 // the callstack which released the final module reference count. |
| 282 base::debug::StackTrace release_last_reference_callstack_; | 288 base::debug::StackTrace release_last_reference_callstack_; |
| 283 | 289 |
| 284 #if defined(ENABLE_WEBRTC) | 290 #if defined(ENABLE_WEBRTC) |
| 285 // Lazily initialized. | 291 // Lazily initialized. |
| 286 scoped_ptr<WebRtcLogUploader> webrtc_log_uploader_; | 292 scoped_ptr<WebRtcLogUploader> webrtc_log_uploader_; |
| 287 #endif | 293 #endif |
| 288 | 294 |
| 289 scoped_ptr<NetworkTimeTracker> network_time_tracker_; | 295 scoped_ptr<NetworkTimeTracker> network_time_tracker_; |
| 290 | 296 |
| 297 scoped_ptr<gcm::GCMDriver> gcm_driver_; |
| 298 |
| 291 DISALLOW_COPY_AND_ASSIGN(BrowserProcessImpl); | 299 DISALLOW_COPY_AND_ASSIGN(BrowserProcessImpl); |
| 292 }; | 300 }; |
| 293 | 301 |
| 294 #endif // CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_ | 302 #endif // CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_ |
| OLD | NEW |