| 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 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 #include "content/public/browser/web_contents.h" | 171 #include "content/public/browser/web_contents.h" |
| 172 #include "content/public/browser/web_contents_view.h" | 172 #include "content/public/browser/web_contents_view.h" |
| 173 #include "content/public/browser/web_intents_dispatcher.h" | 173 #include "content/public/browser/web_intents_dispatcher.h" |
| 174 #include "content/public/common/content_restriction.h" | 174 #include "content/public/common/content_restriction.h" |
| 175 #include "content/public/common/content_switches.h" | 175 #include "content/public/common/content_switches.h" |
| 176 #include "content/public/common/page_zoom.h" | 176 #include "content/public/common/page_zoom.h" |
| 177 #include "content/public/common/renderer_preferences.h" | 177 #include "content/public/common/renderer_preferences.h" |
| 178 #include "grit/chromium_strings.h" | 178 #include "grit/chromium_strings.h" |
| 179 #include "grit/generated_resources.h" | 179 #include "grit/generated_resources.h" |
| 180 #include "grit/locale_settings.h" | 180 #include "grit/locale_settings.h" |
| 181 #include "grit/theme_resources_standard.h" | 181 #include "grit/theme_resources.h" |
| 182 #include "net/base/net_util.h" | 182 #include "net/base/net_util.h" |
| 183 #include "net/base/registry_controlled_domain.h" | 183 #include "net/base/registry_controlled_domain.h" |
| 184 #include "net/cookies/cookie_monster.h" | 184 #include "net/cookies/cookie_monster.h" |
| 185 #include "net/url_request/url_request_context.h" | 185 #include "net/url_request/url_request_context.h" |
| 186 #include "ui/base/animation/animation.h" | 186 #include "ui/base/animation/animation.h" |
| 187 #include "ui/base/l10n/l10n_util.h" | 187 #include "ui/base/l10n/l10n_util.h" |
| 188 #include "ui/gfx/point.h" | 188 #include "ui/gfx/point.h" |
| 189 #include "webkit/glue/web_intent_data.h" | 189 #include "webkit/glue/web_intent_data.h" |
| 190 #include "webkit/glue/web_intent_service_data.h" | 190 #include "webkit/glue/web_intent_service_data.h" |
| 191 #include "webkit/glue/webkit_glue.h" | 191 #include "webkit/glue/webkit_glue.h" |
| (...skipping 2539 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2731 if (contents && !allow_js_access) { | 2731 if (contents && !allow_js_access) { |
| 2732 contents->web_contents()->GetController().LoadURL( | 2732 contents->web_contents()->GetController().LoadURL( |
| 2733 target_url, | 2733 target_url, |
| 2734 content::Referrer(), | 2734 content::Referrer(), |
| 2735 content::PAGE_TRANSITION_LINK, | 2735 content::PAGE_TRANSITION_LINK, |
| 2736 std::string()); // No extra headers. | 2736 std::string()); // No extra headers. |
| 2737 } | 2737 } |
| 2738 | 2738 |
| 2739 return contents != NULL; | 2739 return contents != NULL; |
| 2740 } | 2740 } |
| OLD | NEW |