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; | |
77 virtual MetricsService* metrics_service() OVERRIDE; | 76 virtual MetricsService* metrics_service() OVERRIDE; |
78 virtual rappor::RapporService* rappor_service() OVERRIDE; | 77 virtual rappor::RapporService* rappor_service() OVERRIDE; |
79 virtual IOThread* io_thread() OVERRIDE; | 78 virtual IOThread* io_thread() OVERRIDE; |
80 virtual WatchDogThread* watchdog_thread() OVERRIDE; | 79 virtual WatchDogThread* watchdog_thread() OVERRIDE; |
81 virtual ProfileManager* profile_manager() OVERRIDE; | 80 virtual ProfileManager* profile_manager() OVERRIDE; |
82 virtual PrefService* local_state() OVERRIDE; | 81 virtual PrefService* local_state() OVERRIDE; |
83 virtual net::URLRequestContextGetter* system_request_context() OVERRIDE; | 82 virtual net::URLRequestContextGetter* system_request_context() OVERRIDE; |
84 virtual chrome_variations::VariationsService* variations_service() OVERRIDE; | 83 virtual chrome_variations::VariationsService* variations_service() OVERRIDE; |
85 virtual BrowserProcessPlatformPart* platform_part() OVERRIDE; | 84 virtual BrowserProcessPlatformPart* platform_part() OVERRIDE; |
86 virtual extensions::EventRouterForwarder* | 85 virtual extensions::EventRouterForwarder* |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 void CreateIntranetRedirectDetector(); | 145 void CreateIntranetRedirectDetector(); |
147 void CreateNotificationUIManager(); | 146 void CreateNotificationUIManager(); |
148 void CreateStatusTrayManager(); | 147 void CreateStatusTrayManager(); |
149 void CreatePrintPreviewDialogController(); | 148 void CreatePrintPreviewDialogController(); |
150 void CreateBackgroundPrintingManager(); | 149 void CreateBackgroundPrintingManager(); |
151 void CreateSafeBrowsingService(); | 150 void CreateSafeBrowsingService(); |
152 void CreateSafeBrowsingDetectionService(); | 151 void CreateSafeBrowsingDetectionService(); |
153 void CreateStatusTray(); | 152 void CreateStatusTray(); |
154 void CreateBackgroundModeManager(); | 153 void CreateBackgroundModeManager(); |
155 | 154 |
| 155 MetricsServicesManager* GetMetricsServicesManager(); |
| 156 |
156 void ApplyAllowCrossOriginAuthPromptPolicy(); | 157 void ApplyAllowCrossOriginAuthPromptPolicy(); |
157 void ApplyDefaultBrowserPolicy(); | 158 void ApplyDefaultBrowserPolicy(); |
158 void ApplyMetricsReportingPolicy(); | 159 void ApplyMetricsReportingPolicy(); |
159 | 160 |
160 scoped_ptr<MetricsServicesManager> metrics_services_manager_; | 161 scoped_ptr<MetricsServicesManager> metrics_services_manager_; |
161 | 162 |
162 scoped_ptr<IOThread> io_thread_; | 163 scoped_ptr<IOThread> io_thread_; |
163 | 164 |
164 bool created_watchdog_thread_; | 165 bool created_watchdog_thread_; |
165 scoped_ptr<WatchDogThread> watchdog_thread_; | 166 scoped_ptr<WatchDogThread> watchdog_thread_; |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
284 // Lazily initialized. | 285 // Lazily initialized. |
285 scoped_ptr<WebRtcLogUploader> webrtc_log_uploader_; | 286 scoped_ptr<WebRtcLogUploader> webrtc_log_uploader_; |
286 #endif | 287 #endif |
287 | 288 |
288 scoped_ptr<NetworkTimeTracker> network_time_tracker_; | 289 scoped_ptr<NetworkTimeTracker> network_time_tracker_; |
289 | 290 |
290 DISALLOW_COPY_AND_ASSIGN(BrowserProcessImpl); | 291 DISALLOW_COPY_AND_ASSIGN(BrowserProcessImpl); |
291 }; | 292 }; |
292 | 293 |
293 #endif // CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_ | 294 #endif // CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_ |
OLD | NEW |