| 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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 #include "chrome/browser/ui/browser_navigator.h" | 101 #include "chrome/browser/ui/browser_navigator.h" |
| 102 #include "chrome/browser/ui/browser_tab_contents.h" | 102 #include "chrome/browser/ui/browser_tab_contents.h" |
| 103 #include "chrome/browser/ui/browser_tab_restore_service_delegate.h" | 103 #include "chrome/browser/ui/browser_tab_restore_service_delegate.h" |
| 104 #include "chrome/browser/ui/browser_tab_strip_model_delegate.h" | 104 #include "chrome/browser/ui/browser_tab_strip_model_delegate.h" |
| 105 #include "chrome/browser/ui/browser_tabstrip.h" | 105 #include "chrome/browser/ui/browser_tabstrip.h" |
| 106 #include "chrome/browser/ui/browser_toolbar_model_delegate.h" | 106 #include "chrome/browser/ui/browser_toolbar_model_delegate.h" |
| 107 #include "chrome/browser/ui/browser_ui_prefs.h" | 107 #include "chrome/browser/ui/browser_ui_prefs.h" |
| 108 #include "chrome/browser/ui/browser_window.h" | 108 #include "chrome/browser/ui/browser_window.h" |
| 109 #include "chrome/browser/ui/chrome_pages.h" | 109 #include "chrome/browser/ui/chrome_pages.h" |
| 110 #include "chrome/browser/ui/chrome_select_file_policy.h" | 110 #include "chrome/browser/ui/chrome_select_file_policy.h" |
| 111 #include "chrome/browser/ui/extensions/shell_window.h" | |
| 112 #include "chrome/browser/ui/find_bar/find_bar.h" | 111 #include "chrome/browser/ui/find_bar/find_bar.h" |
| 113 #include "chrome/browser/ui/find_bar/find_bar_controller.h" | 112 #include "chrome/browser/ui/find_bar/find_bar_controller.h" |
| 114 #include "chrome/browser/ui/find_bar/find_tab_helper.h" | 113 #include "chrome/browser/ui/find_bar/find_tab_helper.h" |
| 115 #include "chrome/browser/ui/fullscreen/fullscreen_controller.h" | 114 #include "chrome/browser/ui/fullscreen/fullscreen_controller.h" |
| 116 #include "chrome/browser/ui/global_error/global_error.h" | 115 #include "chrome/browser/ui/global_error/global_error.h" |
| 117 #include "chrome/browser/ui/global_error/global_error_service.h" | 116 #include "chrome/browser/ui/global_error/global_error_service.h" |
| 118 #include "chrome/browser/ui/global_error/global_error_service_factory.h" | 117 #include "chrome/browser/ui/global_error/global_error_service_factory.h" |
| 119 #include "chrome/browser/ui/omnibox/location_bar.h" | 118 #include "chrome/browser/ui/omnibox/location_bar.h" |
| 120 #include "chrome/browser/ui/search/search_delegate.h" | 119 #include "chrome/browser/ui/search/search_delegate.h" |
| 121 #include "chrome/browser/ui/search/search_model.h" | 120 #include "chrome/browser/ui/search/search_model.h" |
| (...skipping 2093 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2215 if (contents && !allow_js_access) { | 2214 if (contents && !allow_js_access) { |
| 2216 contents->web_contents()->GetController().LoadURL( | 2215 contents->web_contents()->GetController().LoadURL( |
| 2217 target_url, | 2216 target_url, |
| 2218 content::Referrer(), | 2217 content::Referrer(), |
| 2219 content::PAGE_TRANSITION_LINK, | 2218 content::PAGE_TRANSITION_LINK, |
| 2220 std::string()); // No extra headers. | 2219 std::string()); // No extra headers. |
| 2221 } | 2220 } |
| 2222 | 2221 |
| 2223 return contents != NULL; | 2222 return contents != NULL; |
| 2224 } | 2223 } |
| OLD | NEW |