| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 <map> | 7 #include <map> |
| 8 #include <set> | 8 #include <set> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 #include "chrome/browser/printing/print_preview_tab_controller.h" | 49 #include "chrome/browser/printing/print_preview_tab_controller.h" |
| 50 #include "chrome/browser/profiles/profile_manager.h" | 50 #include "chrome/browser/profiles/profile_manager.h" |
| 51 #include "chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.
h" | 51 #include "chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.
h" |
| 52 #include "chrome/browser/safe_browsing/safe_browsing_service.h" | 52 #include "chrome/browser/safe_browsing/safe_browsing_service.h" |
| 53 #include "chrome/browser/shell_integration.h" | 53 #include "chrome/browser/shell_integration.h" |
| 54 #include "chrome/browser/sidebar/sidebar_manager.h" | 54 #include "chrome/browser/sidebar/sidebar_manager.h" |
| 55 #include "chrome/browser/status_icons/status_tray.h" | 55 #include "chrome/browser/status_icons/status_tray.h" |
| 56 #include "chrome/browser/tab_closeable_state_watcher.h" | 56 #include "chrome/browser/tab_closeable_state_watcher.h" |
| 57 #include "chrome/browser/tab_contents/thumbnail_generator.h" | 57 #include "chrome/browser/tab_contents/thumbnail_generator.h" |
| 58 #include "chrome/browser/ui/browser_list.h" | 58 #include "chrome/browser/ui/browser_list.h" |
| 59 #include "chrome/browser/web_resource/gpu_blacklist_updater.h" | |
| 60 #include "chrome/common/chrome_constants.h" | 59 #include "chrome/common/chrome_constants.h" |
| 61 #include "chrome/common/chrome_notification_types.h" | 60 #include "chrome/common/chrome_notification_types.h" |
| 62 #include "chrome/common/chrome_paths.h" | 61 #include "chrome/common/chrome_paths.h" |
| 63 #include "chrome/common/chrome_switches.h" | 62 #include "chrome/common/chrome_switches.h" |
| 64 #include "chrome/common/extensions/extension_l10n_util.h" | 63 #include "chrome/common/extensions/extension_l10n_util.h" |
| 65 #include "chrome/common/extensions/extension_resource.h" | 64 #include "chrome/common/extensions/extension_resource.h" |
| 66 #include "chrome/common/json_pref_store.h" | 65 #include "chrome/common/json_pref_store.h" |
| 67 #include "chrome/common/pref_names.h" | 66 #include "chrome/common/pref_names.h" |
| 68 #include "chrome/common/switch_utils.h" | 67 #include "chrome/common/switch_utils.h" |
| 69 #include "chrome/common/url_constants.h" | 68 #include "chrome/common/url_constants.h" |
| (...skipping 609 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 679 return prerender_tracker_.get(); | 678 return prerender_tracker_.get(); |
| 680 } | 679 } |
| 681 | 680 |
| 682 MHTMLGenerationManager* BrowserProcessImpl::mhtml_generation_manager() { | 681 MHTMLGenerationManager* BrowserProcessImpl::mhtml_generation_manager() { |
| 683 if (!mhtml_generation_manager_.get()) | 682 if (!mhtml_generation_manager_.get()) |
| 684 mhtml_generation_manager_ = new MHTMLGenerationManager(); | 683 mhtml_generation_manager_ = new MHTMLGenerationManager(); |
| 685 | 684 |
| 686 return mhtml_generation_manager_.get(); | 685 return mhtml_generation_manager_.get(); |
| 687 } | 686 } |
| 688 | 687 |
| 689 GpuBlacklistUpdater* BrowserProcessImpl::gpu_blacklist_updater() { | |
| 690 if (!gpu_blacklist_updater_.get()) | |
| 691 gpu_blacklist_updater_ = new GpuBlacklistUpdater(); | |
| 692 | |
| 693 return gpu_blacklist_updater_.get(); | |
| 694 } | |
| 695 | |
| 696 ComponentUpdateService* BrowserProcessImpl::component_updater() { | 688 ComponentUpdateService* BrowserProcessImpl::component_updater() { |
| 697 #if defined(OS_CHROMEOS) | 689 #if defined(OS_CHROMEOS) |
| 698 return NULL; | 690 return NULL; |
| 699 #else | 691 #else |
| 700 if (!component_updater_.get()) { | 692 if (!component_updater_.get()) { |
| 701 ComponentUpdateService::Configurator* configurator = | 693 ComponentUpdateService::Configurator* configurator = |
| 702 MakeChromeComponentUpdaterConfigurator( | 694 MakeChromeComponentUpdaterConfigurator( |
| 703 CommandLine::ForCurrentProcess(), | 695 CommandLine::ForCurrentProcess(), |
| 704 io_thread()->system_url_request_context_getter()); | 696 io_thread()->system_url_request_context_getter()); |
| 705 // Creating the component updater does not do anything, components | 697 // Creating the component updater does not do anything, components |
| (...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 998 } | 990 } |
| 999 | 991 |
| 1000 void BrowserProcessImpl::OnAutoupdateTimer() { | 992 void BrowserProcessImpl::OnAutoupdateTimer() { |
| 1001 if (CanAutorestartForUpdate()) { | 993 if (CanAutorestartForUpdate()) { |
| 1002 DLOG(WARNING) << "Detected update. Restarting browser."; | 994 DLOG(WARNING) << "Detected update. Restarting browser."; |
| 1003 RestartBackgroundInstance(); | 995 RestartBackgroundInstance(); |
| 1004 } | 996 } |
| 1005 } | 997 } |
| 1006 | 998 |
| 1007 #endif // (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) | 999 #endif // (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) |
| OLD | NEW |