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

Unified Diff: content/plugin/webplugin_delegate_stub.cc

Issue 1662013002: Remove some dead NPAPI code after r363119. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove unused functions Created 4 years, 11 months 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_delegate_stub.h ('k') | content/plugin/webplugin_proxy.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/plugin/webplugin_delegate_stub.cc
diff --git a/content/plugin/webplugin_delegate_stub.cc b/content/plugin/webplugin_delegate_stub.cc
index ba53302e7a017a3051b345c176e7563702d890dd..0f1db98f926003e996ebdd4e2f5eac293d213b96 100644
--- a/content/plugin/webplugin_delegate_stub.cc
+++ b/content/plugin/webplugin_delegate_stub.cc
@@ -93,11 +93,6 @@ bool WebPluginDelegateStub::OnMessageReceived(const IPC::Message& msg) {
bool handled = true;
IPC_BEGIN_MESSAGE_MAP(WebPluginDelegateStub, msg)
IPC_MESSAGE_HANDLER(PluginMsg_Init, OnInit)
- IPC_MESSAGE_HANDLER(PluginMsg_WillSendRequest, OnWillSendRequest)
- IPC_MESSAGE_HANDLER(PluginMsg_DidReceiveResponse, OnDidReceiveResponse)
- IPC_MESSAGE_HANDLER(PluginMsg_DidReceiveData, OnDidReceiveData)
- IPC_MESSAGE_HANDLER(PluginMsg_DidFinishLoading, OnDidFinishLoading)
- IPC_MESSAGE_HANDLER(PluginMsg_DidFail, OnDidFail)
IPC_MESSAGE_HANDLER(PluginMsg_SetFocus, OnSetFocus)
IPC_MESSAGE_HANDLER(PluginMsg_HandleInputEvent, OnHandleInputEvent)
IPC_MESSAGE_HANDLER(PluginMsg_Paint, OnPaint)
@@ -182,55 +177,6 @@ void WebPluginDelegateStub::OnInit(const PluginMsg_Init_Params& params,
}
}
-void WebPluginDelegateStub::OnWillSendRequest(int id, const GURL& url,
- int http_status_code) {
- WebPluginResourceClient* client = webplugin_->GetResourceClient(id);
- if (!client)
- return;
-
- client->WillSendRequest(url, http_status_code);
-}
-
-void WebPluginDelegateStub::OnDidReceiveResponse(
- const PluginMsg_DidReceiveResponseParams& params) {
- WebPluginResourceClient* client = webplugin_->GetResourceClient(params.id);
- if (!client)
- return;
-
- client->DidReceiveResponse(params.mime_type,
- params.headers,
- params.expected_length,
- params.last_modified,
- params.request_is_seekable);
-}
-
-void WebPluginDelegateStub::OnDidReceiveData(int id,
- const std::vector<char>& buffer,
- int data_offset) {
- WebPluginResourceClient* client = webplugin_->GetResourceClient(id);
- if (!client)
- return;
-
- client->DidReceiveData(&buffer.front(), static_cast<int>(buffer.size()),
- data_offset);
-}
-
-void WebPluginDelegateStub::OnDidFinishLoading(int id) {
- WebPluginResourceClient* client = webplugin_->GetResourceClient(id);
- if (!client)
- return;
-
- client->DidFinishLoading(id);
-}
-
-void WebPluginDelegateStub::OnDidFail(int id) {
- WebPluginResourceClient* client = webplugin_->GetResourceClient(id);
- if (!client)
- return;
-
- client->DidFail(id);
-}
-
void WebPluginDelegateStub::OnSetFocus(bool focused) {
delegate_->SetFocus(focused);
#if defined(OS_WIN) && !defined(USE_AURA)
« no previous file with comments | « content/plugin/webplugin_delegate_stub.h ('k') | content/plugin/webplugin_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698