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 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
314 int notify_id, | 314 int notify_id, |
315 bool popups_allowed, | 315 bool popups_allowed, |
316 bool notify_redirects) { | 316 bool notify_redirects) { |
317 if (!target && (0 == base::strcasecmp(method, "GET"))) { | 317 if (!target && (0 == base::strcasecmp(method, "GET"))) { |
318 // Please refer to https://bugzilla.mozilla.org/show_bug.cgi?id=366082 | 318 // Please refer to https://bugzilla.mozilla.org/show_bug.cgi?id=366082 |
319 // for more details on this. | 319 // for more details on this. |
320 if (delegate_->GetQuirks() & | 320 if (delegate_->GetQuirks() & |
321 WebPluginDelegateImpl::PLUGIN_QUIRK_BLOCK_NONSTANDARD_GETURL_REQUESTS) { | 321 WebPluginDelegateImpl::PLUGIN_QUIRK_BLOCK_NONSTANDARD_GETURL_REQUESTS) { |
322 GURL request_url(url); | 322 GURL request_url(url); |
323 if (!request_url.SchemeIs(chrome::kHttpScheme) && | 323 if (!request_url.SchemeIs(chrome::kHttpScheme) && |
324 !request_url.SchemeIs(chrome::kHttpsScheme) && | 324 !request_url.SchemeIs(kHttpsScheme) && |
325 !request_url.SchemeIs(chrome::kFtpScheme)) { | 325 !request_url.SchemeIs(chrome::kFtpScheme)) { |
326 return; | 326 return; |
327 } | 327 } |
328 } | 328 } |
329 } | 329 } |
330 | 330 |
331 PluginHostMsg_URLRequest_Params params; | 331 PluginHostMsg_URLRequest_Params params; |
332 params.url = url; | 332 params.url = url; |
333 params.method = method; | 333 params.method = method; |
334 if (target) | 334 if (target) |
(...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
699 int input_type; | 699 int input_type; |
700 gfx::Rect caret_rect; | 700 gfx::Rect caret_rect; |
701 if (!delegate_->GetIMEStatus(&input_type, &caret_rect)) | 701 if (!delegate_->GetIMEStatus(&input_type, &caret_rect)) |
702 return; | 702 return; |
703 | 703 |
704 Send(new PluginHostMsg_NotifyIMEStatus(route_id_, input_type, caret_rect)); | 704 Send(new PluginHostMsg_NotifyIMEStatus(route_id_, input_type, caret_rect)); |
705 } | 705 } |
706 #endif | 706 #endif |
707 | 707 |
708 } // namespace content | 708 } // namespace content |
OLD | NEW |