| 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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 | 140 |
| 140 #if (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) | 141 #if (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) |
| 141 void StartAutoupdateTimer() override; | 142 void StartAutoupdateTimer() override; |
| 142 #endif | 143 #endif |
| 143 | 144 |
| 144 net_log::ChromeNetLog* net_log() override; | 145 net_log::ChromeNetLog* net_log() override; |
| 145 component_updater::ComponentUpdateService* component_updater() override; | 146 component_updater::ComponentUpdateService* component_updater() override; |
| 146 CRLSetFetcher* crl_set_fetcher() override; | 147 CRLSetFetcher* crl_set_fetcher() override; |
| 147 component_updater::PnaclComponentInstaller* pnacl_component_installer() | 148 component_updater::PnaclComponentInstaller* pnacl_component_installer() |
| 148 override; | 149 override; |
| 150 #if defined(OS_CHROMEOS) |
| 151 component_updater::DefaultComponentInstaller* cros_component_installer( |
| 152 const std::string& name, |
| 153 std::unique_ptr<component_updater::ComponentInstallerTraits> |
| 154 installer_traits) override; |
| 155 #endif |
| 149 component_updater::SupervisedUserWhitelistInstaller* | 156 component_updater::SupervisedUserWhitelistInstaller* |
| 150 supervised_user_whitelist_installer() override; | 157 supervised_user_whitelist_installer() override; |
| 151 MediaFileSystemRegistry* media_file_system_registry() override; | 158 MediaFileSystemRegistry* media_file_system_registry() override; |
| 152 bool created_local_state() const override; | 159 bool created_local_state() const override; |
| 153 #if BUILDFLAG(ENABLE_WEBRTC) | 160 #if BUILDFLAG(ENABLE_WEBRTC) |
| 154 WebRtcLogUploader* webrtc_log_uploader() override; | 161 WebRtcLogUploader* webrtc_log_uploader() override; |
| 155 #endif | 162 #endif |
| 156 network_time::NetworkTimeTracker* network_time_tracker() override; | 163 network_time::NetworkTimeTracker* network_time_tracker() override; |
| 157 gcm::GCMDriver* gcm_driver() override; | 164 gcm::GCMDriver* gcm_driver() override; |
| 158 memory::TabManager* GetTabManager() override; | 165 memory::TabManager* GetTabManager() override; |
| (...skipping 188 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 |