Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(564)

Unified Diff: content/plugin/webplugin_proxy.cc

Issue 1426923007: Remove PluginLoadObserver and related logic, it was only used for NPAPI. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/plugin/webplugin_proxy.h ('k') | content/renderer/browser_plugin/browser_plugin.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/plugin/webplugin_proxy.cc
diff --git a/content/plugin/webplugin_proxy.cc b/content/plugin/webplugin_proxy.cc
index 5bd3d67eb644cca6e9589f97a52d4abb6758a72e..134479079764f8ea7eadb79d4a99bcf49aa54d42 100644
--- a/content/plugin/webplugin_proxy.cc
+++ b/content/plugin/webplugin_proxy.cc
@@ -269,46 +269,6 @@ void WebPluginProxy::OnResourceCreated(int resource_id,
resource_clients_[resource_id] = client;
}
-void WebPluginProxy::HandleURLRequest(const char* url,
- const char* method,
- const char* target,
- const char* buf,
- unsigned int len,
- int notify_id,
- bool popups_allowed,
- bool notify_redirects) {
- if (!target && base::EqualsCaseInsensitiveASCII(method, "GET")) {
- // Please refer to https://bugzilla.mozilla.org/show_bug.cgi?id=366082
- // for more details on this.
- if (delegate_->GetQuirks() &
- WebPluginDelegateImpl::PLUGIN_QUIRK_BLOCK_NONSTANDARD_GETURL_REQUESTS) {
- GURL request_url(url);
- if (!request_url.SchemeIs(url::kHttpScheme) &&
- !request_url.SchemeIs(url::kHttpsScheme) &&
- !request_url.SchemeIs(url::kFtpScheme)) {
- return;
- }
- }
- }
-
- PluginHostMsg_URLRequest_Params params;
- params.url = url;
- params.method = method;
- if (target)
- params.target = std::string(target);
-
- if (len) {
- params.buffer.resize(len);
- memcpy(&params.buffer.front(), buf, len);
- }
-
- params.notify_id = notify_id;
- params.popups_allowed = popups_allowed;
- params.notify_redirects = notify_redirects;
-
- Send(new PluginHostMsg_URLRequest(route_id_, params));
-}
-
void WebPluginProxy::Paint(const gfx::Rect& rect) {
#if defined(OS_MACOSX)
if (!windowless_context())
@@ -500,12 +460,6 @@ void WebPluginProxy::CancelDocumentLoad() {
Send(new PluginHostMsg_CancelDocumentLoad(route_id_));
}
-void WebPluginProxy::InitiateHTTPRangeRequest(
- const char* url, const char* range_info, int range_request_id) {
- Send(new PluginHostMsg_InitiateHTTPRangeRequest(
- route_id_, url, range_info, range_request_id));
-}
-
void WebPluginProxy::DidStartLoading() {
Send(new PluginHostMsg_DidStartLoading(route_id_));
}
« no previous file with comments | « content/plugin/webplugin_proxy.h ('k') | content/renderer/browser_plugin/browser_plugin.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698