| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 // OS_WIN | 10 #endif // OS_WIN |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 #include "content/public/browser/web_intents_dispatcher.h" | 174 #include "content/public/browser/web_intents_dispatcher.h" |
| 175 #include "content/public/common/content_restriction.h" | 175 #include "content/public/common/content_restriction.h" |
| 176 #include "content/public/common/content_switches.h" | 176 #include "content/public/common/content_switches.h" |
| 177 #include "content/public/common/page_zoom.h" | 177 #include "content/public/common/page_zoom.h" |
| 178 #include "content/public/common/renderer_preferences.h" | 178 #include "content/public/common/renderer_preferences.h" |
| 179 #include "grit/chromium_strings.h" | 179 #include "grit/chromium_strings.h" |
| 180 #include "grit/generated_resources.h" | 180 #include "grit/generated_resources.h" |
| 181 #include "grit/locale_settings.h" | 181 #include "grit/locale_settings.h" |
| 182 #include "grit/theme_resources.h" | 182 #include "grit/theme_resources.h" |
| 183 #include "net/base/net_util.h" | 183 #include "net/base/net_util.h" |
| 184 #include "net/base/registry_controlled_domain.h" | 184 #include "net/base/registry_controlled_domains/registry_controlled_domain.h" |
| 185 #include "net/cookies/cookie_monster.h" | 185 #include "net/cookies/cookie_monster.h" |
| 186 #include "net/url_request/url_request_context.h" | 186 #include "net/url_request/url_request_context.h" |
| 187 #include "ui/base/animation/animation.h" | 187 #include "ui/base/animation/animation.h" |
| 188 #include "ui/base/l10n/l10n_util.h" | 188 #include "ui/base/l10n/l10n_util.h" |
| 189 #include "ui/gfx/point.h" | 189 #include "ui/gfx/point.h" |
| 190 #include "webkit/glue/web_intent_data.h" | 190 #include "webkit/glue/web_intent_data.h" |
| 191 #include "webkit/glue/web_intent_service_data.h" | 191 #include "webkit/glue/web_intent_service_data.h" |
| 192 #include "webkit/glue/webkit_glue.h" | 192 #include "webkit/glue/webkit_glue.h" |
| 193 #include "webkit/glue/window_open_disposition.h" | 193 #include "webkit/glue/window_open_disposition.h" |
| 194 #include "webkit/plugins/webplugininfo.h" | 194 #include "webkit/plugins/webplugininfo.h" |
| (...skipping 2080 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2275 if (contents && !allow_js_access) { | 2275 if (contents && !allow_js_access) { |
| 2276 contents->web_contents()->GetController().LoadURL( | 2276 contents->web_contents()->GetController().LoadURL( |
| 2277 target_url, | 2277 target_url, |
| 2278 content::Referrer(), | 2278 content::Referrer(), |
| 2279 content::PAGE_TRANSITION_LINK, | 2279 content::PAGE_TRANSITION_LINK, |
| 2280 std::string()); // No extra headers. | 2280 std::string()); // No extra headers. |
| 2281 } | 2281 } |
| 2282 | 2282 |
| 2283 return contents != NULL; | 2283 return contents != NULL; |
| 2284 } | 2284 } |
| OLD | NEW |