| 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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 // framework, rather than in the destructor, so that we can | 79 // framework, rather than in the destructor, so that we can |
| 80 // interleave cleanup with threads being stopped. | 80 // interleave cleanup with threads being stopped. |
| 81 #if !defined(OS_ANDROID) | 81 #if !defined(OS_ANDROID) |
| 82 void StartTearDown(); | 82 void StartTearDown(); |
| 83 void PostDestroyThreads(); | 83 void PostDestroyThreads(); |
| 84 #endif | 84 #endif |
| 85 | 85 |
| 86 // BrowserProcess implementation. | 86 // BrowserProcess implementation. |
| 87 void ResourceDispatcherHostCreated() override; | 87 void ResourceDispatcherHostCreated() override; |
| 88 void EndSession() override; | 88 void EndSession() override; |
| 89 MetricsServicesManager* GetMetricsServicesManager() override; | 89 metrics_services_manager::MetricsServicesManager* GetMetricsServicesManager() |
| 90 override; |
| 90 metrics::MetricsService* metrics_service() override; | 91 metrics::MetricsService* metrics_service() override; |
| 91 rappor::RapporService* rappor_service() override; | 92 rappor::RapporService* rappor_service() override; |
| 92 IOThread* io_thread() override; | 93 IOThread* io_thread() override; |
| 93 WatchDogThread* watchdog_thread() override; | 94 WatchDogThread* watchdog_thread() override; |
| 94 ProfileManager* profile_manager() override; | 95 ProfileManager* profile_manager() override; |
| 95 PrefService* local_state() override; | 96 PrefService* local_state() override; |
| 96 net::URLRequestContextGetter* system_request_context() override; | 97 net::URLRequestContextGetter* system_request_context() override; |
| 97 variations::VariationsService* variations_service() override; | 98 variations::VariationsService* variations_service() override; |
| 98 web_resource::PromoResourceService* promo_resource_service() override; | 99 web_resource::PromoResourceService* promo_resource_service() override; |
| 99 BrowserProcessPlatformPart* platform_part() override; | 100 BrowserProcessPlatformPart* platform_part() override; |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 void CreateStatusTray(); | 170 void CreateStatusTray(); |
| 170 void CreateBackgroundModeManager(); | 171 void CreateBackgroundModeManager(); |
| 171 void CreateGCMDriver(); | 172 void CreateGCMDriver(); |
| 172 | 173 |
| 173 void ApplyAllowCrossOriginAuthPromptPolicy(); | 174 void ApplyAllowCrossOriginAuthPromptPolicy(); |
| 174 void ApplyDefaultBrowserPolicy(); | 175 void ApplyDefaultBrowserPolicy(); |
| 175 void ApplyMetricsReportingPolicy(); | 176 void ApplyMetricsReportingPolicy(); |
| 176 | 177 |
| 177 void CacheDefaultWebClientState(); | 178 void CacheDefaultWebClientState(); |
| 178 | 179 |
| 179 scoped_ptr<MetricsServicesManager> metrics_services_manager_; | 180 scoped_ptr<metrics_services_manager::MetricsServicesManager> |
| 181 metrics_services_manager_; |
| 180 | 182 |
| 181 scoped_ptr<IOThread> io_thread_; | 183 scoped_ptr<IOThread> io_thread_; |
| 182 | 184 |
| 183 bool created_watchdog_thread_; | 185 bool created_watchdog_thread_; |
| 184 scoped_ptr<WatchDogThread> watchdog_thread_; | 186 scoped_ptr<WatchDogThread> watchdog_thread_; |
| 185 | 187 |
| 186 bool created_browser_policy_connector_; | 188 bool created_browser_policy_connector_; |
| 187 #if defined(ENABLE_CONFIGURATION_POLICY) | 189 #if defined(ENABLE_CONFIGURATION_POLICY) |
| 188 // Must be destroyed after |local_state_|. | 190 // Must be destroyed after |local_state_|. |
| 189 scoped_ptr<policy::BrowserPolicyConnector> browser_policy_connector_; | 191 scoped_ptr<policy::BrowserPolicyConnector> browser_policy_connector_; |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 326 // chrome/browser/memory/tab_manager_browsertest.cc | 328 // chrome/browser/memory/tab_manager_browsertest.cc |
| 327 scoped_ptr<memory::TabManager> tab_manager_; | 329 scoped_ptr<memory::TabManager> tab_manager_; |
| 328 #endif | 330 #endif |
| 329 | 331 |
| 330 ShellIntegration::DefaultWebClientState cached_default_web_client_state_; | 332 ShellIntegration::DefaultWebClientState cached_default_web_client_state_; |
| 331 | 333 |
| 332 DISALLOW_COPY_AND_ASSIGN(BrowserProcessImpl); | 334 DISALLOW_COPY_AND_ASSIGN(BrowserProcessImpl); |
| 333 }; | 335 }; |
| 334 | 336 |
| 335 #endif // CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_ | 337 #endif // CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_ |
| OLD | NEW |