Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(379)

Side by Side Diff: chrome/browser/browser_process_impl.h

Issue 2517953003: Move enable_webrtc to a buildflag header. (Closed)
Patch Set: Fix Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/browser/browser_process.h ('k') | chrome/browser/browser_process_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/prefs/pref_change_registrar.h" 27 #include "components/prefs/pref_change_registrar.h"
28 #include "extensions/features/features.h" 28 #include "extensions/features/features.h"
29 #include "media/media_features.h"
29 #include "printing/features/features.h" 30 #include "printing/features/features.h"
30 31
31 class ChromeChildProcessWatcher; 32 class ChromeChildProcessWatcher;
32 class ChromeDeviceClient; 33 class ChromeDeviceClient;
33 class ChromeResourceDispatcherHostDelegate; 34 class ChromeResourceDispatcherHostDelegate;
34 class DevToolsAutoOpener; 35 class DevToolsAutoOpener;
35 class RemoteDebuggingServer; 36 class RemoteDebuggingServer;
36 class PrefRegistrySimple; 37 class PrefRegistrySimple;
37 38
38 #if BUILDFLAG(ENABLE_PLUGIN_INSTALLATION) 39 #if BUILDFLAG(ENABLE_PLUGIN_INSTALLATION)
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 141
141 net_log::ChromeNetLog* net_log() override; 142 net_log::ChromeNetLog* net_log() override;
142 component_updater::ComponentUpdateService* component_updater() override; 143 component_updater::ComponentUpdateService* component_updater() override;
143 CRLSetFetcher* crl_set_fetcher() override; 144 CRLSetFetcher* crl_set_fetcher() override;
144 component_updater::PnaclComponentInstaller* pnacl_component_installer() 145 component_updater::PnaclComponentInstaller* pnacl_component_installer()
145 override; 146 override;
146 component_updater::SupervisedUserWhitelistInstaller* 147 component_updater::SupervisedUserWhitelistInstaller*
147 supervised_user_whitelist_installer() override; 148 supervised_user_whitelist_installer() override;
148 MediaFileSystemRegistry* media_file_system_registry() override; 149 MediaFileSystemRegistry* media_file_system_registry() override;
149 bool created_local_state() const override; 150 bool created_local_state() const override;
150 #if defined(ENABLE_WEBRTC) 151 #if BUILDFLAG(ENABLE_WEBRTC)
151 WebRtcLogUploader* webrtc_log_uploader() override; 152 WebRtcLogUploader* webrtc_log_uploader() override;
152 #endif 153 #endif
153 network_time::NetworkTimeTracker* network_time_tracker() override; 154 network_time::NetworkTimeTracker* network_time_tracker() override;
154 gcm::GCMDriver* gcm_driver() override; 155 gcm::GCMDriver* gcm_driver() override;
155 memory::TabManager* GetTabManager() override; 156 memory::TabManager* GetTabManager() override;
156 shell_integration::DefaultWebClientState CachedDefaultWebClientState() 157 shell_integration::DefaultWebClientState CachedDefaultWebClientState()
157 override; 158 override;
158 PhysicalWebDataSource* GetPhysicalWebDataSource() override; 159 PhysicalWebDataSource* GetPhysicalWebDataSource() override;
159 160
160 static void RegisterPrefs(PrefRegistrySimple* registry); 161 static void RegisterPrefs(PrefRegistrySimple* registry);
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 #if BUILDFLAG(ENABLE_PLUGIN_INSTALLATION) 321 #if BUILDFLAG(ENABLE_PLUGIN_INSTALLATION)
321 std::unique_ptr<PluginsResourceService> plugins_resource_service_; 322 std::unique_ptr<PluginsResourceService> plugins_resource_service_;
322 #endif 323 #endif
323 324
324 std::unique_ptr<BrowserProcessPlatformPart> platform_part_; 325 std::unique_ptr<BrowserProcessPlatformPart> platform_part_;
325 326
326 // TODO(eroman): Remove this when done debugging 113031. This tracks 327 // TODO(eroman): Remove this when done debugging 113031. This tracks
327 // the callstack which released the final module reference count. 328 // the callstack which released the final module reference count.
328 base::debug::StackTrace release_last_reference_callstack_; 329 base::debug::StackTrace release_last_reference_callstack_;
329 330
330 #if defined(ENABLE_WEBRTC) 331 #if BUILDFLAG(ENABLE_WEBRTC)
331 // Lazily initialized. 332 // Lazily initialized.
332 std::unique_ptr<WebRtcLogUploader> webrtc_log_uploader_; 333 std::unique_ptr<WebRtcLogUploader> webrtc_log_uploader_;
333 #endif 334 #endif
334 335
335 std::unique_ptr<network_time::NetworkTimeTracker> network_time_tracker_; 336 std::unique_ptr<network_time::NetworkTimeTracker> network_time_tracker_;
336 337
337 std::unique_ptr<gcm::GCMDriver> gcm_driver_; 338 std::unique_ptr<gcm::GCMDriver> gcm_driver_;
338 339
339 std::unique_ptr<ChromeChildProcessWatcher> child_process_watcher_; 340 std::unique_ptr<ChromeChildProcessWatcher> child_process_watcher_;
340 341
341 std::unique_ptr<ChromeDeviceClient> device_client_; 342 std::unique_ptr<ChromeDeviceClient> device_client_;
342 343
343 #if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) 344 #if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX)
344 // Any change to this #ifdef must be reflected as well in 345 // Any change to this #ifdef must be reflected as well in
345 // chrome/browser/memory/tab_manager_browsertest.cc 346 // chrome/browser/memory/tab_manager_browsertest.cc
346 std::unique_ptr<memory::TabManager> tab_manager_; 347 std::unique_ptr<memory::TabManager> tab_manager_;
347 #endif 348 #endif
348 349
349 shell_integration::DefaultWebClientState cached_default_web_client_state_; 350 shell_integration::DefaultWebClientState cached_default_web_client_state_;
350 351
351 std::unique_ptr<PhysicalWebDataSource> physical_web_data_source_; 352 std::unique_ptr<PhysicalWebDataSource> physical_web_data_source_;
352 353
353 DISALLOW_COPY_AND_ASSIGN(BrowserProcessImpl); 354 DISALLOW_COPY_AND_ASSIGN(BrowserProcessImpl);
354 }; 355 };
355 356
356 #endif // CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_ 357 #endif // CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_
OLDNEW
« no previous file with comments | « chrome/browser/browser_process.h ('k') | chrome/browser/browser_process_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698