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

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

Issue 494993005: Only build various flash/pnacl/ppapi code when they are enabled. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 3 months 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/browser_process_impl.h ('k') | chrome/browser/chrome_browser_main.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 #include "chrome/browser/browser_process_impl.h" 5 #include "chrome/browser/browser_process_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <map> 8 #include <map>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 11 matching lines...) Expand all
22 #include "base/prefs/pref_service.h" 22 #include "base/prefs/pref_service.h"
23 #include "base/synchronization/waitable_event.h" 23 #include "base/synchronization/waitable_event.h"
24 #include "base/threading/thread.h" 24 #include "base/threading/thread.h"
25 #include "base/threading/thread_restrictions.h" 25 #include "base/threading/thread_restrictions.h"
26 #include "base/time/default_tick_clock.h" 26 #include "base/time/default_tick_clock.h"
27 #include "chrome/browser/background/background_mode_manager.h" 27 #include "chrome/browser/background/background_mode_manager.h"
28 #include "chrome/browser/chrome_browser_main.h" 28 #include "chrome/browser/chrome_browser_main.h"
29 #include "chrome/browser/chrome_content_browser_client.h" 29 #include "chrome/browser/chrome_content_browser_client.h"
30 #include "chrome/browser/chrome_notification_types.h" 30 #include "chrome/browser/chrome_notification_types.h"
31 #include "chrome/browser/component_updater/chrome_component_updater_configurator .h" 31 #include "chrome/browser/component_updater/chrome_component_updater_configurator .h"
32 #include "chrome/browser/component_updater/pnacl/pnacl_component_installer.h"
33 #include "chrome/browser/defaults.h" 32 #include "chrome/browser/defaults.h"
34 #include "chrome/browser/devtools/remote_debugging_server.h" 33 #include "chrome/browser/devtools/remote_debugging_server.h"
35 #include "chrome/browser/download/download_request_limiter.h" 34 #include "chrome/browser/download/download_request_limiter.h"
36 #include "chrome/browser/download/download_status_updater.h" 35 #include "chrome/browser/download/download_status_updater.h"
37 #include "chrome/browser/first_run/upgrade_util.h" 36 #include "chrome/browser/first_run/upgrade_util.h"
38 #include "chrome/browser/gpu/gl_string_manager.h" 37 #include "chrome/browser/gpu/gl_string_manager.h"
39 #include "chrome/browser/gpu/gpu_mode_manager.h" 38 #include "chrome/browser/gpu/gpu_mode_manager.h"
40 #include "chrome/browser/icon_manager.h" 39 #include "chrome/browser/icon_manager.h"
41 #include "chrome/browser/idle.h" 40 #include "chrome/browser/idle.h"
42 #include "chrome/browser/intranet_redirect_detector.h" 41 #include "chrome/browser/intranet_redirect_detector.h"
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 #endif // defined(ENABLE_CONFIGURATION_POLICY) 121 #endif // defined(ENABLE_CONFIGURATION_POLICY)
123 122
124 #if defined(ENABLE_EXTENSIONS) 123 #if defined(ENABLE_EXTENSIONS)
125 #include "chrome/browser/extensions/chrome_extensions_browser_client.h" 124 #include "chrome/browser/extensions/chrome_extensions_browser_client.h"
126 #include "chrome/browser/extensions/event_router_forwarder.h" 125 #include "chrome/browser/extensions/event_router_forwarder.h"
127 #include "chrome/browser/extensions/extension_renderer_state.h" 126 #include "chrome/browser/extensions/extension_renderer_state.h"
128 #include "chrome/browser/media_galleries/media_file_system_registry.h" 127 #include "chrome/browser/media_galleries/media_file_system_registry.h"
129 #include "components/storage_monitor/storage_monitor.h" 128 #include "components/storage_monitor/storage_monitor.h"
130 #endif 129 #endif
131 130
131 #if !defined(DISABLE_NACL)
132 #include "chrome/browser/component_updater/pnacl/pnacl_component_installer.h"
133 #endif
134
132 #if defined(ENABLE_PLUGIN_INSTALLATION) 135 #if defined(ENABLE_PLUGIN_INSTALLATION)
133 #include "chrome/browser/plugins/plugins_resource_service.h" 136 #include "chrome/browser/plugins/plugins_resource_service.h"
134 #endif 137 #endif
135 138
136 #if defined(ENABLE_WEBRTC) 139 #if defined(ENABLE_WEBRTC)
137 #include "chrome/browser/media/webrtc_log_uploader.h" 140 #include "chrome/browser/media/webrtc_log_uploader.h"
138 #endif 141 #endif
139 142
140 #if (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) 143 #if (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS)
141 // How often to check if the persistent instance of Chrome needs to restart 144 // How often to check if the persistent instance of Chrome needs to restart
(...skipping 752 matching lines...) Expand 10 before | Expand all | Expand 10 after
894 } 897 }
895 898
896 CRLSetFetcher* BrowserProcessImpl::crl_set_fetcher() { 899 CRLSetFetcher* BrowserProcessImpl::crl_set_fetcher() {
897 if (!crl_set_fetcher_.get()) 900 if (!crl_set_fetcher_.get())
898 crl_set_fetcher_ = new CRLSetFetcher(); 901 crl_set_fetcher_ = new CRLSetFetcher();
899 return crl_set_fetcher_.get(); 902 return crl_set_fetcher_.get();
900 } 903 }
901 904
902 component_updater::PnaclComponentInstaller* 905 component_updater::PnaclComponentInstaller*
903 BrowserProcessImpl::pnacl_component_installer() { 906 BrowserProcessImpl::pnacl_component_installer() {
907 #if !defined(DISABLE_NACL)
904 if (!pnacl_component_installer_.get()) { 908 if (!pnacl_component_installer_.get()) {
905 pnacl_component_installer_.reset( 909 pnacl_component_installer_.reset(
906 new component_updater::PnaclComponentInstaller()); 910 new component_updater::PnaclComponentInstaller());
907 } 911 }
908 return pnacl_component_installer_.get(); 912 return pnacl_component_installer_.get();
913 #else
914 return NULL;
915 #endif
909 } 916 }
910 917
911 void BrowserProcessImpl::ResourceDispatcherHostCreated() { 918 void BrowserProcessImpl::ResourceDispatcherHostCreated() {
912 resource_dispatcher_host_delegate_.reset( 919 resource_dispatcher_host_delegate_.reset(
913 new ChromeResourceDispatcherHostDelegate(prerender_tracker())); 920 new ChromeResourceDispatcherHostDelegate(prerender_tracker()));
914 ResourceDispatcherHost::Get()->SetDelegate( 921 ResourceDispatcherHost::Get()->SetDelegate(
915 resource_dispatcher_host_delegate_.get()); 922 resource_dispatcher_host_delegate_.get());
916 923
917 pref_change_registrar_.Add( 924 pref_change_registrar_.Add(
918 prefs::kAllowCrossOriginAuthPrompt, 925 prefs::kAllowCrossOriginAuthPrompt,
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after
1205 } 1212 }
1206 1213
1207 void BrowserProcessImpl::OnAutoupdateTimer() { 1214 void BrowserProcessImpl::OnAutoupdateTimer() {
1208 if (CanAutorestartForUpdate()) { 1215 if (CanAutorestartForUpdate()) {
1209 DLOG(WARNING) << "Detected update. Restarting browser."; 1216 DLOG(WARNING) << "Detected update. Restarting browser.";
1210 RestartBackgroundInstance(); 1217 RestartBackgroundInstance();
1211 } 1218 }
1212 } 1219 }
1213 1220
1214 #endif // (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) 1221 #endif // (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS)
OLDNEW
« no previous file with comments | « chrome/browser/browser_process_impl.h ('k') | chrome/browser/chrome_browser_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698