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 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 #include "content/public/common/webplugininfo.h" | 174 #include "content/public/common/webplugininfo.h" |
175 #include "extensions/browser/extension_prefs.h" | 175 #include "extensions/browser/extension_prefs.h" |
176 #include "extensions/browser/extension_system.h" | 176 #include "extensions/browser/extension_system.h" |
177 #include "extensions/common/constants.h" | 177 #include "extensions/common/constants.h" |
178 #include "extensions/common/extension.h" | 178 #include "extensions/common/extension.h" |
179 #include "extensions/common/manifest_handlers/background_info.h" | 179 #include "extensions/common/manifest_handlers/background_info.h" |
180 #include "grit/chromium_strings.h" | 180 #include "grit/chromium_strings.h" |
181 #include "grit/generated_resources.h" | 181 #include "grit/generated_resources.h" |
182 #include "grit/locale_settings.h" | 182 #include "grit/locale_settings.h" |
183 #include "grit/theme_resources.h" | 183 #include "grit/theme_resources.h" |
184 #include "net/base/net_util.h" | 184 #include "net/base/filename_util.h" |
185 #include "net/base/registry_controlled_domains/registry_controlled_domain.h" | 185 #include "net/base/registry_controlled_domains/registry_controlled_domain.h" |
186 #include "net/cookies/cookie_monster.h" | 186 #include "net/cookies/cookie_monster.h" |
187 #include "net/url_request/url_request_context.h" | 187 #include "net/url_request/url_request_context.h" |
188 #include "third_party/WebKit/public/web/WebWindowFeatures.h" | 188 #include "third_party/WebKit/public/web/WebWindowFeatures.h" |
189 #include "ui/base/l10n/l10n_util.h" | 189 #include "ui/base/l10n/l10n_util.h" |
190 #include "ui/base/window_open_disposition.h" | 190 #include "ui/base/window_open_disposition.h" |
191 #include "ui/gfx/point.h" | 191 #include "ui/gfx/point.h" |
192 #include "ui/shell_dialogs/selected_file_info.h" | 192 #include "ui/shell_dialogs/selected_file_info.h" |
193 | 193 |
194 #if defined(OS_WIN) | 194 #if defined(OS_WIN) |
(...skipping 2175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2370 if (contents && !allow_js_access) { | 2370 if (contents && !allow_js_access) { |
2371 contents->web_contents()->GetController().LoadURL( | 2371 contents->web_contents()->GetController().LoadURL( |
2372 target_url, | 2372 target_url, |
2373 content::Referrer(), | 2373 content::Referrer(), |
2374 content::PAGE_TRANSITION_LINK, | 2374 content::PAGE_TRANSITION_LINK, |
2375 std::string()); // No extra headers. | 2375 std::string()); // No extra headers. |
2376 } | 2376 } |
2377 | 2377 |
2378 return contents != NULL; | 2378 return contents != NULL; |
2379 } | 2379 } |
OLD | NEW |