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

Unified Diff: webkit/glue/plugins/plugin_stream.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 | « webkit/glue/plugins/plugin_stream.h ('k') | webkit/glue/plugins/plugin_stream_url.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/plugins/plugin_stream.cc
===================================================================
--- webkit/glue/plugins/plugin_stream.cc (revision 7063)
+++ webkit/glue/plugins/plugin_stream.cc (working copy)
@@ -25,7 +25,8 @@
bool PluginStream::Open(const std::string &mime_type,
const std::string &headers,
uint32 length,
- uint32 last_modified) {
+ uint32 last_modified,
+ bool request_is_seekable) {
headers_ = headers;
NPP id = instance_->npp();
stream_.end = length;
@@ -35,7 +36,7 @@
stream_.notifyData = notify_data_;
bool seekable_stream = false;
- if (!headers_.empty()) {
+ if (request_is_seekable && !headers_.empty()) {
stream_.headers = headers_.c_str();
if (headers_.find("Accept-Ranges: bytes") != std::string::npos) {
seekable_stream = true;
« no previous file with comments | « webkit/glue/plugins/plugin_stream.h ('k') | webkit/glue/plugins/plugin_stream_url.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698