| 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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 #include "chrome/browser/ui/zoom/zoom_controller.h" | 142 #include "chrome/browser/ui/zoom/zoom_controller.h" |
| 143 #include "chrome/browser/upgrade_detector.h" | 143 #include "chrome/browser/upgrade_detector.h" |
| 144 #include "chrome/browser/web_applications/web_app.h" | 144 #include "chrome/browser/web_applications/web_app.h" |
| 145 #include "chrome/common/chrome_constants.h" | 145 #include "chrome/common/chrome_constants.h" |
| 146 #include "chrome/common/chrome_switches.h" | 146 #include "chrome/common/chrome_switches.h" |
| 147 #include "chrome/common/custom_handlers/protocol_handler.h" | 147 #include "chrome/common/custom_handlers/protocol_handler.h" |
| 148 #include "chrome/common/pref_names.h" | 148 #include "chrome/common/pref_names.h" |
| 149 #include "chrome/common/profiling.h" | 149 #include "chrome/common/profiling.h" |
| 150 #include "chrome/common/search_types.h" | 150 #include "chrome/common/search_types.h" |
| 151 #include "chrome/common/url_constants.h" | 151 #include "chrome/common/url_constants.h" |
| 152 #include "chrome/grit/chromium_strings.h" |
| 153 #include "chrome/grit/generated_resources.h" |
| 152 #include "components/bookmarks/browser/bookmark_model.h" | 154 #include "components/bookmarks/browser/bookmark_model.h" |
| 153 #include "components/bookmarks/browser/bookmark_utils.h" | 155 #include "components/bookmarks/browser/bookmark_utils.h" |
| 154 #include "components/google/core/browser/google_url_tracker.h" | 156 #include "components/google/core/browser/google_url_tracker.h" |
| 155 #include "components/search/search.h" | 157 #include "components/search/search.h" |
| 156 #include "components/startup_metric_utils/startup_metric_utils.h" | 158 #include "components/startup_metric_utils/startup_metric_utils.h" |
| 157 #include "components/web_modal/popup_manager.h" | 159 #include "components/web_modal/popup_manager.h" |
| 158 #include "components/web_modal/web_contents_modal_dialog_manager.h" | 160 #include "components/web_modal/web_contents_modal_dialog_manager.h" |
| 159 #include "content/public/browser/devtools_agent_host.h" | 161 #include "content/public/browser/devtools_agent_host.h" |
| 160 #include "content/public/browser/download_item.h" | 162 #include "content/public/browser/download_item.h" |
| 161 #include "content/public/browser/download_manager.h" | 163 #include "content/public/browser/download_manager.h" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 174 #include "content/public/browser/web_contents.h" | 176 #include "content/public/browser/web_contents.h" |
| 175 #include "content/public/common/content_switches.h" | 177 #include "content/public/common/content_switches.h" |
| 176 #include "content/public/common/page_zoom.h" | 178 #include "content/public/common/page_zoom.h" |
| 177 #include "content/public/common/renderer_preferences.h" | 179 #include "content/public/common/renderer_preferences.h" |
| 178 #include "content/public/common/webplugininfo.h" | 180 #include "content/public/common/webplugininfo.h" |
| 179 #include "extensions/browser/extension_prefs.h" | 181 #include "extensions/browser/extension_prefs.h" |
| 180 #include "extensions/browser/extension_system.h" | 182 #include "extensions/browser/extension_system.h" |
| 181 #include "extensions/common/constants.h" | 183 #include "extensions/common/constants.h" |
| 182 #include "extensions/common/extension.h" | 184 #include "extensions/common/extension.h" |
| 183 #include "extensions/common/manifest_handlers/background_info.h" | 185 #include "extensions/common/manifest_handlers/background_info.h" |
| 184 #include "grit/chromium_strings.h" | |
| 185 #include "grit/generated_resources.h" | |
| 186 #include "grit/locale_settings.h" | 186 #include "grit/locale_settings.h" |
| 187 #include "grit/theme_resources.h" | 187 #include "grit/theme_resources.h" |
| 188 #include "net/base/filename_util.h" | 188 #include "net/base/filename_util.h" |
| 189 #include "net/base/registry_controlled_domains/registry_controlled_domain.h" | 189 #include "net/base/registry_controlled_domains/registry_controlled_domain.h" |
| 190 #include "net/cookies/cookie_monster.h" | 190 #include "net/cookies/cookie_monster.h" |
| 191 #include "net/url_request/url_request_context.h" | 191 #include "net/url_request/url_request_context.h" |
| 192 #include "third_party/WebKit/public/web/WebWindowFeatures.h" | 192 #include "third_party/WebKit/public/web/WebWindowFeatures.h" |
| 193 #include "ui/base/l10n/l10n_util.h" | 193 #include "ui/base/l10n/l10n_util.h" |
| 194 #include "ui/base/window_open_disposition.h" | 194 #include "ui/base/window_open_disposition.h" |
| 195 #include "ui/gfx/point.h" | 195 #include "ui/gfx/point.h" |
| (...skipping 2281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2477 if (contents && !allow_js_access) { | 2477 if (contents && !allow_js_access) { |
| 2478 contents->web_contents()->GetController().LoadURL( | 2478 contents->web_contents()->GetController().LoadURL( |
| 2479 target_url, | 2479 target_url, |
| 2480 content::Referrer(), | 2480 content::Referrer(), |
| 2481 content::PAGE_TRANSITION_LINK, | 2481 content::PAGE_TRANSITION_LINK, |
| 2482 std::string()); // No extra headers. | 2482 std::string()); // No extra headers. |
| 2483 } | 2483 } |
| 2484 | 2484 |
| 2485 return contents != NULL; | 2485 return contents != NULL; |
| 2486 } | 2486 } |
| OLD | NEW |