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

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

Issue 435383002: adds WARP support to Chromium, for Metro mode only, on Windows 8 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: first round of tryfixes 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 17 matching lines...) Expand all
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/component_updater/pnacl/pnacl_component_installer.h"
33 #include "chrome/browser/defaults.h" 33 #include "chrome/browser/defaults.h"
34 #include "chrome/browser/devtools/remote_debugging_server.h" 34 #include "chrome/browser/devtools/remote_debugging_server.h"
35 #include "chrome/browser/download/download_request_limiter.h" 35 #include "chrome/browser/download/download_request_limiter.h"
36 #include "chrome/browser/download/download_status_updater.h" 36 #include "chrome/browser/download/download_status_updater.h"
37 #include "chrome/browser/first_run/upgrade_util.h" 37 #include "chrome/browser/first_run/upgrade_util.h"
38 #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"
39 #include "chrome/browser/gpu/gpu_pref_manager.h"
40 #include "chrome/browser/icon_manager.h" 40 #include "chrome/browser/icon_manager.h"
41 #include "chrome/browser/idle.h" 41 #include "chrome/browser/idle.h"
42 #include "chrome/browser/intranet_redirect_detector.h" 42 #include "chrome/browser/intranet_redirect_detector.h"
43 #include "chrome/browser/io_thread.h" 43 #include "chrome/browser/io_thread.h"
44 #include "chrome/browser/lifetime/application_lifetime.h" 44 #include "chrome/browser/lifetime/application_lifetime.h"
45 #include "chrome/browser/metrics/metrics_services_manager.h" 45 #include "chrome/browser/metrics/metrics_services_manager.h"
46 #include "chrome/browser/metrics/thread_watcher.h" 46 #include "chrome/browser/metrics/thread_watcher.h"
47 #include "chrome/browser/net/chrome_net_log.h" 47 #include "chrome/browser/net/chrome_net_log.h"
48 #include "chrome/browser/net/crl_set_fetcher.h" 48 #include "chrome/browser/net/crl_set_fetcher.h"
49 #include "chrome/browser/notifications/notification_ui_manager.h" 49 #include "chrome/browser/notifications/notification_ui_manager.h"
(...skipping 579 matching lines...) Expand 10 before | Expand all | Expand 10 after
629 #endif 629 #endif
630 } 630 }
631 631
632 IconManager* BrowserProcessImpl::icon_manager() { 632 IconManager* BrowserProcessImpl::icon_manager() {
633 DCHECK(CalledOnValidThread()); 633 DCHECK(CalledOnValidThread());
634 if (!created_icon_manager_) 634 if (!created_icon_manager_)
635 CreateIconManager(); 635 CreateIconManager();
636 return icon_manager_.get(); 636 return icon_manager_.get();
637 } 637 }
638 638
639 GLStringManager* BrowserProcessImpl::gl_string_manager() {
640 DCHECK(CalledOnValidThread());
641 if (!gl_string_manager_.get())
642 gl_string_manager_.reset(new GLStringManager());
643 return gl_string_manager_.get();
644 }
645
646 GpuModeManager* BrowserProcessImpl::gpu_mode_manager() { 639 GpuModeManager* BrowserProcessImpl::gpu_mode_manager() {
647 DCHECK(CalledOnValidThread()); 640 DCHECK(CalledOnValidThread());
648 if (!gpu_mode_manager_.get()) 641 if (!gpu_mode_manager_.get())
649 gpu_mode_manager_.reset(new GpuModeManager()); 642 gpu_mode_manager_.reset(new GpuModeManager());
650 return gpu_mode_manager_.get(); 643 return gpu_mode_manager_.get();
651 } 644 }
652 645
646 GpuPrefManager* BrowserProcessImpl::gpu_pref_manager() {
647 DCHECK(CalledOnValidThread());
648 if (!gpu_pref_manager_.get())
649 gpu_pref_manager_.reset(new GpuPrefManager());
650 return gpu_pref_manager_.get();
651 }
652
653 void BrowserProcessImpl::CreateDevToolsHttpProtocolHandler( 653 void BrowserProcessImpl::CreateDevToolsHttpProtocolHandler(
654 chrome::HostDesktopType host_desktop_type, 654 chrome::HostDesktopType host_desktop_type,
655 const std::string& ip, 655 const std::string& ip,
656 int port) { 656 int port) {
657 DCHECK(CalledOnValidThread()); 657 DCHECK(CalledOnValidThread());
658 #if !defined(OS_ANDROID) 658 #if !defined(OS_ANDROID)
659 // StartupBrowserCreator::LaunchBrowser can be run multiple times when browser 659 // StartupBrowserCreator::LaunchBrowser can be run multiple times when browser
660 // is started with several profiles or existing browser process is reused. 660 // is started with several profiles or existing browser process is reused.
661 if (!remote_debugging_server_.get()) { 661 if (!remote_debugging_server_.get()) {
662 remote_debugging_server_.reset( 662 remote_debugging_server_.reset(
(...skipping 542 matching lines...) Expand 10 before | Expand all | Expand 10 after
1205 } 1205 }
1206 1206
1207 void BrowserProcessImpl::OnAutoupdateTimer() { 1207 void BrowserProcessImpl::OnAutoupdateTimer() {
1208 if (CanAutorestartForUpdate()) { 1208 if (CanAutorestartForUpdate()) {
1209 DLOG(WARNING) << "Detected update. Restarting browser."; 1209 DLOG(WARNING) << "Detected update. Restarting browser.";
1210 RestartBackgroundInstance(); 1210 RestartBackgroundInstance();
1211 } 1211 }
1212 } 1212 }
1213 1213
1214 #endif // (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) 1214 #endif // (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698