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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 #include "chrome/common/profiling.h" | 145 #include "chrome/common/profiling.h" |
146 #include "chrome/common/search_types.h" | 146 #include "chrome/common/search_types.h" |
147 #include "chrome/common/url_constants.h" | 147 #include "chrome/common/url_constants.h" |
148 #include "chrome/grit/chromium_strings.h" | 148 #include "chrome/grit/chromium_strings.h" |
149 #include "chrome/grit/generated_resources.h" | 149 #include "chrome/grit/generated_resources.h" |
150 #include "chrome/grit/locale_settings.h" | 150 #include "chrome/grit/locale_settings.h" |
151 #include "components/app_modal/javascript_dialog_manager.h" | 151 #include "components/app_modal/javascript_dialog_manager.h" |
152 #include "components/bookmarks/browser/bookmark_model.h" | 152 #include "components/bookmarks/browser/bookmark_model.h" |
153 #include "components/bookmarks/browser/bookmark_utils.h" | 153 #include "components/bookmarks/browser/bookmark_utils.h" |
154 #include "components/content_settings/core/browser/host_content_settings_map.h" | 154 #include "components/content_settings/core/browser/host_content_settings_map.h" |
155 #include "components/google/core/browser/google_url_tracker.h" | |
156 #include "components/infobars/core/simple_alert_infobar_delegate.h" | 155 #include "components/infobars/core/simple_alert_infobar_delegate.h" |
157 #include "components/search/search.h" | 156 #include "components/search/search.h" |
158 #include "components/sessions/session_types.h" | 157 #include "components/sessions/session_types.h" |
159 #include "components/startup_metric_utils/startup_metric_utils.h" | 158 #include "components/startup_metric_utils/startup_metric_utils.h" |
160 #include "components/ui/zoom/zoom_controller.h" | 159 #include "components/ui/zoom/zoom_controller.h" |
161 #include "components/web_modal/popup_manager.h" | 160 #include "components/web_modal/popup_manager.h" |
162 #include "components/web_modal/web_contents_modal_dialog_manager.h" | 161 #include "components/web_modal/web_contents_modal_dialog_manager.h" |
163 #include "content/public/browser/devtools_agent_host.h" | 162 #include "content/public/browser/devtools_agent_host.h" |
164 #include "content/public/browser/download_item.h" | 163 #include "content/public/browser/download_item.h" |
165 #include "content/public/browser/download_manager.h" | 164 #include "content/public/browser/download_manager.h" |
(...skipping 2345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2511 if (contents && !allow_js_access) { | 2510 if (contents && !allow_js_access) { |
2512 contents->web_contents()->GetController().LoadURL( | 2511 contents->web_contents()->GetController().LoadURL( |
2513 target_url, | 2512 target_url, |
2514 content::Referrer(), | 2513 content::Referrer(), |
2515 ui::PAGE_TRANSITION_LINK, | 2514 ui::PAGE_TRANSITION_LINK, |
2516 std::string()); // No extra headers. | 2515 std::string()); // No extra headers. |
2517 } | 2516 } |
2518 | 2517 |
2519 return contents != NULL; | 2518 return contents != NULL; |
2520 } | 2519 } |
OLD | NEW |