| 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 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 #include "grit/generated_resources.h" | 183 #include "grit/generated_resources.h" |
| 184 #include "grit/locale_settings.h" | 184 #include "grit/locale_settings.h" |
| 185 #include "grit/theme_resources.h" | 185 #include "grit/theme_resources.h" |
| 186 #include "net/base/filename_util.h" | 186 #include "net/base/filename_util.h" |
| 187 #include "net/base/registry_controlled_domains/registry_controlled_domain.h" | 187 #include "net/base/registry_controlled_domains/registry_controlled_domain.h" |
| 188 #include "net/cookies/cookie_monster.h" | 188 #include "net/cookies/cookie_monster.h" |
| 189 #include "net/url_request/url_request_context.h" | 189 #include "net/url_request/url_request_context.h" |
| 190 #include "third_party/WebKit/public/web/WebWindowFeatures.h" | 190 #include "third_party/WebKit/public/web/WebWindowFeatures.h" |
| 191 #include "ui/base/l10n/l10n_util.h" | 191 #include "ui/base/l10n/l10n_util.h" |
| 192 #include "ui/base/window_open_disposition.h" | 192 #include "ui/base/window_open_disposition.h" |
| 193 #include "ui/gfx/point.h" | 193 #include "ui/gfx/geometry/point.h" |
| 194 #include "ui/shell_dialogs/selected_file_info.h" | 194 #include "ui/shell_dialogs/selected_file_info.h" |
| 195 | 195 |
| 196 #if defined(OS_WIN) | 196 #if defined(OS_WIN) |
| 197 #include "base/win/metro.h" | 197 #include "base/win/metro.h" |
| 198 #include "chrome/browser/ssl/ssl_error_info.h" | 198 #include "chrome/browser/ssl/ssl_error_info.h" |
| 199 #include "chrome/browser/task_manager/task_manager.h" | 199 #include "chrome/browser/task_manager/task_manager.h" |
| 200 #include "chrome/browser/ui/view_ids.h" | 200 #include "chrome/browser/ui/view_ids.h" |
| 201 #include "components/autofill/core/browser/autofill_ie_toolbar_import_win.h" | 201 #include "components/autofill/core/browser/autofill_ie_toolbar_import_win.h" |
| 202 #include "ui/base/win/shell.h" | 202 #include "ui/base/win/shell.h" |
| 203 #endif // OS_WIN | 203 #endif // OS_WIN |
| (...skipping 2254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2458 if (contents && !allow_js_access) { | 2458 if (contents && !allow_js_access) { |
| 2459 contents->web_contents()->GetController().LoadURL( | 2459 contents->web_contents()->GetController().LoadURL( |
| 2460 target_url, | 2460 target_url, |
| 2461 content::Referrer(), | 2461 content::Referrer(), |
| 2462 content::PAGE_TRANSITION_LINK, | 2462 content::PAGE_TRANSITION_LINK, |
| 2463 std::string()); // No extra headers. | 2463 std::string()); // No extra headers. |
| 2464 } | 2464 } |
| 2465 | 2465 |
| 2466 return contents != NULL; | 2466 return contents != NULL; |
| 2467 } | 2467 } |
| OLD | NEW |