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 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 #include <string> | 10 #include <string> |
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 #include "net/url_request/url_request_context.h" | 212 #include "net/url_request/url_request_context.h" |
213 #include "third_party/WebKit/public/web/WebWindowFeatures.h" | 213 #include "third_party/WebKit/public/web/WebWindowFeatures.h" |
214 #include "ui/base/l10n/l10n_util.h" | 214 #include "ui/base/l10n/l10n_util.h" |
215 #include "ui/base/window_open_disposition.h" | 215 #include "ui/base/window_open_disposition.h" |
216 #include "ui/gfx/geometry/point.h" | 216 #include "ui/gfx/geometry/point.h" |
217 #include "ui/shell_dialogs/selected_file_info.h" | 217 #include "ui/shell_dialogs/selected_file_info.h" |
218 | 218 |
219 #if defined(OS_WIN) | 219 #if defined(OS_WIN) |
220 #include <windows.h> | 220 #include <windows.h> |
221 #include <shellapi.h> | 221 #include <shellapi.h> |
222 #include "chrome/browser/task_manager/task_manager.h" | |
223 #include "chrome/browser/ui/view_ids.h" | 222 #include "chrome/browser/ui/view_ids.h" |
224 #include "components/autofill/core/browser/autofill_ie_toolbar_import_win.h" | 223 #include "components/autofill/core/browser/autofill_ie_toolbar_import_win.h" |
225 #include "ui/base/touch/touch_device.h" | 224 #include "ui/base/touch/touch_device.h" |
226 #include "ui/base/win/shell.h" | 225 #include "ui/base/win/shell.h" |
227 #endif // OS_WIN | 226 #endif // OS_WIN |
228 | 227 |
229 #if defined(OS_CHROMEOS) | 228 #if defined(OS_CHROMEOS) |
230 #include "chrome/browser/chromeos/fileapi/external_file_url_util.h" | 229 #include "chrome/browser/chromeos/fileapi/external_file_url_util.h" |
231 #endif | 230 #endif |
232 | 231 |
(...skipping 2490 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2723 if (contents && !allow_js_access) { | 2722 if (contents && !allow_js_access) { |
2724 contents->web_contents()->GetController().LoadURL( | 2723 contents->web_contents()->GetController().LoadURL( |
2725 target_url, | 2724 target_url, |
2726 content::Referrer(), | 2725 content::Referrer(), |
2727 ui::PAGE_TRANSITION_LINK, | 2726 ui::PAGE_TRANSITION_LINK, |
2728 std::string()); // No extra headers. | 2727 std::string()); // No extra headers. |
2729 } | 2728 } |
2730 | 2729 |
2731 return contents != NULL; | 2730 return contents != NULL; |
2732 } | 2731 } |
OLD | NEW |