Chromium Code Reviews| 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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 120 #if (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) | 120 #if (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) |
| 121 virtual void StartAutoupdateTimer() OVERRIDE; | 121 virtual void StartAutoupdateTimer() OVERRIDE; |
| 122 #endif | 122 #endif |
| 123 | 123 |
| 124 virtual ChromeNetLog* net_log() OVERRIDE; | 124 virtual ChromeNetLog* net_log() OVERRIDE; |
| 125 virtual prerender::PrerenderTracker* prerender_tracker() OVERRIDE; | 125 virtual prerender::PrerenderTracker* prerender_tracker() OVERRIDE; |
| 126 virtual ComponentUpdateService* component_updater() OVERRIDE; | 126 virtual ComponentUpdateService* component_updater() OVERRIDE; |
| 127 virtual CRLSetFetcher* crl_set_fetcher() OVERRIDE; | 127 virtual CRLSetFetcher* crl_set_fetcher() OVERRIDE; |
| 128 virtual PnaclComponentInstaller* pnacl_component_installer() OVERRIDE; | 128 virtual PnaclComponentInstaller* pnacl_component_installer() OVERRIDE; |
| 129 virtual BookmarkPromptController* bookmark_prompt_controller() OVERRIDE; | 129 virtual BookmarkPromptController* bookmark_prompt_controller() OVERRIDE; |
| 130 virtual chrome::StorageMonitor* storage_monitor() OVERRIDE; | |
| 130 virtual chrome::MediaFileSystemRegistry* | 131 virtual chrome::MediaFileSystemRegistry* |
| 131 media_file_system_registry() OVERRIDE; | 132 media_file_system_registry() OVERRIDE; |
| 132 virtual bool created_local_state() const OVERRIDE; | 133 virtual bool created_local_state() const OVERRIDE; |
| 133 #if defined(ENABLE_WEBRTC) | 134 #if defined(ENABLE_WEBRTC) |
| 134 virtual WebRtcLogUploader* webrtc_log_uploader() OVERRIDE; | 135 virtual WebRtcLogUploader* webrtc_log_uploader() OVERRIDE; |
| 135 #endif | 136 #endif |
| 136 | 137 |
| 137 static void RegisterPrefs(PrefRegistrySimple* registry); | 138 static void RegisterPrefs(PrefRegistrySimple* registry); |
| 138 | 139 |
| 139 private: | 140 private: |
| 141 friend class TestingBrowserProcess; | |
| 142 | |
| 140 void CreateMetricsService(); | 143 void CreateMetricsService(); |
| 141 void CreateWatchdogThread(); | 144 void CreateWatchdogThread(); |
| 142 void CreateProfileManager(); | 145 void CreateProfileManager(); |
| 143 void CreateLocalState(); | 146 void CreateLocalState(); |
| 144 void CreateViewedPageTracker(); | 147 void CreateViewedPageTracker(); |
| 145 void CreateIconManager(); | 148 void CreateIconManager(); |
| 146 void CreateIntranetRedirectDetector(); | 149 void CreateIntranetRedirectDetector(); |
| 147 void CreateNotificationUIManager(); | 150 void CreateNotificationUIManager(); |
| 148 void CreateStatusTrayManager(); | 151 void CreateStatusTrayManager(); |
| 149 void CreatePrintPreviewDialogController(); | 152 void CreatePrintPreviewDialogController(); |
| 150 void CreateBackgroundPrintingManager(); | 153 void CreateBackgroundPrintingManager(); |
| 151 void CreateSafeBrowsingService(); | 154 void CreateSafeBrowsingService(); |
| 152 void CreateSafeBrowsingDetectionService(); | 155 void CreateSafeBrowsingDetectionService(); |
| 153 void CreateStatusTray(); | 156 void CreateStatusTray(); |
| 154 void CreateBackgroundModeManager(); | 157 void CreateBackgroundModeManager(); |
| 155 | 158 |
| 156 void ApplyAllowCrossOriginAuthPromptPolicy(); | 159 void ApplyAllowCrossOriginAuthPromptPolicy(); |
| 157 void ApplyDefaultBrowserPolicy(); | 160 void ApplyDefaultBrowserPolicy(); |
| 158 | 161 |
| 162 void SetStorageMonitorForTesting(chrome::StorageMonitor* monitor); | |
|
Lei Zhang
2013/07/02 23:16:57
I think we can make this public, just like set_bac
Greg Billock
2013/07/03 17:49:17
Done.
| |
| 163 | |
| 159 bool created_metrics_service_; | 164 bool created_metrics_service_; |
| 160 scoped_ptr<MetricsService> metrics_service_; | 165 scoped_ptr<MetricsService> metrics_service_; |
| 161 | 166 |
| 162 scoped_ptr<IOThread> io_thread_; | 167 scoped_ptr<IOThread> io_thread_; |
| 163 | 168 |
| 164 bool created_watchdog_thread_; | 169 bool created_watchdog_thread_; |
| 165 scoped_ptr<WatchDogThread> watchdog_thread_; | 170 scoped_ptr<WatchDogThread> watchdog_thread_; |
| 166 | 171 |
| 167 bool created_browser_policy_connector_; | 172 bool created_browser_policy_connector_; |
| 168 #if defined(ENABLE_CONFIGURATION_POLICY) | 173 #if defined(ENABLE_CONFIGURATION_POLICY) |
| (...skipping 20 matching lines...) Expand all Loading... | |
| 189 scoped_ptr<GpuModeManager> gpu_mode_manager_; | 194 scoped_ptr<GpuModeManager> gpu_mode_manager_; |
| 190 | 195 |
| 191 scoped_refptr<extensions::EventRouterForwarder> | 196 scoped_refptr<extensions::EventRouterForwarder> |
| 192 extension_event_router_forwarder_; | 197 extension_event_router_forwarder_; |
| 193 | 198 |
| 194 #if !defined(OS_ANDROID) | 199 #if !defined(OS_ANDROID) |
| 195 scoped_ptr<RemoteDebuggingServer> remote_debugging_server_; | 200 scoped_ptr<RemoteDebuggingServer> remote_debugging_server_; |
| 196 | 201 |
| 197 // Bookmark prompt controller displays the prompt for frequently visited URL. | 202 // Bookmark prompt controller displays the prompt for frequently visited URL. |
| 198 scoped_ptr<BookmarkPromptController> bookmark_prompt_controller_; | 203 scoped_ptr<BookmarkPromptController> bookmark_prompt_controller_; |
| 204 #endif | |
| 205 | |
| 206 #if !defined(OS_ANDROID) && !defined(OS_IOS) | |
| 207 scoped_ptr<chrome::StorageMonitor> storage_monitor_; | |
| 199 | 208 |
| 200 scoped_ptr<chrome::MediaFileSystemRegistry> media_file_system_registry_; | 209 scoped_ptr<chrome::MediaFileSystemRegistry> media_file_system_registry_; |
| 201 #endif | 210 #endif |
| 202 | 211 |
| 203 scoped_refptr<printing::PrintPreviewDialogController> | 212 scoped_refptr<printing::PrintPreviewDialogController> |
| 204 print_preview_dialog_controller_; | 213 print_preview_dialog_controller_; |
| 205 | 214 |
| 206 scoped_ptr<printing::BackgroundPrintingManager> background_printing_manager_; | 215 scoped_ptr<printing::BackgroundPrintingManager> background_printing_manager_; |
| 207 | 216 |
| 208 scoped_ptr<chrome_variations::VariationsService> variations_service_; | 217 scoped_ptr<chrome_variations::VariationsService> variations_service_; |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 299 | 308 |
| 300 #if defined(ENABLE_WEBRTC) | 309 #if defined(ENABLE_WEBRTC) |
| 301 // Lazily initialized. | 310 // Lazily initialized. |
| 302 scoped_ptr<WebRtcLogUploader> webrtc_log_uploader_; | 311 scoped_ptr<WebRtcLogUploader> webrtc_log_uploader_; |
| 303 #endif | 312 #endif |
| 304 | 313 |
| 305 DISALLOW_COPY_AND_ASSIGN(BrowserProcessImpl); | 314 DISALLOW_COPY_AND_ASSIGN(BrowserProcessImpl); |
| 306 }; | 315 }; |
| 307 | 316 |
| 308 #endif // CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_ | 317 #endif // CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_ |
| OLD | NEW |