| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |