OLD | NEW |
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 |
11 #include "base/bind.h" | 11 #include "base/bind.h" |
12 #include "base/bind_helpers.h" | 12 #include "base/bind_helpers.h" |
13 #include "base/command_line.h" | 13 #include "base/command_line.h" |
14 #include "base/debug/alias.h" | 14 #include "base/debug/alias.h" |
15 #include "base/path_service.h" | 15 #include "base/path_service.h" |
16 #include "base/prefs/json_pref_store.h" | 16 #include "base/prefs/json_pref_store.h" |
17 #include "base/prefs/pref_registry_simple.h" | 17 #include "base/prefs/pref_registry_simple.h" |
18 #include "base/prefs/pref_service.h" | 18 #include "base/prefs/pref_service.h" |
19 #include "base/synchronization/waitable_event.h" | 19 #include "base/synchronization/waitable_event.h" |
20 #include "base/threading/thread.h" | 20 #include "base/threading/thread.h" |
21 #include "base/threading/thread_restrictions.h" | 21 #include "base/threading/thread_restrictions.h" |
22 #include "chrome/browser/automation/automation_provider_list.h" | 22 #include "chrome/browser/automation/automation_provider_list.h" |
23 #include "chrome/browser/background/background_mode_manager.h" | 23 #include "chrome/browser/background/background_mode_manager.h" |
24 #include "chrome/browser/chrome_browser_main.h" | 24 #include "chrome/browser/chrome_browser_main.h" |
25 #include "chrome/browser/chrome_content_browser_client.h" | 25 #include "chrome/browser/chrome_content_browser_client.h" |
| 26 #include "chrome/browser/chrome_notification_types.h" |
26 #include "chrome/browser/component_updater/component_updater_configurator.h" | 27 #include "chrome/browser/component_updater/component_updater_configurator.h" |
27 #include "chrome/browser/component_updater/component_updater_service.h" | 28 #include "chrome/browser/component_updater/component_updater_service.h" |
28 #include "chrome/browser/component_updater/pnacl/pnacl_component_installer.h" | 29 #include "chrome/browser/component_updater/pnacl/pnacl_component_installer.h" |
29 #include "chrome/browser/defaults.h" | 30 #include "chrome/browser/defaults.h" |
30 #include "chrome/browser/devtools/remote_debugging_server.h" | 31 #include "chrome/browser/devtools/remote_debugging_server.h" |
31 #include "chrome/browser/download/download_request_limiter.h" | 32 #include "chrome/browser/download/download_request_limiter.h" |
32 #include "chrome/browser/download/download_status_updater.h" | 33 #include "chrome/browser/download/download_status_updater.h" |
33 #include "chrome/browser/extensions/event_router_forwarder.h" | 34 #include "chrome/browser/extensions/event_router_forwarder.h" |
34 #include "chrome/browser/extensions/extension_renderer_state.h" | 35 #include "chrome/browser/extensions/extension_renderer_state.h" |
35 #include "chrome/browser/first_run/upgrade_util.h" | 36 #include "chrome/browser/first_run/upgrade_util.h" |
(...skipping 23 matching lines...) Expand all Loading... |
59 #include "chrome/browser/profiles/profile_manager.h" | 60 #include "chrome/browser/profiles/profile_manager.h" |
60 #include "chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.
h" | 61 #include "chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.
h" |
61 #include "chrome/browser/safe_browsing/safe_browsing_service.h" | 62 #include "chrome/browser/safe_browsing/safe_browsing_service.h" |
62 #include "chrome/browser/shell_integration.h" | 63 #include "chrome/browser/shell_integration.h" |
63 #include "chrome/browser/status_icons/status_tray.h" | 64 #include "chrome/browser/status_icons/status_tray.h" |
64 #include "chrome/browser/thumbnails/render_widget_snapshot_taker.h" | 65 #include "chrome/browser/thumbnails/render_widget_snapshot_taker.h" |
65 #include "chrome/browser/ui/bookmarks/bookmark_prompt_controller.h" | 66 #include "chrome/browser/ui/bookmarks/bookmark_prompt_controller.h" |
66 #include "chrome/browser/ui/browser_finder.h" | 67 #include "chrome/browser/ui/browser_finder.h" |
67 #include "chrome/browser/web_resource/promo_resource_service.h" | 68 #include "chrome/browser/web_resource/promo_resource_service.h" |
68 #include "chrome/common/chrome_constants.h" | 69 #include "chrome/common/chrome_constants.h" |
69 #include "chrome/common/chrome_notification_types.h" | |
70 #include "chrome/common/chrome_paths.h" | 70 #include "chrome/common/chrome_paths.h" |
71 #include "chrome/common/chrome_switches.h" | 71 #include "chrome/common/chrome_switches.h" |
72 #include "chrome/common/extensions/chrome_manifest_handlers.h" | 72 #include "chrome/common/extensions/chrome_manifest_handlers.h" |
73 #include "chrome/common/extensions/extension_l10n_util.h" | 73 #include "chrome/common/extensions/extension_l10n_util.h" |
74 #include "chrome/common/extensions/permissions/chrome_api_permissions.h" | 74 #include "chrome/common/extensions/permissions/chrome_api_permissions.h" |
75 #include "chrome/common/extensions/permissions/permissions_info.h" | 75 #include "chrome/common/extensions/permissions/permissions_info.h" |
76 #include "chrome/common/pref_names.h" | 76 #include "chrome/common/pref_names.h" |
77 #include "chrome/common/switch_utils.h" | 77 #include "chrome/common/switch_utils.h" |
78 #include "chrome/common/url_constants.h" | 78 #include "chrome/common/url_constants.h" |
79 #include "chrome/installer/util/google_update_constants.h" | 79 #include "chrome/installer/util/google_update_constants.h" |
(...skipping 962 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1042 } | 1042 } |
1043 | 1043 |
1044 void BrowserProcessImpl::OnAutoupdateTimer() { | 1044 void BrowserProcessImpl::OnAutoupdateTimer() { |
1045 if (CanAutorestartForUpdate()) { | 1045 if (CanAutorestartForUpdate()) { |
1046 DLOG(WARNING) << "Detected update. Restarting browser."; | 1046 DLOG(WARNING) << "Detected update. Restarting browser."; |
1047 RestartBackgroundInstance(); | 1047 RestartBackgroundInstance(); |
1048 } | 1048 } |
1049 } | 1049 } |
1050 | 1050 |
1051 #endif // (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) | 1051 #endif // (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) |
OLD | NEW |