| 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 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 #include "content/public/browser/web_contents.h" | 178 #include "content/public/browser/web_contents.h" |
| 179 #include "content/public/common/content_switches.h" | 179 #include "content/public/common/content_switches.h" |
| 180 #include "content/public/common/page_zoom.h" | 180 #include "content/public/common/page_zoom.h" |
| 181 #include "content/public/common/renderer_preferences.h" | 181 #include "content/public/common/renderer_preferences.h" |
| 182 #include "content/public/common/webplugininfo.h" | 182 #include "content/public/common/webplugininfo.h" |
| 183 #include "extensions/browser/extension_prefs.h" | 183 #include "extensions/browser/extension_prefs.h" |
| 184 #include "extensions/browser/extension_system.h" | 184 #include "extensions/browser/extension_system.h" |
| 185 #include "extensions/common/constants.h" | 185 #include "extensions/common/constants.h" |
| 186 #include "extensions/common/extension.h" | 186 #include "extensions/common/extension.h" |
| 187 #include "extensions/common/manifest_handlers/background_info.h" | 187 #include "extensions/common/manifest_handlers/background_info.h" |
| 188 #include "grit/theme_resources.h" | |
| 189 #include "net/base/filename_util.h" | 188 #include "net/base/filename_util.h" |
| 190 #include "net/base/registry_controlled_domains/registry_controlled_domain.h" | 189 #include "net/base/registry_controlled_domains/registry_controlled_domain.h" |
| 191 #include "net/cookies/cookie_monster.h" | 190 #include "net/cookies/cookie_monster.h" |
| 192 #include "net/url_request/url_request_context.h" | 191 #include "net/url_request/url_request_context.h" |
| 193 #include "third_party/WebKit/public/web/WebWindowFeatures.h" | 192 #include "third_party/WebKit/public/web/WebWindowFeatures.h" |
| 194 #include "ui/base/l10n/l10n_util.h" | 193 #include "ui/base/l10n/l10n_util.h" |
| 195 #include "ui/base/window_open_disposition.h" | 194 #include "ui/base/window_open_disposition.h" |
| 196 #include "ui/gfx/point.h" | 195 #include "ui/gfx/point.h" |
| 197 #include "ui/shell_dialogs/selected_file_info.h" | 196 #include "ui/shell_dialogs/selected_file_info.h" |
| 198 | 197 |
| (...skipping 2276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2475 if (contents && !allow_js_access) { | 2474 if (contents && !allow_js_access) { |
| 2476 contents->web_contents()->GetController().LoadURL( | 2475 contents->web_contents()->GetController().LoadURL( |
| 2477 target_url, | 2476 target_url, |
| 2478 content::Referrer(), | 2477 content::Referrer(), |
| 2479 content::PAGE_TRANSITION_LINK, | 2478 content::PAGE_TRANSITION_LINK, |
| 2480 std::string()); // No extra headers. | 2479 std::string()); // No extra headers. |
| 2481 } | 2480 } |
| 2482 | 2481 |
| 2483 return contents != NULL; | 2482 return contents != NULL; |
| 2484 } | 2483 } |
| OLD | NEW |