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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 // ChromeBrowserMain based on notifications from the content | 66 // ChromeBrowserMain based on notifications from the content |
67 // framework, rather than in the destructor, so that we can | 67 // framework, rather than in the destructor, so that we can |
68 // interleave cleanup with threads being stopped. | 68 // interleave cleanup with threads being stopped. |
69 void StartTearDown(); | 69 void StartTearDown(); |
70 void PostDestroyThreads(); | 70 void PostDestroyThreads(); |
71 | 71 |
72 // BrowserProcess implementation. | 72 // BrowserProcess implementation. |
73 virtual void ResourceDispatcherHostCreated() OVERRIDE; | 73 virtual void ResourceDispatcherHostCreated() OVERRIDE; |
74 virtual void EndSession() OVERRIDE; | 74 virtual void EndSession() OVERRIDE; |
75 virtual MetricsService* metrics_service() OVERRIDE; | 75 virtual MetricsService* metrics_service() OVERRIDE; |
| 76 virtual rappor::RapporService* rappor_service() OVERRIDE; |
76 virtual IOThread* io_thread() OVERRIDE; | 77 virtual IOThread* io_thread() OVERRIDE; |
77 virtual WatchDogThread* watchdog_thread() OVERRIDE; | 78 virtual WatchDogThread* watchdog_thread() OVERRIDE; |
78 virtual ProfileManager* profile_manager() OVERRIDE; | 79 virtual ProfileManager* profile_manager() OVERRIDE; |
79 virtual PrefService* local_state() OVERRIDE; | 80 virtual PrefService* local_state() OVERRIDE; |
80 virtual net::URLRequestContextGetter* system_request_context() OVERRIDE; | 81 virtual net::URLRequestContextGetter* system_request_context() OVERRIDE; |
81 virtual chrome_variations::VariationsService* variations_service() OVERRIDE; | 82 virtual chrome_variations::VariationsService* variations_service() OVERRIDE; |
82 virtual BrowserProcessPlatformPart* platform_part() OVERRIDE; | 83 virtual BrowserProcessPlatformPart* platform_part() OVERRIDE; |
83 virtual extensions::EventRouterForwarder* | 84 virtual extensions::EventRouterForwarder* |
84 extension_event_router_forwarder() OVERRIDE; | 85 extension_event_router_forwarder() OVERRIDE; |
85 virtual NotificationUIManager* notification_ui_manager() OVERRIDE; | 86 virtual NotificationUIManager* notification_ui_manager() OVERRIDE; |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 void CreateStatusTray(); | 155 void CreateStatusTray(); |
155 void CreateBackgroundModeManager(); | 156 void CreateBackgroundModeManager(); |
156 | 157 |
157 void ApplyAllowCrossOriginAuthPromptPolicy(); | 158 void ApplyAllowCrossOriginAuthPromptPolicy(); |
158 void ApplyDefaultBrowserPolicy(); | 159 void ApplyDefaultBrowserPolicy(); |
159 void ApplyMetricsReportingPolicy(); | 160 void ApplyMetricsReportingPolicy(); |
160 | 161 |
161 bool created_metrics_service_; | 162 bool created_metrics_service_; |
162 scoped_ptr<MetricsService> metrics_service_; | 163 scoped_ptr<MetricsService> metrics_service_; |
163 | 164 |
| 165 scoped_ptr<rappor::RapporService> rappor_service_; |
| 166 |
164 scoped_ptr<IOThread> io_thread_; | 167 scoped_ptr<IOThread> io_thread_; |
165 | 168 |
166 bool created_watchdog_thread_; | 169 bool created_watchdog_thread_; |
167 scoped_ptr<WatchDogThread> watchdog_thread_; | 170 scoped_ptr<WatchDogThread> watchdog_thread_; |
168 | 171 |
169 bool created_browser_policy_connector_; | 172 bool created_browser_policy_connector_; |
170 #if defined(ENABLE_CONFIGURATION_POLICY) | 173 #if defined(ENABLE_CONFIGURATION_POLICY) |
171 // Must be destroyed after |local_state_|. | 174 // Must be destroyed after |local_state_|. |
172 scoped_ptr<policy::BrowserPolicyConnector> browser_policy_connector_; | 175 scoped_ptr<policy::BrowserPolicyConnector> browser_policy_connector_; |
173 #endif | 176 #endif |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
301 | 304 |
302 #if defined(ENABLE_WEBRTC) | 305 #if defined(ENABLE_WEBRTC) |
303 // Lazily initialized. | 306 // Lazily initialized. |
304 scoped_ptr<WebRtcLogUploader> webrtc_log_uploader_; | 307 scoped_ptr<WebRtcLogUploader> webrtc_log_uploader_; |
305 #endif | 308 #endif |
306 | 309 |
307 DISALLOW_COPY_AND_ASSIGN(BrowserProcessImpl); | 310 DISALLOW_COPY_AND_ASSIGN(BrowserProcessImpl); |
308 }; | 311 }; |
309 | 312 |
310 #endif // CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_ | 313 #endif // CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_ |
OLD | NEW |