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

Side by Side Diff: content/renderer/media/buffered_resource_loader.h

Issue 23696002: Propagate the encoded data length through OnDownloadData delegate method (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 3 months 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 unified diff | Download patch
« no previous file with comments | « content/common/resource_messages.h ('k') | content/renderer/media/buffered_resource_loader.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_RENDERER_MEDIA_BUFFERED_RESOURCE_LOADER_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_BUFFERED_RESOURCE_LOADER_H_
6 #define CONTENT_RENDERER_MEDIA_BUFFERED_RESOURCE_LOADER_H_ 6 #define CONTENT_RENDERER_MEDIA_BUFFERED_RESOURCE_LOADER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 const WebKit::WebURLResponse& redirectResponse); 145 const WebKit::WebURLResponse& redirectResponse);
146 virtual void didSendData( 146 virtual void didSendData(
147 WebKit::WebURLLoader* loader, 147 WebKit::WebURLLoader* loader,
148 unsigned long long bytesSent, 148 unsigned long long bytesSent,
149 unsigned long long totalBytesToBeSent); 149 unsigned long long totalBytesToBeSent);
150 virtual void didReceiveResponse( 150 virtual void didReceiveResponse(
151 WebKit::WebURLLoader* loader, 151 WebKit::WebURLLoader* loader,
152 const WebKit::WebURLResponse& response); 152 const WebKit::WebURLResponse& response);
153 virtual void didDownloadData( 153 virtual void didDownloadData(
154 WebKit::WebURLLoader* loader, 154 WebKit::WebURLLoader* loader,
155 int data_length); 155 int data_length,
156 int encoded_data_length);
156 virtual void didReceiveData( 157 virtual void didReceiveData(
157 WebKit::WebURLLoader* loader, 158 WebKit::WebURLLoader* loader,
158 const char* data, 159 const char* data,
159 int data_length, 160 int data_length,
160 int encoded_data_length); 161 int encoded_data_length);
161 virtual void didReceiveCachedMetadata( 162 virtual void didReceiveCachedMetadata(
162 WebKit::WebURLLoader* loader, 163 WebKit::WebURLLoader* loader,
163 const char* data, int dataLength); 164 const char* data, int dataLength);
164 virtual void didFinishLoading( 165 virtual void didFinishLoading(
165 WebKit::WebURLLoader* loader, 166 WebKit::WebURLLoader* loader,
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
324 float playback_rate_; 325 float playback_rate_;
325 326
326 scoped_refptr<media::MediaLog> media_log_; 327 scoped_refptr<media::MediaLog> media_log_;
327 328
328 DISALLOW_COPY_AND_ASSIGN(BufferedResourceLoader); 329 DISALLOW_COPY_AND_ASSIGN(BufferedResourceLoader);
329 }; 330 };
330 331
331 } // namespace content 332 } // namespace content
332 333
333 #endif // CONTENT_RENDERER_MEDIA_BUFFERED_RESOURCE_LOADER_H_ 334 #endif // CONTENT_RENDERER_MEDIA_BUFFERED_RESOURCE_LOADER_H_
OLDNEW
« no previous file with comments | « content/common/resource_messages.h ('k') | content/renderer/media/buffered_resource_loader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698