Index: content/plugin/webplugin_proxy.cc |
diff --git a/content/plugin/webplugin_proxy.cc b/content/plugin/webplugin_proxy.cc |
index c03b4fdef45ad970251c6edd0c6f8ab7279a5990..15b9a2f8fd58dbb08e10375583797e67272adf51 100644 |
--- a/content/plugin/webplugin_proxy.cc |
+++ b/content/plugin/webplugin_proxy.cc |
@@ -11,7 +11,6 @@ |
#include "content/child/npapi/npobject_proxy.h" |
#include "content/child/npapi/npobject_util.h" |
#include "content/child/npapi/webplugin_delegate_impl.h" |
-#include "content/child/npapi/webplugin_resource_client.h" |
#include "content/child/plugin_messages.h" |
#include "content/plugin/plugin_channel.h" |
#include "content/plugin/plugin_thread.h" |
@@ -108,11 +107,6 @@ void WebPluginProxy::SetWindowlessData( |
} |
#endif |
-void WebPluginProxy::CancelResource(unsigned long id) { |
- Send(new PluginHostMsg_CancelResource(route_id_, id)); |
- resource_clients_.erase(id); |
-} |
- |
void WebPluginProxy::Invalidate() { |
gfx::Rect rect(0, 0, |
delegate_->GetRect().width(), |
@@ -237,18 +231,6 @@ std::string WebPluginProxy::GetCookies(const GURL& url, |
return cookies; |
} |
-WebPluginResourceClient* WebPluginProxy::GetResourceClient(int id) { |
- ResourceClientMap::iterator iterator = resource_clients_.find(id); |
- // The IPC messages which deal with streams are now asynchronous. It is |
- // now possible to receive stream messages from the renderer for streams |
- // which may have been cancelled by the plugin. |
- if (iterator == resource_clients_.end()) { |
- return NULL; |
- } |
- |
- return iterator->second; |
-} |
- |
int WebPluginProxy::GetRendererId() { |
if (channel_.get()) |
return channel_->renderer_id(); |
@@ -263,12 +245,6 @@ void WebPluginProxy::DidPaint() { |
InvalidateRect(damaged_rect_); |
} |
-void WebPluginProxy::OnResourceCreated(int resource_id, |
- WebPluginResourceClient* client) { |
- DCHECK(resource_clients_.find(resource_id) == resource_clients_.end()); |
- resource_clients_[resource_id] = client; |
-} |
- |
void WebPluginProxy::Paint(const gfx::Rect& rect) { |
#if defined(OS_MACOSX) |
if (!windowless_context()) |
@@ -468,11 +444,6 @@ void WebPluginProxy::DidStopLoading() { |
Send(new PluginHostMsg_DidStopLoading(route_id_)); |
} |
-void WebPluginProxy::SetDeferResourceLoading(unsigned long resource_id, |
- bool defer) { |
- Send(new PluginHostMsg_DeferResourceLoading(route_id_, resource_id, defer)); |
-} |
- |
#if defined(OS_MACOSX) |
void WebPluginProxy::FocusChanged(bool focused) { |
IPC::Message* msg = new PluginHostMsg_FocusChanged(route_id_, focused); |
@@ -523,26 +494,6 @@ bool WebPluginProxy::IsOffTheRecord() { |
return channel_->incognito(); |
} |
-void WebPluginProxy::ResourceClientDeleted( |
- WebPluginResourceClient* resource_client) { |
- // resource_client->ResourceId() is 0 at this point, so can't use it as an |
- // index into the map. |
- ResourceClientMap::iterator index = resource_clients_.begin(); |
- while (index != resource_clients_.end()) { |
- WebPluginResourceClient* client = (*index).second; |
- if (client == resource_client) { |
- resource_clients_.erase(index); |
- return; |
- } else { |
- index++; |
- } |
- } |
-} |
- |
-void WebPluginProxy::URLRedirectResponse(bool allow, int resource_id) { |
- Send(new PluginHostMsg_URLRedirectResponse(route_id_, allow, resource_id)); |
-} |
- |
#if defined(OS_WIN) && !defined(USE_AURA) |
void WebPluginProxy::UpdateIMEStatus() { |
// Retrieve the IME status from a plugin and send it to a renderer process |