| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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/ui/browser.h" | 5 #include "chrome/browser/ui/browser.h" |
| 6 | 6 |
| 7 #if defined(OS_WIN) | 7 #if defined(OS_WIN) |
| 8 #include <windows.h> | 8 #include <windows.h> |
| 9 #include <shellapi.h> | 9 #include <shellapi.h> |
| 10 #endif // defined(OS_WIN) | 10 #endif // defined(OS_WIN) |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 #include "chrome/browser/ui/web_applications/web_app_ui.h" | 136 #include "chrome/browser/ui/web_applications/web_app_ui.h" |
| 137 #include "chrome/browser/ui/webui/signin/login_ui_service.h" | 137 #include "chrome/browser/ui/webui/signin/login_ui_service.h" |
| 138 #include "chrome/browser/ui/webui/signin/login_ui_service_factory.h" | 138 #include "chrome/browser/ui/webui/signin/login_ui_service_factory.h" |
| 139 #include "chrome/browser/ui/window_sizer/window_sizer.h" | 139 #include "chrome/browser/ui/window_sizer/window_sizer.h" |
| 140 #include "chrome/browser/ui/zoom/zoom_controller.h" | 140 #include "chrome/browser/ui/zoom/zoom_controller.h" |
| 141 #include "chrome/browser/upgrade_detector.h" | 141 #include "chrome/browser/upgrade_detector.h" |
| 142 #include "chrome/browser/web_applications/web_app.h" | 142 #include "chrome/browser/web_applications/web_app.h" |
| 143 #include "chrome/common/chrome_constants.h" | 143 #include "chrome/common/chrome_constants.h" |
| 144 #include "chrome/common/chrome_switches.h" | 144 #include "chrome/common/chrome_switches.h" |
| 145 #include "chrome/common/custom_handlers/protocol_handler.h" | 145 #include "chrome/common/custom_handlers/protocol_handler.h" |
| 146 #include "chrome/common/extensions/background_info.h" | |
| 147 #include "chrome/common/extensions/extension.h" | 146 #include "chrome/common/extensions/extension.h" |
| 148 #include "chrome/common/net/url_fixer_upper.h" | 147 #include "chrome/common/net/url_fixer_upper.h" |
| 149 #include "chrome/common/pref_names.h" | 148 #include "chrome/common/pref_names.h" |
| 150 #include "chrome/common/profiling.h" | 149 #include "chrome/common/profiling.h" |
| 151 #include "chrome/common/search_types.h" | 150 #include "chrome/common/search_types.h" |
| 152 #include "chrome/common/url_constants.h" | 151 #include "chrome/common/url_constants.h" |
| 153 #include "components/startup_metric_utils/startup_metric_utils.h" | 152 #include "components/startup_metric_utils/startup_metric_utils.h" |
| 154 #include "components/web_modal/web_contents_modal_dialog_manager.h" | 153 #include "components/web_modal/web_contents_modal_dialog_manager.h" |
| 155 #include "content/public/browser/devtools_manager.h" | 154 #include "content/public/browser/devtools_manager.h" |
| 156 #include "content/public/browser/download_item.h" | 155 #include "content/public/browser/download_item.h" |
| 157 #include "content/public/browser/download_manager.h" | 156 #include "content/public/browser/download_manager.h" |
| 158 #include "content/public/browser/interstitial_page.h" | 157 #include "content/public/browser/interstitial_page.h" |
| 159 #include "content/public/browser/invalidate_type.h" | 158 #include "content/public/browser/invalidate_type.h" |
| 160 #include "content/public/browser/navigation_controller.h" | 159 #include "content/public/browser/navigation_controller.h" |
| 161 #include "content/public/browser/navigation_entry.h" | 160 #include "content/public/browser/navigation_entry.h" |
| 162 #include "content/public/browser/notification_details.h" | 161 #include "content/public/browser/notification_details.h" |
| 163 #include "content/public/browser/notification_service.h" | 162 #include "content/public/browser/notification_service.h" |
| 164 #include "content/public/browser/plugin_service.h" | 163 #include "content/public/browser/plugin_service.h" |
| 165 #include "content/public/browser/render_process_host.h" | 164 #include "content/public/browser/render_process_host.h" |
| 166 #include "content/public/browser/render_view_host.h" | 165 #include "content/public/browser/render_view_host.h" |
| 167 #include "content/public/browser/site_instance.h" | 166 #include "content/public/browser/site_instance.h" |
| 168 #include "content/public/browser/user_metrics.h" | 167 #include "content/public/browser/user_metrics.h" |
| 169 #include "content/public/browser/web_contents.h" | 168 #include "content/public/browser/web_contents.h" |
| 170 #include "content/public/browser/web_contents_view.h" | 169 #include "content/public/browser/web_contents_view.h" |
| 171 #include "content/public/common/content_switches.h" | 170 #include "content/public/common/content_switches.h" |
| 172 #include "content/public/common/page_zoom.h" | 171 #include "content/public/common/page_zoom.h" |
| 173 #include "content/public/common/renderer_preferences.h" | 172 #include "content/public/common/renderer_preferences.h" |
| 174 #include "content/public/common/webplugininfo.h" | 173 #include "content/public/common/webplugininfo.h" |
| 175 #include "extensions/common/constants.h" | 174 #include "extensions/common/constants.h" |
| 175 #include "extensions/common/manifest_handlers/background_info.h" |
| 176 #include "grit/chromium_strings.h" | 176 #include "grit/chromium_strings.h" |
| 177 #include "grit/generated_resources.h" | 177 #include "grit/generated_resources.h" |
| 178 #include "grit/locale_settings.h" | 178 #include "grit/locale_settings.h" |
| 179 #include "grit/theme_resources.h" | 179 #include "grit/theme_resources.h" |
| 180 #include "net/base/net_util.h" | 180 #include "net/base/net_util.h" |
| 181 #include "net/base/registry_controlled_domains/registry_controlled_domain.h" | 181 #include "net/base/registry_controlled_domains/registry_controlled_domain.h" |
| 182 #include "net/cookies/cookie_monster.h" | 182 #include "net/cookies/cookie_monster.h" |
| 183 #include "net/url_request/url_request_context.h" | 183 #include "net/url_request/url_request_context.h" |
| 184 #include "third_party/WebKit/public/web/WebWindowFeatures.h" | 184 #include "third_party/WebKit/public/web/WebWindowFeatures.h" |
| 185 #include "ui/base/l10n/l10n_util.h" | 185 #include "ui/base/l10n/l10n_util.h" |
| (...skipping 2085 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2271 if (contents && !allow_js_access) { | 2271 if (contents && !allow_js_access) { |
| 2272 contents->web_contents()->GetController().LoadURL( | 2272 contents->web_contents()->GetController().LoadURL( |
| 2273 target_url, | 2273 target_url, |
| 2274 content::Referrer(), | 2274 content::Referrer(), |
| 2275 content::PAGE_TRANSITION_LINK, | 2275 content::PAGE_TRANSITION_LINK, |
| 2276 std::string()); // No extra headers. | 2276 std::string()); // No extra headers. |
| 2277 } | 2277 } |
| 2278 | 2278 |
| 2279 return contents != NULL; | 2279 return contents != NULL; |
| 2280 } | 2280 } |
| OLD | NEW |