| 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_main.h" | 5 #include "chrome/browser/browser_main.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 #include "chrome/common/hi_res_timer_manager.h" | 81 #include "chrome/common/hi_res_timer_manager.h" |
| 82 #include "chrome/common/json_pref_store.h" | 82 #include "chrome/common/json_pref_store.h" |
| 83 #include "chrome/common/jstemplate_builder.h" | 83 #include "chrome/common/jstemplate_builder.h" |
| 84 #include "chrome/common/logging_chrome.h" | 84 #include "chrome/common/logging_chrome.h" |
| 85 #include "chrome/common/main_function_params.h" | 85 #include "chrome/common/main_function_params.h" |
| 86 #include "chrome/common/net/net_resource_provider.h" | 86 #include "chrome/common/net/net_resource_provider.h" |
| 87 #include "chrome/common/pref_names.h" | 87 #include "chrome/common/pref_names.h" |
| 88 #include "chrome/common/profiling.h" | 88 #include "chrome/common/profiling.h" |
| 89 #include "chrome/common/result_codes.h" | 89 #include "chrome/common/result_codes.h" |
| 90 #include "chrome/installer/util/google_update_settings.h" | 90 #include "chrome/installer/util/google_update_settings.h" |
| 91 #include "gfx/gfx_module.h" | |
| 92 #include "grit/app_locale_settings.h" | 91 #include "grit/app_locale_settings.h" |
| 93 #include "grit/chromium_strings.h" | 92 #include "grit/chromium_strings.h" |
| 94 #include "grit/generated_resources.h" | 93 #include "grit/generated_resources.h" |
| 95 #include "net/base/cookie_monster.h" | 94 #include "net/base/cookie_monster.h" |
| 96 #include "net/base/net_module.h" | 95 #include "net/base/net_module.h" |
| 97 #include "net/base/network_change_notifier.h" | 96 #include "net/base/network_change_notifier.h" |
| 98 #include "net/http/http_network_layer.h" | 97 #include "net/http/http_network_layer.h" |
| 99 #include "net/http/http_stream_factory.h" | 98 #include "net/http/http_stream_factory.h" |
| 100 #include "net/socket/client_socket_pool_base.h" | 99 #include "net/socket/client_socket_pool_base.h" |
| 101 #include "net/socket/client_socket_pool_manager.h" | 100 #include "net/socket/client_socket_pool_manager.h" |
| 102 #include "net/socket/tcp_client_socket.h" | 101 #include "net/socket/tcp_client_socket.h" |
| 103 #include "net/spdy/spdy_session.h" | 102 #include "net/spdy/spdy_session.h" |
| 104 #include "net/spdy/spdy_session_pool.h" | 103 #include "net/spdy/spdy_session_pool.h" |
| 105 #include "net/url_request/url_request.h" | 104 #include "net/url_request/url_request.h" |
| 106 #include "net/url_request/url_request_throttler_manager.h" | 105 #include "net/url_request/url_request_throttler_manager.h" |
| 107 #include "ui/base/l10n/l10n_util.h" | 106 #include "ui/base/l10n/l10n_util.h" |
| 108 #include "ui/base/resource/resource_bundle.h" | 107 #include "ui/base/resource/resource_bundle.h" |
| 109 #include "ui/base/system_monitor/system_monitor.h" | 108 #include "ui/base/system_monitor/system_monitor.h" |
| 109 #include "ui/gfx/gfx_module.h" |
| 110 | 110 |
| 111 #if defined(USE_LINUX_BREAKPAD) | 111 #if defined(USE_LINUX_BREAKPAD) |
| 112 #include "base/linux_util.h" | 112 #include "base/linux_util.h" |
| 113 #include "chrome/app/breakpad_linux.h" | 113 #include "chrome/app/breakpad_linux.h" |
| 114 #endif | 114 #endif |
| 115 | 115 |
| 116 #if defined(OS_POSIX) && !defined(OS_MACOSX) | 116 #if defined(OS_POSIX) && !defined(OS_MACOSX) |
| 117 #include <dbus/dbus-glib.h> | 117 #include <dbus/dbus-glib.h> |
| 118 #include "chrome/browser/browser_main_gtk.h" | 118 #include "chrome/browser/browser_main_gtk.h" |
| 119 #include "chrome/browser/ui/gtk/gtk_util.h" | 119 #include "chrome/browser/ui/gtk/gtk_util.h" |
| (...skipping 17 matching lines...) Expand all Loading... |
| 137 #include "app/win/scoped_com_initializer.h" | 137 #include "app/win/scoped_com_initializer.h" |
| 138 #include "chrome/browser/browser_trial.h" | 138 #include "chrome/browser/browser_trial.h" |
| 139 #include "chrome/browser/metrics/user_metrics.h" | 139 #include "chrome/browser/metrics/user_metrics.h" |
| 140 #include "chrome/browser/net/url_fixer_upper.h" | 140 #include "chrome/browser/net/url_fixer_upper.h" |
| 141 #include "chrome/browser/rlz/rlz.h" | 141 #include "chrome/browser/rlz/rlz.h" |
| 142 #include "chrome/browser/ui/views/user_data_dir_dialog.h" | 142 #include "chrome/browser/ui/views/user_data_dir_dialog.h" |
| 143 #include "chrome/common/sandbox_policy.h" | 143 #include "chrome/common/sandbox_policy.h" |
| 144 #include "chrome/installer/util/helper.h" | 144 #include "chrome/installer/util/helper.h" |
| 145 #include "chrome/installer/util/install_util.h" | 145 #include "chrome/installer/util/install_util.h" |
| 146 #include "chrome/installer/util/shell_util.h" | 146 #include "chrome/installer/util/shell_util.h" |
| 147 #include "gfx/platform_font_win.h" | |
| 148 #include "net/base/net_util.h" | 147 #include "net/base/net_util.h" |
| 149 #include "net/base/sdch_manager.h" | 148 #include "net/base/sdch_manager.h" |
| 150 #include "printing/printed_document.h" | 149 #include "printing/printed_document.h" |
| 151 #include "sandbox/src/sandbox.h" | 150 #include "sandbox/src/sandbox.h" |
| 152 #include "ui/base/l10n/l10n_util_win.h" | 151 #include "ui/base/l10n/l10n_util_win.h" |
| 152 #include "ui/gfx/platform_font_win.h" |
| 153 #endif // defined(OS_WIN) | 153 #endif // defined(OS_WIN) |
| 154 | 154 |
| 155 #if defined(OS_MACOSX) | 155 #if defined(OS_MACOSX) |
| 156 #include <Security/Security.h> | 156 #include <Security/Security.h> |
| 157 #include "chrome/browser/ui/cocoa/install_from_dmg.h" | 157 #include "chrome/browser/ui/cocoa/install_from_dmg.h" |
| 158 #endif | 158 #endif |
| 159 | 159 |
| 160 #if defined(TOOLKIT_VIEWS) | 160 #if defined(TOOLKIT_VIEWS) |
| 161 #include "chrome/browser/ui/views/chrome_views_delegate.h" | 161 #include "chrome/browser/ui/views/chrome_views_delegate.h" |
| 162 #include "views/focus/accelerator_handler.h" | 162 #include "views/focus/accelerator_handler.h" |
| 163 #endif | 163 #endif |
| 164 | 164 |
| 165 #if defined(OS_CHROMEOS) | 165 #if defined(OS_CHROMEOS) |
| 166 #include "chrome/browser/chromeos/cros/cros_library.h" | 166 #include "chrome/browser/chromeos/cros/cros_library.h" |
| 167 #include "chrome/browser/chromeos/cros/screen_lock_library.h" | 167 #include "chrome/browser/chromeos/cros/screen_lock_library.h" |
| 168 #include "chrome/browser/chromeos/customization_document.h" | 168 #include "chrome/browser/chromeos/customization_document.h" |
| 169 #include "chrome/browser/chromeos/external_metrics.h" | 169 #include "chrome/browser/chromeos/external_metrics.h" |
| 170 #include "chrome/browser/chromeos/login/authenticator.h" | 170 #include "chrome/browser/chromeos/login/authenticator.h" |
| 171 #include "chrome/browser/chromeos/login/login_utils.h" | 171 #include "chrome/browser/chromeos/login/login_utils.h" |
| 172 #include "chrome/browser/chromeos/login/screen_locker.h" | 172 #include "chrome/browser/chromeos/login/screen_locker.h" |
| 173 #include "chrome/browser/chromeos/login/user_manager.h" | 173 #include "chrome/browser/chromeos/login/user_manager.h" |
| 174 #include "chrome/browser/chromeos/metrics_cros_settings_provider.h" | 174 #include "chrome/browser/chromeos/metrics_cros_settings_provider.h" |
| 175 #include "chrome/browser/ui/views/browser_dialogs.h" | 175 #include "chrome/browser/ui/views/browser_dialogs.h" |
| 176 #endif | 176 #endif |
| 177 | 177 |
| 178 #if defined(TOOLKIT_USES_GTK) | 178 #if defined(TOOLKIT_USES_GTK) |
| 179 #include "gfx/gtk_util.h" | 179 #include "ui/gfx/gtk_util.h" |
| 180 #endif | 180 #endif |
| 181 | 181 |
| 182 // BrowserMainParts ------------------------------------------------------------ | 182 // BrowserMainParts ------------------------------------------------------------ |
| 183 | 183 |
| 184 BrowserMainParts::BrowserMainParts(const MainFunctionParams& parameters) | 184 BrowserMainParts::BrowserMainParts(const MainFunctionParams& parameters) |
| 185 : parameters_(parameters), | 185 : parameters_(parameters), |
| 186 parsed_command_line_(parameters.command_line_) { | 186 parsed_command_line_(parameters.command_line_) { |
| 187 } | 187 } |
| 188 | 188 |
| 189 BrowserMainParts::~BrowserMainParts() { | 189 BrowserMainParts::~BrowserMainParts() { |
| (...skipping 1609 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1799 #if defined(OS_CHROMEOS) | 1799 #if defined(OS_CHROMEOS) |
| 1800 // To be precise, logout (browser shutdown) is not yet done, but the | 1800 // To be precise, logout (browser shutdown) is not yet done, but the |
| 1801 // remaining work is negligible, hence we say LogoutDone here. | 1801 // remaining work is negligible, hence we say LogoutDone here. |
| 1802 chromeos::BootTimesLoader::Get()->AddLogoutTimeMarker("LogoutDone", | 1802 chromeos::BootTimesLoader::Get()->AddLogoutTimeMarker("LogoutDone", |
| 1803 false); | 1803 false); |
| 1804 chromeos::BootTimesLoader::Get()->WriteLogoutTimes(); | 1804 chromeos::BootTimesLoader::Get()->WriteLogoutTimes(); |
| 1805 #endif | 1805 #endif |
| 1806 TRACE_EVENT_END("BrowserMain", 0, 0); | 1806 TRACE_EVENT_END("BrowserMain", 0, 0); |
| 1807 return result_code; | 1807 return result_code; |
| 1808 } | 1808 } |
| OLD | NEW |