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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 MediaFileSystemRegistry* media_file_system_registry() override; | 146 MediaFileSystemRegistry* media_file_system_registry() override; |
147 bool created_local_state() const override; | 147 bool created_local_state() const override; |
148 #if defined(ENABLE_WEBRTC) | 148 #if defined(ENABLE_WEBRTC) |
149 WebRtcLogUploader* webrtc_log_uploader() override; | 149 WebRtcLogUploader* webrtc_log_uploader() override; |
150 #endif | 150 #endif |
151 network_time::NetworkTimeTracker* network_time_tracker() override; | 151 network_time::NetworkTimeTracker* network_time_tracker() override; |
152 gcm::GCMDriver* gcm_driver() override; | 152 gcm::GCMDriver* gcm_driver() override; |
153 memory::TabManager* GetTabManager() override; | 153 memory::TabManager* GetTabManager() override; |
154 shell_integration::DefaultWebClientState CachedDefaultWebClientState() | 154 shell_integration::DefaultWebClientState CachedDefaultWebClientState() |
155 override; | 155 override; |
| 156 PhysicalWebDataSource* GetPhysicalWebDataSource() override; |
156 | 157 |
157 static void RegisterPrefs(PrefRegistrySimple* registry); | 158 static void RegisterPrefs(PrefRegistrySimple* registry); |
158 | 159 |
159 private: | 160 private: |
160 // KeepAliveStateObserver implementation | 161 // KeepAliveStateObserver implementation |
161 void OnKeepAliveStateChanged(bool is_keeping_alive) override; | 162 void OnKeepAliveStateChanged(bool is_keeping_alive) override; |
162 void OnKeepAliveRestartStateChanged(bool can_restart) override; | 163 void OnKeepAliveRestartStateChanged(bool can_restart) override; |
163 | 164 |
164 void CreateWatchdogThread(); | 165 void CreateWatchdogThread(); |
165 void CreateProfileManager(); | 166 void CreateProfileManager(); |
166 void CreateLocalState(); | 167 void CreateLocalState(); |
167 void CreateViewedPageTracker(); | 168 void CreateViewedPageTracker(); |
168 void CreateIconManager(); | 169 void CreateIconManager(); |
169 void CreateIntranetRedirectDetector(); | 170 void CreateIntranetRedirectDetector(); |
170 void CreateNotificationPlatformBridge(); | 171 void CreateNotificationPlatformBridge(); |
171 void CreateNotificationUIManager(); | 172 void CreateNotificationUIManager(); |
172 void CreateStatusTrayManager(); | 173 void CreateStatusTrayManager(); |
173 void CreatePrintPreviewDialogController(); | 174 void CreatePrintPreviewDialogController(); |
174 void CreateBackgroundPrintingManager(); | 175 void CreateBackgroundPrintingManager(); |
175 void CreateSafeBrowsingService(); | 176 void CreateSafeBrowsingService(); |
176 void CreateSafeBrowsingDetectionService(); | 177 void CreateSafeBrowsingDetectionService(); |
177 void CreateSubresourceFilterRulesetService(); | 178 void CreateSubresourceFilterRulesetService(); |
178 void CreateStatusTray(); | 179 void CreateStatusTray(); |
179 void CreateBackgroundModeManager(); | 180 void CreateBackgroundModeManager(); |
180 void CreateGCMDriver(); | 181 void CreateGCMDriver(); |
| 182 void CreatePhysicalWebDataSource(); |
181 | 183 |
182 void ApplyAllowCrossOriginAuthPromptPolicy(); | 184 void ApplyAllowCrossOriginAuthPromptPolicy(); |
183 void ApplyDefaultBrowserPolicy(); | 185 void ApplyDefaultBrowserPolicy(); |
184 void ApplyMetricsReportingPolicy(); | 186 void ApplyMetricsReportingPolicy(); |
185 | 187 |
186 void CacheDefaultWebClientState(); | 188 void CacheDefaultWebClientState(); |
187 | 189 |
188 // Methods called to control our lifetime. The browser process can be "pinned" | 190 // Methods called to control our lifetime. The browser process can be "pinned" |
189 // to make sure it keeps running. | 191 // to make sure it keeps running. |
190 void Pin(); | 192 void Pin(); |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
337 std::unique_ptr<ChromeDeviceClient> device_client_; | 339 std::unique_ptr<ChromeDeviceClient> device_client_; |
338 | 340 |
339 #if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) | 341 #if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) |
340 // Any change to this #ifdef must be reflected as well in | 342 // Any change to this #ifdef must be reflected as well in |
341 // chrome/browser/memory/tab_manager_browsertest.cc | 343 // chrome/browser/memory/tab_manager_browsertest.cc |
342 std::unique_ptr<memory::TabManager> tab_manager_; | 344 std::unique_ptr<memory::TabManager> tab_manager_; |
343 #endif | 345 #endif |
344 | 346 |
345 shell_integration::DefaultWebClientState cached_default_web_client_state_; | 347 shell_integration::DefaultWebClientState cached_default_web_client_state_; |
346 | 348 |
| 349 std::unique_ptr<PhysicalWebDataSource> physical_web_data_source_; |
| 350 |
347 DISALLOW_COPY_AND_ASSIGN(BrowserProcessImpl); | 351 DISALLOW_COPY_AND_ASSIGN(BrowserProcessImpl); |
348 }; | 352 }; |
349 | 353 |
350 #endif // CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_ | 354 #endif // CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_ |
OLD | NEW |