| 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_ |
| 11 #define CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_ | 11 #define CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_ |
| 12 | 12 |
| 13 #include <stdint.h> | 13 #include <stdint.h> |
| 14 | 14 |
| 15 #include <memory> | 15 #include <memory> |
| 16 #include <string> | 16 #include <string> |
| 17 | 17 |
| 18 #include "base/debug/stack_trace.h" | 18 #include "base/debug/stack_trace.h" |
| 19 #include "base/macros.h" | 19 #include "base/macros.h" |
| 20 #include "base/memory/ref_counted.h" | 20 #include "base/memory/ref_counted.h" |
| 21 #include "base/threading/non_thread_safe.h" | 21 #include "base/threading/non_thread_safe.h" |
| 22 #include "base/timer/timer.h" | 22 #include "base/timer/timer.h" |
| 23 #include "build/build_config.h" | 23 #include "build/build_config.h" |
| 24 #include "chrome/browser/browser_process.h" | 24 #include "chrome/browser/browser_process.h" |
| 25 #include "chrome/browser/lifetime/keep_alive_state_observer.h" | 25 #include "chrome/browser/lifetime/keep_alive_state_observer.h" |
| 26 #include "chrome/common/features.h" | 26 #include "chrome/common/features.h" |
| 27 #include "components/component_updater/default_component_installer.h" |
| 27 #include "components/prefs/pref_change_registrar.h" | 28 #include "components/prefs/pref_change_registrar.h" |
| 28 #include "extensions/features/features.h" | 29 #include "extensions/features/features.h" |
| 29 #include "media/media_features.h" | 30 #include "media/media_features.h" |
| 30 #include "ppapi/features/features.h" | 31 #include "ppapi/features/features.h" |
| 31 #include "printing/features/features.h" | 32 #include "printing/features/features.h" |
| 32 | 33 |
| 33 class ChromeChildProcessWatcher; | 34 class ChromeChildProcessWatcher; |
| 34 class ChromeDeviceClient; | 35 class ChromeDeviceClient; |
| 35 class ChromeResourceDispatcherHostDelegate; | 36 class ChromeResourceDispatcherHostDelegate; |
| 36 class DevToolsAutoOpener; | 37 class DevToolsAutoOpener; |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 WebRtcLogUploader* webrtc_log_uploader() override; | 155 WebRtcLogUploader* webrtc_log_uploader() override; |
| 155 #endif | 156 #endif |
| 156 network_time::NetworkTimeTracker* network_time_tracker() override; | 157 network_time::NetworkTimeTracker* network_time_tracker() override; |
| 157 gcm::GCMDriver* gcm_driver() override; | 158 gcm::GCMDriver* gcm_driver() override; |
| 158 memory::TabManager* GetTabManager() override; | 159 memory::TabManager* GetTabManager() override; |
| 159 shell_integration::DefaultWebClientState CachedDefaultWebClientState() | 160 shell_integration::DefaultWebClientState CachedDefaultWebClientState() |
| 160 override; | 161 override; |
| 161 physical_web::PhysicalWebDataSource* GetPhysicalWebDataSource() override; | 162 physical_web::PhysicalWebDataSource* GetPhysicalWebDataSource() override; |
| 162 | 163 |
| 163 static void RegisterPrefs(PrefRegistrySimple* registry); | 164 static void RegisterPrefs(PrefRegistrySimple* registry); |
| 165 #if defined(OS_CHROMEOS) |
| 166 component_updater::DefaultComponentInstaller* cros_component_installer( |
| 167 const std::string& name, |
| 168 std::unique_ptr<component_updater::ComponentInstallerTraits> |
| 169 installer_traits) override; |
| 170 #endif |
| 164 | 171 |
| 165 private: | 172 private: |
| 166 // KeepAliveStateObserver implementation | 173 // KeepAliveStateObserver implementation |
| 167 void OnKeepAliveStateChanged(bool is_keeping_alive) override; | 174 void OnKeepAliveStateChanged(bool is_keeping_alive) override; |
| 168 void OnKeepAliveRestartStateChanged(bool can_restart) override; | 175 void OnKeepAliveRestartStateChanged(bool can_restart) override; |
| 169 | 176 |
| 170 void CreateWatchdogThread(); | 177 void CreateWatchdogThread(); |
| 171 void CreateProfileManager(); | 178 void CreateProfileManager(); |
| 172 void CreateLocalState(); | 179 void CreateLocalState(); |
| 173 void CreateViewedPageTracker(); | 180 void CreateViewedPageTracker(); |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 347 // Any change to this #ifdef must be reflected as well in | 354 // Any change to this #ifdef must be reflected as well in |
| 348 // chrome/browser/memory/tab_manager_browsertest.cc | 355 // chrome/browser/memory/tab_manager_browsertest.cc |
| 349 std::unique_ptr<memory::TabManager> tab_manager_; | 356 std::unique_ptr<memory::TabManager> tab_manager_; |
| 350 #endif | 357 #endif |
| 351 | 358 |
| 352 shell_integration::DefaultWebClientState cached_default_web_client_state_; | 359 shell_integration::DefaultWebClientState cached_default_web_client_state_; |
| 353 | 360 |
| 354 std::unique_ptr<physical_web::PhysicalWebDataSource> | 361 std::unique_ptr<physical_web::PhysicalWebDataSource> |
| 355 physical_web_data_source_; | 362 physical_web_data_source_; |
| 356 | 363 |
| 364 #if defined(OS_CHROMEOS) |
| 365 std::map<std::string, |
| 366 scoped_refptr<component_updater::DefaultComponentInstaller>> |
| 367 cros_component_installers_; |
| 368 #endif |
| 369 |
| 357 DISALLOW_COPY_AND_ASSIGN(BrowserProcessImpl); | 370 DISALLOW_COPY_AND_ASSIGN(BrowserProcessImpl); |
| 358 }; | 371 }; |
| 359 | 372 |
| 360 #endif // CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_ | 373 #endif // CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_ |
| OLD | NEW |