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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 #include "chrome/browser/ui/browser_command_controller.h" | 93 #include "chrome/browser/ui/browser_command_controller.h" |
94 #include "chrome/browser/ui/browser_commands.h" | 94 #include "chrome/browser/ui/browser_commands.h" |
95 #include "chrome/browser/ui/browser_content_setting_bubble_model_delegate.h" | 95 #include "chrome/browser/ui/browser_content_setting_bubble_model_delegate.h" |
96 #include "chrome/browser/ui/browser_dialogs.h" | 96 #include "chrome/browser/ui/browser_dialogs.h" |
97 #include "chrome/browser/ui/browser_finder.h" | 97 #include "chrome/browser/ui/browser_finder.h" |
98 #include "chrome/browser/ui/browser_instant_controller.h" | 98 #include "chrome/browser/ui/browser_instant_controller.h" |
99 #include "chrome/browser/ui/browser_iterator.h" | 99 #include "chrome/browser/ui/browser_iterator.h" |
100 #include "chrome/browser/ui/browser_list.h" | 100 #include "chrome/browser/ui/browser_list.h" |
101 #include "chrome/browser/ui/browser_live_tab_context.h" | 101 #include "chrome/browser/ui/browser_live_tab_context.h" |
102 #include "chrome/browser/ui/browser_navigator.h" | 102 #include "chrome/browser/ui/browser_navigator.h" |
| 103 #include "chrome/browser/ui/browser_navigator_params.h" |
103 #include "chrome/browser/ui/browser_tab_strip_model_delegate.h" | 104 #include "chrome/browser/ui/browser_tab_strip_model_delegate.h" |
104 #include "chrome/browser/ui/browser_tabstrip.h" | 105 #include "chrome/browser/ui/browser_tabstrip.h" |
105 #include "chrome/browser/ui/browser_toolbar_model_delegate.h" | 106 #include "chrome/browser/ui/browser_toolbar_model_delegate.h" |
106 #include "chrome/browser/ui/browser_ui_prefs.h" | 107 #include "chrome/browser/ui/browser_ui_prefs.h" |
107 #include "chrome/browser/ui/browser_window.h" | 108 #include "chrome/browser/ui/browser_window.h" |
108 #include "chrome/browser/ui/chrome_pages.h" | 109 #include "chrome/browser/ui/chrome_pages.h" |
109 #include "chrome/browser/ui/chrome_select_file_policy.h" | 110 #include "chrome/browser/ui/chrome_select_file_policy.h" |
110 #include "chrome/browser/ui/exclusive_access/fullscreen_controller.h" | 111 #include "chrome/browser/ui/exclusive_access/fullscreen_controller.h" |
111 #include "chrome/browser/ui/exclusive_access/mouse_lock_controller.h" | 112 #include "chrome/browser/ui/exclusive_access/mouse_lock_controller.h" |
112 #include "chrome/browser/ui/extensions/hosted_app_browser_controller.h" | 113 #include "chrome/browser/ui/extensions/hosted_app_browser_controller.h" |
(...skipping 2577 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2690 if (contents && !allow_js_access) { | 2691 if (contents && !allow_js_access) { |
2691 contents->web_contents()->GetController().LoadURL( | 2692 contents->web_contents()->GetController().LoadURL( |
2692 target_url, | 2693 target_url, |
2693 content::Referrer(), | 2694 content::Referrer(), |
2694 ui::PAGE_TRANSITION_LINK, | 2695 ui::PAGE_TRANSITION_LINK, |
2695 std::string()); // No extra headers. | 2696 std::string()); // No extra headers. |
2696 } | 2697 } |
2697 | 2698 |
2698 return contents != NULL; | 2699 return contents != NULL; |
2699 } | 2700 } |
OLD | NEW |