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 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
186 #include "extensions/common/constants.h" | 186 #include "extensions/common/constants.h" |
187 #include "extensions/common/extension.h" | 187 #include "extensions/common/extension.h" |
188 #include "extensions/common/manifest_handlers/background_info.h" | 188 #include "extensions/common/manifest_handlers/background_info.h" |
189 #include "net/base/filename_util.h" | 189 #include "net/base/filename_util.h" |
190 #include "net/base/registry_controlled_domains/registry_controlled_domain.h" | 190 #include "net/base/registry_controlled_domains/registry_controlled_domain.h" |
191 #include "net/cookies/cookie_monster.h" | 191 #include "net/cookies/cookie_monster.h" |
192 #include "net/url_request/url_request_context.h" | 192 #include "net/url_request/url_request_context.h" |
193 #include "third_party/WebKit/public/web/WebWindowFeatures.h" | 193 #include "third_party/WebKit/public/web/WebWindowFeatures.h" |
194 #include "ui/base/l10n/l10n_util.h" | 194 #include "ui/base/l10n/l10n_util.h" |
195 #include "ui/base/window_open_disposition.h" | 195 #include "ui/base/window_open_disposition.h" |
196 #include "ui/gfx/point.h" | 196 #include "ui/gfx/geometry/point.h" |
197 #include "ui/shell_dialogs/selected_file_info.h" | 197 #include "ui/shell_dialogs/selected_file_info.h" |
198 | 198 |
199 #if defined(OS_WIN) | 199 #if defined(OS_WIN) |
200 #include "base/win/metro.h" | 200 #include "base/win/metro.h" |
201 #include "chrome/browser/ssl/ssl_error_info.h" | 201 #include "chrome/browser/ssl/ssl_error_info.h" |
202 #include "chrome/browser/task_manager/task_manager.h" | 202 #include "chrome/browser/task_manager/task_manager.h" |
203 #include "chrome/browser/ui/view_ids.h" | 203 #include "chrome/browser/ui/view_ids.h" |
204 #include "components/autofill/core/browser/autofill_ie_toolbar_import_win.h" | 204 #include "components/autofill/core/browser/autofill_ie_toolbar_import_win.h" |
205 #include "components/browser_watcher/exit_funnel_win.h" | 205 #include "components/browser_watcher/exit_funnel_win.h" |
206 #include "ui/base/touch/touch_device.h" | 206 #include "ui/base/touch/touch_device.h" |
(...skipping 2304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2511 if (contents && !allow_js_access) { | 2511 if (contents && !allow_js_access) { |
2512 contents->web_contents()->GetController().LoadURL( | 2512 contents->web_contents()->GetController().LoadURL( |
2513 target_url, | 2513 target_url, |
2514 content::Referrer(), | 2514 content::Referrer(), |
2515 ui::PAGE_TRANSITION_LINK, | 2515 ui::PAGE_TRANSITION_LINK, |
2516 std::string()); // No extra headers. | 2516 std::string()); // No extra headers. |
2517 } | 2517 } |
2518 | 2518 |
2519 return contents != NULL; | 2519 return contents != NULL; |
2520 } | 2520 } |
OLD | NEW |