OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/plugin/webplugin_proxy.h" | 5 #include "chrome/plugin/webplugin_proxy.h" |
6 | 6 |
7 #include "build/build_config.h" | 7 #include "build/build_config.h" |
8 | 8 |
9 #include "base/lazy_instance.h" | 9 #include "base/lazy_instance.h" |
10 #include "base/scoped_handle.h" | 10 #include "base/scoped_handle.h" |
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
319 bool notify_redirects) { | 319 bool notify_redirects) { |
320 if (!target && (0 == base::strcasecmp(method, "GET"))) { | 320 if (!target && (0 == base::strcasecmp(method, "GET"))) { |
321 // Please refer to https://bugzilla.mozilla.org/show_bug.cgi?id=366082 | 321 // Please refer to https://bugzilla.mozilla.org/show_bug.cgi?id=366082 |
322 // for more details on this. | 322 // for more details on this. |
323 if (delegate_->GetQuirks() & | 323 if (delegate_->GetQuirks() & |
324 webkit::npapi::WebPluginDelegateImpl:: | 324 webkit::npapi::WebPluginDelegateImpl:: |
325 PLUGIN_QUIRK_BLOCK_NONSTANDARD_GETURL_REQUESTS) { | 325 PLUGIN_QUIRK_BLOCK_NONSTANDARD_GETURL_REQUESTS) { |
326 GURL request_url(url); | 326 GURL request_url(url); |
327 if (!request_url.SchemeIs(chrome::kHttpScheme) && | 327 if (!request_url.SchemeIs(chrome::kHttpScheme) && |
328 !request_url.SchemeIs(chrome::kHttpsScheme) && | 328 !request_url.SchemeIs(chrome::kHttpsScheme) && |
| 329 !request_url.SchemeIs(chrome::kHttpsvScheme) && |
329 !request_url.SchemeIs(chrome::kFtpScheme)) { | 330 !request_url.SchemeIs(chrome::kFtpScheme)) { |
330 return; | 331 return; |
331 } | 332 } |
332 } | 333 } |
333 } | 334 } |
334 | 335 |
335 PluginHostMsg_URLRequest_Params params; | 336 PluginHostMsg_URLRequest_Params params; |
336 params.url = url; | 337 params.url = url; |
337 params.method = method; | 338 params.method = method; |
338 if (target) | 339 if (target) |
(...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
731 } else { | 732 } else { |
732 index++; | 733 index++; |
733 } | 734 } |
734 } | 735 } |
735 } | 736 } |
736 | 737 |
737 void WebPluginProxy::URLRedirectResponse(bool allow, int resource_id) { | 738 void WebPluginProxy::URLRedirectResponse(bool allow, int resource_id) { |
738 Send(new PluginHostMsg_URLRedirectResponse(route_id_, allow, resource_id)); | 739 Send(new PluginHostMsg_URLRedirectResponse(route_id_, allow, resource_id)); |
739 } | 740 } |
740 | 741 |
OLD | NEW |