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 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
273 } | 273 } |
274 | 274 |
275 void WebPluginProxy::HandleURLRequest(const char* url, | 275 void WebPluginProxy::HandleURLRequest(const char* url, |
276 const char* method, | 276 const char* method, |
277 const char* target, | 277 const char* target, |
278 const char* buf, | 278 const char* buf, |
279 unsigned int len, | 279 unsigned int len, |
280 int notify_id, | 280 int notify_id, |
281 bool popups_allowed, | 281 bool popups_allowed, |
282 bool notify_redirects) { | 282 bool notify_redirects) { |
283 if (!target && (0 == base::strcasecmp(method, "GET"))) { | 283 if (!target && base::EqualsCaseInsensitiveASCII(method, "GET")) { |
284 // Please refer to https://bugzilla.mozilla.org/show_bug.cgi?id=366082 | 284 // Please refer to https://bugzilla.mozilla.org/show_bug.cgi?id=366082 |
285 // for more details on this. | 285 // for more details on this. |
286 if (delegate_->GetQuirks() & | 286 if (delegate_->GetQuirks() & |
287 WebPluginDelegateImpl::PLUGIN_QUIRK_BLOCK_NONSTANDARD_GETURL_REQUESTS) { | 287 WebPluginDelegateImpl::PLUGIN_QUIRK_BLOCK_NONSTANDARD_GETURL_REQUESTS) { |
288 GURL request_url(url); | 288 GURL request_url(url); |
289 if (!request_url.SchemeIs(url::kHttpScheme) && | 289 if (!request_url.SchemeIs(url::kHttpScheme) && |
290 !request_url.SchemeIs(url::kHttpsScheme) && | 290 !request_url.SchemeIs(url::kHttpsScheme) && |
291 !request_url.SchemeIs(url::kFtpScheme)) { | 291 !request_url.SchemeIs(url::kFtpScheme)) { |
292 return; | 292 return; |
293 } | 293 } |
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
609 int input_type; | 609 int input_type; |
610 gfx::Rect caret_rect; | 610 gfx::Rect caret_rect; |
611 if (!delegate_->GetIMEStatus(&input_type, &caret_rect)) | 611 if (!delegate_->GetIMEStatus(&input_type, &caret_rect)) |
612 return; | 612 return; |
613 | 613 |
614 Send(new PluginHostMsg_NotifyIMEStatus(route_id_, input_type, caret_rect)); | 614 Send(new PluginHostMsg_NotifyIMEStatus(route_id_, input_type, caret_rect)); |
615 } | 615 } |
616 #endif | 616 #endif |
617 | 617 |
618 } // namespace content | 618 } // namespace content |
OLD | NEW |