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 23 matching lines...) Expand all Loading... |
34 #include "chrome/browser/bookmarks/bookmark_model.h" | 34 #include "chrome/browser/bookmarks/bookmark_model.h" |
35 #include "chrome/browser/bookmarks/bookmark_utils.h" | 35 #include "chrome/browser/bookmarks/bookmark_utils.h" |
36 #include "chrome/browser/browser_process.h" | 36 #include "chrome/browser/browser_process.h" |
37 #include "chrome/browser/browser_shutdown.h" | 37 #include "chrome/browser/browser_shutdown.h" |
38 #include "chrome/browser/character_encoding.h" | 38 #include "chrome/browser/character_encoding.h" |
39 #include "chrome/browser/chrome_page_zoom.h" | 39 #include "chrome/browser/chrome_page_zoom.h" |
40 #include "chrome/browser/content_settings/host_content_settings_map.h" | 40 #include "chrome/browser/content_settings/host_content_settings_map.h" |
41 #include "chrome/browser/content_settings/tab_specific_content_settings.h" | 41 #include "chrome/browser/content_settings/tab_specific_content_settings.h" |
42 #include "chrome/browser/custom_handlers/protocol_handler_registry.h" | 42 #include "chrome/browser/custom_handlers/protocol_handler_registry.h" |
43 #include "chrome/browser/custom_handlers/register_protocol_handler_infobar_deleg
ate.h" | 43 #include "chrome/browser/custom_handlers/register_protocol_handler_infobar_deleg
ate.h" |
44 #include "chrome/browser/debugger/devtools_toggle_action.h" | 44 #include "chrome/browser/devtools/devtools_toggle_action.h" |
45 #include "chrome/browser/debugger/devtools_window.h" | 45 #include "chrome/browser/devtools/devtools_window.h" |
46 #include "chrome/browser/download/download_crx_util.h" | 46 #include "chrome/browser/download/download_crx_util.h" |
47 #include "chrome/browser/download/download_item_model.h" | 47 #include "chrome/browser/download/download_item_model.h" |
48 #include "chrome/browser/download/download_service.h" | 48 #include "chrome/browser/download/download_service.h" |
49 #include "chrome/browser/download/download_service_factory.h" | 49 #include "chrome/browser/download/download_service_factory.h" |
50 #include "chrome/browser/download/download_shelf.h" | 50 #include "chrome/browser/download/download_shelf.h" |
51 #include "chrome/browser/download/download_started_animation.h" | 51 #include "chrome/browser/download/download_started_animation.h" |
52 #include "chrome/browser/download/download_util.h" | 52 #include "chrome/browser/download/download_util.h" |
53 #include "chrome/browser/extensions/browser_extension_window_controller.h" | 53 #include "chrome/browser/extensions/browser_extension_window_controller.h" |
54 #include "chrome/browser/extensions/extension_prefs.h" | 54 #include "chrome/browser/extensions/extension_prefs.h" |
55 #include "chrome/browser/extensions/extension_service.h" | 55 #include "chrome/browser/extensions/extension_service.h" |
(...skipping 2385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2441 if (contents && !allow_js_access) { | 2441 if (contents && !allow_js_access) { |
2442 contents->web_contents()->GetController().LoadURL( | 2442 contents->web_contents()->GetController().LoadURL( |
2443 target_url, | 2443 target_url, |
2444 content::Referrer(), | 2444 content::Referrer(), |
2445 content::PAGE_TRANSITION_LINK, | 2445 content::PAGE_TRANSITION_LINK, |
2446 std::string()); // No extra headers. | 2446 std::string()); // No extra headers. |
2447 } | 2447 } |
2448 | 2448 |
2449 return contents != NULL; | 2449 return contents != NULL; |
2450 } | 2450 } |
OLD | NEW |