Index: media/blink/resource_multibuffer_data_provider.cc |
diff --git a/media/blink/resource_multibuffer_data_provider.cc b/media/blink/resource_multibuffer_data_provider.cc |
index a1e1878bb5cb968ffe677eb1f2d8374f4c45e98d..d0adb08eec544dd36f099ddc4eeb1f48acec946b 100644 |
--- a/media/blink/resource_multibuffer_data_provider.cc |
+++ b/media/blink/resource_multibuffer_data_provider.cc |
@@ -85,6 +85,15 @@ void ResourceMultiBufferDataProvider::Start() { |
WebString::FromUTF8( |
net::HttpByteRange::RightUnbounded(byte_pos()).GetHeaderValue())); |
+ if (url_data_->length() == kPositionNotSpecified && |
+ url_data_->CachedSize() == 0 && url_data_->BytesReadFromCache() == 0) { |
+ // This lets flywheel know that we don't have anything previously cached |
bengr
2017/05/03 21:37:42
In code we call this the data reduction proxy, not
hubbe
2017/05/05 20:51:45
Done.
|
+ // data for this resource. We can only send it if this is the first request |
+ // for this resource. |
+ request.SetHTTPHeaderField(WebString::FromUTF8("chrome-proxy"), |
+ WebString::FromUTF8("frfr")); |
+ } |
+ |
// We would like to send an if-match header with the request to |
// tell the remote server that we really can't handle files other |
// than the one we already started playing. Unfortunately, doing |