| 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 "content/plugin/webplugin_proxy.h" | 5 #include "content/plugin/webplugin_proxy.h" |
| 6 | 6 |
| 7 #include "build/build_config.h" | 7 #include "build/build_config.h" |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/lazy_instance.h" | 10 #include "base/lazy_instance.h" |
| (...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 316 bool popups_allowed, | 316 bool popups_allowed, |
| 317 bool notify_redirects) { | 317 bool notify_redirects) { |
| 318 if (!target && (0 == base::strcasecmp(method, "GET"))) { | 318 if (!target && (0 == base::strcasecmp(method, "GET"))) { |
| 319 // Please refer to https://bugzilla.mozilla.org/show_bug.cgi?id=366082 | 319 // Please refer to https://bugzilla.mozilla.org/show_bug.cgi?id=366082 |
| 320 // for more details on this. | 320 // for more details on this. |
| 321 if (delegate_->GetQuirks() & | 321 if (delegate_->GetQuirks() & |
| 322 WebPluginDelegateImpl::PLUGIN_QUIRK_BLOCK_NONSTANDARD_GETURL_REQUESTS) { | 322 WebPluginDelegateImpl::PLUGIN_QUIRK_BLOCK_NONSTANDARD_GETURL_REQUESTS) { |
| 323 GURL request_url(url); | 323 GURL request_url(url); |
| 324 if (!request_url.SchemeIs(kHttpScheme) && | 324 if (!request_url.SchemeIs(kHttpScheme) && |
| 325 !request_url.SchemeIs(kHttpsScheme) && | 325 !request_url.SchemeIs(kHttpsScheme) && |
| 326 !request_url.SchemeIs(chrome::kFtpScheme)) { | 326 !request_url.SchemeIs(kFtpScheme)) { |
| 327 return; | 327 return; |
| 328 } | 328 } |
| 329 } | 329 } |
| 330 } | 330 } |
| 331 | 331 |
| 332 PluginHostMsg_URLRequest_Params params; | 332 PluginHostMsg_URLRequest_Params params; |
| 333 params.url = url; | 333 params.url = url; |
| 334 params.method = method; | 334 params.method = method; |
| 335 if (target) | 335 if (target) |
| 336 params.target = std::string(target); | 336 params.target = std::string(target); |
| (...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 717 int input_type; | 717 int input_type; |
| 718 gfx::Rect caret_rect; | 718 gfx::Rect caret_rect; |
| 719 if (!delegate_->GetIMEStatus(&input_type, &caret_rect)) | 719 if (!delegate_->GetIMEStatus(&input_type, &caret_rect)) |
| 720 return; | 720 return; |
| 721 | 721 |
| 722 Send(new PluginHostMsg_NotifyIMEStatus(route_id_, input_type, caret_rect)); | 722 Send(new PluginHostMsg_NotifyIMEStatus(route_id_, input_type, caret_rect)); |
| 723 } | 723 } |
| 724 #endif | 724 #endif |
| 725 | 725 |
| 726 } // namespace content | 726 } // namespace content |
| OLD | NEW |