| 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 // Most cleanup is done by these functions, driven from | 70 // Most cleanup is done by these functions, driven from |
| 71 // ChromeBrowserMain based on notifications from the content | 71 // ChromeBrowserMain based on notifications from the content |
| 72 // framework, rather than in the destructor, so that we can | 72 // framework, rather than in the destructor, so that we can |
| 73 // interleave cleanup with threads being stopped. | 73 // interleave cleanup with threads being stopped. |
| 74 void StartTearDown(); | 74 void StartTearDown(); |
| 75 void PostDestroyThreads(); | 75 void PostDestroyThreads(); |
| 76 | 76 |
| 77 // BrowserProcess implementation. | 77 // BrowserProcess implementation. |
| 78 virtual void ResourceDispatcherHostCreated() OVERRIDE; | 78 virtual void ResourceDispatcherHostCreated() OVERRIDE; |
| 79 virtual void EndSession() OVERRIDE; | 79 virtual void EndSession() OVERRIDE; |
| 80 virtual MetricsServicesManager* GetMetricsServicesManager() OVERRIDE; |
| 80 virtual MetricsService* metrics_service() OVERRIDE; | 81 virtual MetricsService* metrics_service() OVERRIDE; |
| 81 virtual rappor::RapporService* rappor_service() OVERRIDE; | 82 virtual rappor::RapporService* rappor_service() OVERRIDE; |
| 82 virtual IOThread* io_thread() OVERRIDE; | 83 virtual IOThread* io_thread() OVERRIDE; |
| 83 virtual WatchDogThread* watchdog_thread() OVERRIDE; | 84 virtual WatchDogThread* watchdog_thread() OVERRIDE; |
| 84 virtual ProfileManager* profile_manager() OVERRIDE; | 85 virtual ProfileManager* profile_manager() OVERRIDE; |
| 85 virtual PrefService* local_state() OVERRIDE; | 86 virtual PrefService* local_state() OVERRIDE; |
| 86 virtual net::URLRequestContextGetter* system_request_context() OVERRIDE; | 87 virtual net::URLRequestContextGetter* system_request_context() OVERRIDE; |
| 87 virtual chrome_variations::VariationsService* variations_service() OVERRIDE; | 88 virtual chrome_variations::VariationsService* variations_service() OVERRIDE; |
| 88 virtual BrowserProcessPlatformPart* platform_part() OVERRIDE; | 89 virtual BrowserProcessPlatformPart* platform_part() OVERRIDE; |
| 89 virtual extensions::EventRouterForwarder* | 90 virtual extensions::EventRouterForwarder* |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 void CreateNotificationUIManager(); | 152 void CreateNotificationUIManager(); |
| 152 void CreateStatusTrayManager(); | 153 void CreateStatusTrayManager(); |
| 153 void CreatePrintPreviewDialogController(); | 154 void CreatePrintPreviewDialogController(); |
| 154 void CreateBackgroundPrintingManager(); | 155 void CreateBackgroundPrintingManager(); |
| 155 void CreateSafeBrowsingService(); | 156 void CreateSafeBrowsingService(); |
| 156 void CreateSafeBrowsingDetectionService(); | 157 void CreateSafeBrowsingDetectionService(); |
| 157 void CreateStatusTray(); | 158 void CreateStatusTray(); |
| 158 void CreateBackgroundModeManager(); | 159 void CreateBackgroundModeManager(); |
| 159 void CreateGCMDriver(); | 160 void CreateGCMDriver(); |
| 160 | 161 |
| 161 MetricsServicesManager* GetMetricsServicesManager(); | |
| 162 | |
| 163 void ApplyAllowCrossOriginAuthPromptPolicy(); | 162 void ApplyAllowCrossOriginAuthPromptPolicy(); |
| 164 void ApplyDefaultBrowserPolicy(); | 163 void ApplyDefaultBrowserPolicy(); |
| 165 void ApplyMetricsReportingPolicy(); | 164 void ApplyMetricsReportingPolicy(); |
| 166 | 165 |
| 167 scoped_ptr<MetricsServicesManager> metrics_services_manager_; | 166 scoped_ptr<MetricsServicesManager> metrics_services_manager_; |
| 168 | 167 |
| 169 scoped_ptr<IOThread> io_thread_; | 168 scoped_ptr<IOThread> io_thread_; |
| 170 | 169 |
| 171 bool created_watchdog_thread_; | 170 bool created_watchdog_thread_; |
| 172 scoped_ptr<WatchDogThread> watchdog_thread_; | 171 scoped_ptr<WatchDogThread> watchdog_thread_; |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 293 #endif | 292 #endif |
| 294 | 293 |
| 295 scoped_ptr<network_time::NetworkTimeTracker> network_time_tracker_; | 294 scoped_ptr<network_time::NetworkTimeTracker> network_time_tracker_; |
| 296 | 295 |
| 297 scoped_ptr<gcm::GCMDriver> gcm_driver_; | 296 scoped_ptr<gcm::GCMDriver> gcm_driver_; |
| 298 | 297 |
| 299 DISALLOW_COPY_AND_ASSIGN(BrowserProcessImpl); | 298 DISALLOW_COPY_AND_ASSIGN(BrowserProcessImpl); |
| 300 }; | 299 }; |
| 301 | 300 |
| 302 #endif // CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_ | 301 #endif // CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_ |
| OLD | NEW |