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 2071 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2263 if (contents && !allow_js_access) { | 2263 if (contents && !allow_js_access) { |
2264 contents->web_contents()->GetController().LoadURL( | 2264 contents->web_contents()->GetController().LoadURL( |
2265 target_url, | 2265 target_url, |
2266 content::Referrer(), | 2266 content::Referrer(), |
2267 content::PAGE_TRANSITION_LINK, | 2267 content::PAGE_TRANSITION_LINK, |
2268 std::string()); // No extra headers. | 2268 std::string()); // No extra headers. |
2269 } | 2269 } |
2270 | 2270 |
2271 return contents != NULL; | 2271 return contents != NULL; |
2272 } | 2272 } |
OLD | NEW |