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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 #include "chrome/browser/sessions/tab_restore_service_factory.h" | 78 #include "chrome/browser/sessions/tab_restore_service_factory.h" |
79 #include "chrome/browser/sync/profile_sync_service.h" | 79 #include "chrome/browser/sync/profile_sync_service.h" |
80 #include "chrome/browser/sync/profile_sync_service_factory.h" | 80 #include "chrome/browser/sync/profile_sync_service_factory.h" |
81 #include "chrome/browser/sync/sync_ui_util.h" | 81 #include "chrome/browser/sync/sync_ui_util.h" |
82 #include "chrome/browser/tab_contents/background_contents.h" | 82 #include "chrome/browser/tab_contents/background_contents.h" |
83 #include "chrome/browser/tab_contents/retargeting_details.h" | 83 #include "chrome/browser/tab_contents/retargeting_details.h" |
84 #include "chrome/browser/tab_contents/tab_util.h" | 84 #include "chrome/browser/tab_contents/tab_util.h" |
85 #include "chrome/browser/themes/theme_service.h" | 85 #include "chrome/browser/themes/theme_service.h" |
86 #include "chrome/browser/themes/theme_service_factory.h" | 86 #include "chrome/browser/themes/theme_service_factory.h" |
87 #include "chrome/browser/translate/chrome_translate_client.h" | 87 #include "chrome/browser/translate/chrome_translate_client.h" |
88 #include "chrome/browser/ui/app_modal_dialogs/javascript_dialog_manager.h" | |
89 #include "chrome/browser/ui/autofill/chrome_autofill_client.h" | 88 #include "chrome/browser/ui/autofill/chrome_autofill_client.h" |
90 #include "chrome/browser/ui/blocked_content/popup_blocker_tab_helper.h" | 89 #include "chrome/browser/ui/blocked_content/popup_blocker_tab_helper.h" |
91 #include "chrome/browser/ui/bookmarks/bookmark_tab_helper.h" | 90 #include "chrome/browser/ui/bookmarks/bookmark_tab_helper.h" |
92 #include "chrome/browser/ui/bookmarks/bookmark_utils.h" | 91 #include "chrome/browser/ui/bookmarks/bookmark_utils.h" |
93 #include "chrome/browser/ui/browser_command_controller.h" | 92 #include "chrome/browser/ui/browser_command_controller.h" |
94 #include "chrome/browser/ui/browser_commands.h" | 93 #include "chrome/browser/ui/browser_commands.h" |
95 #include "chrome/browser/ui/browser_content_setting_bubble_model_delegate.h" | 94 #include "chrome/browser/ui/browser_content_setting_bubble_model_delegate.h" |
96 #include "chrome/browser/ui/browser_content_translate_driver_observer.h" | 95 #include "chrome/browser/ui/browser_content_translate_driver_observer.h" |
97 #include "chrome/browser/ui/browser_dialogs.h" | 96 #include "chrome/browser/ui/browser_dialogs.h" |
98 #include "chrome/browser/ui/browser_finder.h" | 97 #include "chrome/browser/ui/browser_finder.h" |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 #include "chrome/common/chrome_constants.h" | 144 #include "chrome/common/chrome_constants.h" |
146 #include "chrome/common/chrome_switches.h" | 145 #include "chrome/common/chrome_switches.h" |
147 #include "chrome/common/custom_handlers/protocol_handler.h" | 146 #include "chrome/common/custom_handlers/protocol_handler.h" |
148 #include "chrome/common/pref_names.h" | 147 #include "chrome/common/pref_names.h" |
149 #include "chrome/common/profiling.h" | 148 #include "chrome/common/profiling.h" |
150 #include "chrome/common/search_types.h" | 149 #include "chrome/common/search_types.h" |
151 #include "chrome/common/url_constants.h" | 150 #include "chrome/common/url_constants.h" |
152 #include "chrome/grit/chromium_strings.h" | 151 #include "chrome/grit/chromium_strings.h" |
153 #include "chrome/grit/generated_resources.h" | 152 #include "chrome/grit/generated_resources.h" |
154 #include "chrome/grit/locale_settings.h" | 153 #include "chrome/grit/locale_settings.h" |
| 154 #include "components/app_modal_dialogs/javascript_dialog_manager.h" |
155 #include "components/bookmarks/browser/bookmark_model.h" | 155 #include "components/bookmarks/browser/bookmark_model.h" |
156 #include "components/bookmarks/browser/bookmark_utils.h" | 156 #include "components/bookmarks/browser/bookmark_utils.h" |
157 #include "components/content_settings/core/browser/host_content_settings_map.h" | 157 #include "components/content_settings/core/browser/host_content_settings_map.h" |
158 #include "components/google/core/browser/google_url_tracker.h" | 158 #include "components/google/core/browser/google_url_tracker.h" |
159 #include "components/search/search.h" | 159 #include "components/search/search.h" |
160 #include "components/startup_metric_utils/startup_metric_utils.h" | 160 #include "components/startup_metric_utils/startup_metric_utils.h" |
161 #include "components/web_modal/popup_manager.h" | 161 #include "components/web_modal/popup_manager.h" |
162 #include "components/web_modal/web_contents_modal_dialog_manager.h" | 162 #include "components/web_modal/web_contents_modal_dialog_manager.h" |
163 #include "content/public/browser/devtools_agent_host.h" | 163 #include "content/public/browser/devtools_agent_host.h" |
164 #include "content/public/browser/download_item.h" | 164 #include "content/public/browser/download_item.h" |
(...skipping 2332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2497 if (contents && !allow_js_access) { | 2497 if (contents && !allow_js_access) { |
2498 contents->web_contents()->GetController().LoadURL( | 2498 contents->web_contents()->GetController().LoadURL( |
2499 target_url, | 2499 target_url, |
2500 content::Referrer(), | 2500 content::Referrer(), |
2501 ui::PAGE_TRANSITION_LINK, | 2501 ui::PAGE_TRANSITION_LINK, |
2502 std::string()); // No extra headers. | 2502 std::string()); // No extra headers. |
2503 } | 2503 } |
2504 | 2504 |
2505 return contents != NULL; | 2505 return contents != NULL; |
2506 } | 2506 } |
OLD | NEW |