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

Unified Diff: chrome/renderer/webplugin_delegate_proxy.cc

Issue 14122: Handle HTTP 200 responses received in response to byte range requests issued... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 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 | « chrome/plugin/webplugin_delegate_stub.cc ('k') | webkit/glue/plugins/plugin_instance.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/webplugin_delegate_proxy.cc
===================================================================
--- chrome/renderer/webplugin_delegate_proxy.cc (revision 7063)
+++ chrome/renderer/webplugin_delegate_proxy.cc (working copy)
@@ -37,7 +37,8 @@
public:
ResourceClientProxy(PluginChannelHost* channel, int instance_id)
: channel_(channel), instance_id_(instance_id), resource_id_(0),
- notify_needed_(false), notify_data_(NULL) {
+ notify_needed_(false), notify_data_(NULL),
+ multibyte_response_expected_(false) {
}
~ResourceClientProxy() {
@@ -57,6 +58,8 @@
params.notify_data = notify_data_;
params.stream = existing_stream;
+ multibyte_response_expected_ = (existing_stream != NULL);
+
channel_->Send(new PluginMsg_HandleURLRequestReply(instance_id_, params));
}
@@ -71,6 +74,7 @@
const std::string& headers,
uint32 expected_length,
uint32 last_modified,
+ bool request_is_seekable,
bool* cancel) {
DCHECK(channel_ != NULL);
PluginMsg_DidReceiveResponseParams params;
@@ -79,6 +83,7 @@
params.headers = headers;
params.expected_length = expected_length;
params.last_modified = last_modified;
+ params.request_is_seekable = request_is_seekable;
// Grab a reference on the underlying channel so it does not get
// deleted from under us.
scoped_refptr<PluginChannelHost> channel_ref(channel_);
@@ -113,6 +118,10 @@
MessageLoop::current()->DeleteSoon(FROM_HERE, this);
}
+ bool IsMultiByteResponseExpected() {
+ return multibyte_response_expected_;
+ }
+
private:
int resource_id_;
int instance_id_;
@@ -120,6 +129,9 @@
std::string url_;
bool notify_needed_;
void* notify_data_;
+ // Set to true if the response expected is a multibyte response.
+ // For e.g. response for a HTTP byte range request.
+ bool multibyte_response_expected_;
};
WebPluginDelegateProxy* WebPluginDelegateProxy::Create(
« no previous file with comments | « chrome/plugin/webplugin_delegate_stub.cc ('k') | webkit/glue/plugins/plugin_instance.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698