| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_MEDIA_BUFFERED_DATA_SOURCE_H_ | 5 #ifndef WEBKIT_MEDIA_BUFFERED_DATA_SOURCE_H_ |
| 6 #define WEBKIT_MEDIA_BUFFERED_DATA_SOURCE_H_ | 6 #define WEBKIT_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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 bool media_is_paused_; | 189 bool media_is_paused_; |
| 190 | 190 |
| 191 // This variable is true when the user has requested the video to play at | 191 // This variable is true when the user has requested the video to play at |
| 192 // least once. | 192 // least once. |
| 193 bool media_has_played_; | 193 bool media_has_played_; |
| 194 | 194 |
| 195 // This variable holds the value of the preload attribute for the video | 195 // This variable holds the value of the preload attribute for the video |
| 196 // element. | 196 // element. |
| 197 media::Preload preload_; | 197 media::Preload preload_; |
| 198 | 198 |
| 199 // Keeps track of whether we used a Range header in the initialization | |
| 200 // request. | |
| 201 bool using_range_request_; | |
| 202 | |
| 203 // Number of cache miss retries left. | 199 // Number of cache miss retries left. |
| 204 int cache_miss_retries_left_; | 200 int cache_miss_retries_left_; |
| 205 | 201 |
| 206 // Bitrate of the content, 0 if unknown. | 202 // Bitrate of the content, 0 if unknown. |
| 207 int bitrate_; | 203 int bitrate_; |
| 208 | 204 |
| 209 // Current playback rate. | 205 // Current playback rate. |
| 210 float playback_rate_; | 206 float playback_rate_; |
| 211 | 207 |
| 212 scoped_refptr<media::MediaLog> media_log_; | 208 scoped_refptr<media::MediaLog> media_log_; |
| 213 | 209 |
| 214 DISALLOW_COPY_AND_ASSIGN(BufferedDataSource); | 210 DISALLOW_COPY_AND_ASSIGN(BufferedDataSource); |
| 215 }; | 211 }; |
| 216 | 212 |
| 217 } // namespace webkit_media | 213 } // namespace webkit_media |
| 218 | 214 |
| 219 #endif // WEBKIT_MEDIA_BUFFERED_DATA_SOURCE_H_ | 215 #endif // WEBKIT_MEDIA_BUFFERED_DATA_SOURCE_H_ |
| OLD | NEW |