diff options
author | huanr@chromium.org <huanr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-25 05:50:15 +0000 |
---|---|---|
committer | huanr@chromium.org <huanr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-25 05:50:15 +0000 |
commit | fc23ec8dd5f9359914ba6ab1b8bd00c494f547c9 (patch) | |
tree | 77f972963cda944d1ec123919d355efa35b858dc /chrome/plugin | |
parent | 9787fec1d6a14f3ca72288d277d3049c2c65b85e (diff) | |
download | chromium_src-fc23ec8dd5f9359914ba6ab1b8bd00c494f547c9.zip chromium_src-fc23ec8dd5f9359914ba6ab1b8bd00c494f547c9.tar.gz chromium_src-fc23ec8dd5f9359914ba6ab1b8bd00c494f547c9.tar.bz2 |
Revert r21548 and r21559 due to crash spike.
Review URL: http://codereview.chromium.org/159383
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21614 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/plugin')
-rw-r--r-- | chrome/plugin/webplugin_delegate_stub.cc | 6 | ||||
-rw-r--r-- | chrome/plugin/webplugin_delegate_stub.h | 3 | ||||
-rw-r--r-- | chrome/plugin/webplugin_proxy.cc | 4 |
3 files changed, 7 insertions, 6 deletions
diff --git a/chrome/plugin/webplugin_delegate_stub.cc b/chrome/plugin/webplugin_delegate_stub.cc index 655a619..a8a42b0 100644 --- a/chrome/plugin/webplugin_delegate_stub.cc +++ b/chrome/plugin/webplugin_delegate_stub.cc @@ -173,7 +173,8 @@ void WebPluginDelegateStub::OnWillSendRequest(int id, const GURL& url) { } void WebPluginDelegateStub::OnDidReceiveResponse( - const PluginMsg_DidReceiveResponseParams& params) { + const PluginMsg_DidReceiveResponseParams& params, bool* cancel) { + *cancel = false; WebPluginResourceClient* client = webplugin_->GetResourceClient(params.id); if (!client) return; @@ -182,7 +183,8 @@ void WebPluginDelegateStub::OnDidReceiveResponse( params.headers, params.expected_length, params.last_modified, - params.request_is_seekable); + params.request_is_seekable, + cancel); } void WebPluginDelegateStub::OnDidReceiveData(int id, diff --git a/chrome/plugin/webplugin_delegate_stub.h b/chrome/plugin/webplugin_delegate_stub.h index 519a648..2def46c 100644 --- a/chrome/plugin/webplugin_delegate_stub.h +++ b/chrome/plugin/webplugin_delegate_stub.h @@ -52,7 +52,8 @@ class WebPluginDelegateStub : public IPC::Channel::Listener, void OnInit(const PluginMsg_Init_Params& params, bool* result); void OnWillSendRequest(int id, const GURL& url); - void OnDidReceiveResponse(const PluginMsg_DidReceiveResponseParams& params); + void OnDidReceiveResponse(const PluginMsg_DidReceiveResponseParams& params, + bool* cancel); void OnDidReceiveData(int id, const std::vector<char>& buffer, int data_offset); void OnDidFinishLoading(int id); diff --git a/chrome/plugin/webplugin_proxy.cc b/chrome/plugin/webplugin_proxy.cc index 38cd306f..b98cc93 100644 --- a/chrome/plugin/webplugin_proxy.cc +++ b/chrome/plugin/webplugin_proxy.cc @@ -240,10 +240,8 @@ WebPluginProxy* WebPluginProxy::FromCPBrowsingContext( 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()) { + NOTREACHED(); return NULL; } |