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

Side by Side Diff: webkit/glue/media/buffered_data_source.h

Issue 8224028: Numerous fixes to audio/video buffered resource loading. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src
Patch Set: Created 9 years, 2 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 WEBKIT_GLUE_MEDIA_BUFFERED_DATA_SOURCE_H_ 5 #ifndef WEBKIT_GLUE_MEDIA_BUFFERED_DATA_SOURCE_H_
6 #define WEBKIT_GLUE_MEDIA_BUFFERED_DATA_SOURCE_H_ 6 #define WEBKIT_GLUE_MEDIA_BUFFERED_DATA_SOURCE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 // element. 208 // element.
209 media::Preload preload_; 209 media::Preload preload_;
210 210
211 // Keeps track of whether we used a Range header in the initialization 211 // Keeps track of whether we used a Range header in the initialization
212 // request. 212 // request.
213 bool using_range_request_; 213 bool using_range_request_;
214 214
215 // Number of cache miss retries left. 215 // Number of cache miss retries left.
216 int cache_miss_retries_left_; 216 int cache_miss_retries_left_;
217 217
218 // Bitrate of the content, 0 if unknown.
219 int bitrate_;
220
221 // Current playback rate.
222 float playback_rate_;
223
218 scoped_refptr<media::MediaLog> media_log_; 224 scoped_refptr<media::MediaLog> media_log_;
219 225
220 DISALLOW_COPY_AND_ASSIGN(BufferedDataSource); 226 DISALLOW_COPY_AND_ASSIGN(BufferedDataSource);
221 }; 227 };
222 228
223 } // namespace webkit_glue 229 } // namespace webkit_glue
224 230
225 #endif // WEBKIT_GLUE_MEDIA_BUFFERED_DATA_SOURCE_H_ 231 #endif // WEBKIT_GLUE_MEDIA_BUFFERED_DATA_SOURCE_H_
OLDNEW
« no previous file with comments | « no previous file | webkit/glue/media/buffered_data_source.cc » ('j') | webkit/glue/media/buffered_data_source.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698