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

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

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

Powered by Google App Engine
This is Rietveld 408576698