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 // Most cleanup is done by these functions, driven from | 66 // Most cleanup is done by these functions, driven from |
67 // ChromeBrowserMain based on notifications from the content | 67 // ChromeBrowserMain based on notifications from the content |
68 // framework, rather than in the destructor, so that we can | 68 // framework, rather than in the destructor, so that we can |
69 // interleave cleanup with threads being stopped. | 69 // interleave cleanup with threads being stopped. |
70 void StartTearDown(); | 70 void StartTearDown(); |
71 void PostDestroyThreads(); | 71 void PostDestroyThreads(); |
72 | 72 |
73 // BrowserProcess implementation. | 73 // BrowserProcess implementation. |
74 virtual void ResourceDispatcherHostCreated() OVERRIDE; | 74 virtual void ResourceDispatcherHostCreated() OVERRIDE; |
75 virtual void EndSession() OVERRIDE; | 75 virtual void EndSession() OVERRIDE; |
| 76 virtual MetricsServicesManager* GetMetricsServicesManager() OVERRIDE; |
76 virtual MetricsService* metrics_service() OVERRIDE; | 77 virtual MetricsService* metrics_service() OVERRIDE; |
77 virtual rappor::RapporService* rappor_service() OVERRIDE; | 78 virtual rappor::RapporService* rappor_service() OVERRIDE; |
78 virtual IOThread* io_thread() OVERRIDE; | 79 virtual IOThread* io_thread() OVERRIDE; |
79 virtual WatchDogThread* watchdog_thread() OVERRIDE; | 80 virtual WatchDogThread* watchdog_thread() OVERRIDE; |
80 virtual ProfileManager* profile_manager() OVERRIDE; | 81 virtual ProfileManager* profile_manager() OVERRIDE; |
81 virtual PrefService* local_state() OVERRIDE; | 82 virtual PrefService* local_state() OVERRIDE; |
82 virtual net::URLRequestContextGetter* system_request_context() OVERRIDE; | 83 virtual net::URLRequestContextGetter* system_request_context() OVERRIDE; |
83 virtual chrome_variations::VariationsService* variations_service() OVERRIDE; | 84 virtual chrome_variations::VariationsService* variations_service() OVERRIDE; |
84 virtual BrowserProcessPlatformPart* platform_part() OVERRIDE; | 85 virtual BrowserProcessPlatformPart* platform_part() OVERRIDE; |
85 virtual extensions::EventRouterForwarder* | 86 virtual extensions::EventRouterForwarder* |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 void CreateIntranetRedirectDetector(); | 146 void CreateIntranetRedirectDetector(); |
146 void CreateNotificationUIManager(); | 147 void CreateNotificationUIManager(); |
147 void CreateStatusTrayManager(); | 148 void CreateStatusTrayManager(); |
148 void CreatePrintPreviewDialogController(); | 149 void CreatePrintPreviewDialogController(); |
149 void CreateBackgroundPrintingManager(); | 150 void CreateBackgroundPrintingManager(); |
150 void CreateSafeBrowsingService(); | 151 void CreateSafeBrowsingService(); |
151 void CreateSafeBrowsingDetectionService(); | 152 void CreateSafeBrowsingDetectionService(); |
152 void CreateStatusTray(); | 153 void CreateStatusTray(); |
153 void CreateBackgroundModeManager(); | 154 void CreateBackgroundModeManager(); |
154 | 155 |
155 MetricsServicesManager* GetMetricsServicesManager(); | |
156 | |
157 void ApplyAllowCrossOriginAuthPromptPolicy(); | 156 void ApplyAllowCrossOriginAuthPromptPolicy(); |
158 void ApplyDefaultBrowserPolicy(); | 157 void ApplyDefaultBrowserPolicy(); |
159 void ApplyMetricsReportingPolicy(); | 158 void ApplyMetricsReportingPolicy(); |
160 | 159 |
161 scoped_ptr<MetricsServicesManager> metrics_services_manager_; | 160 scoped_ptr<MetricsServicesManager> metrics_services_manager_; |
162 | 161 |
163 scoped_ptr<IOThread> io_thread_; | 162 scoped_ptr<IOThread> io_thread_; |
164 | 163 |
165 bool created_watchdog_thread_; | 164 bool created_watchdog_thread_; |
166 scoped_ptr<WatchDogThread> watchdog_thread_; | 165 scoped_ptr<WatchDogThread> watchdog_thread_; |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
285 // Lazily initialized. | 284 // Lazily initialized. |
286 scoped_ptr<WebRtcLogUploader> webrtc_log_uploader_; | 285 scoped_ptr<WebRtcLogUploader> webrtc_log_uploader_; |
287 #endif | 286 #endif |
288 | 287 |
289 scoped_ptr<NetworkTimeTracker> network_time_tracker_; | 288 scoped_ptr<NetworkTimeTracker> network_time_tracker_; |
290 | 289 |
291 DISALLOW_COPY_AND_ASSIGN(BrowserProcessImpl); | 290 DISALLOW_COPY_AND_ASSIGN(BrowserProcessImpl); |
292 }; | 291 }; |
293 | 292 |
294 #endif // CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_ | 293 #endif // CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_ |
OLD | NEW |