| OLD | NEW |
| 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_DATA_SOURCE_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_BUFFERED_DATA_SOURCE_H_ |
| 6 #define CONTENT_RENDERER_MEDIA_BUFFERED_DATA_SOURCE_H_ | 6 #define CONTENT_RENDERER_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 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 209 // Current playback rate. | 209 // Current playback rate. |
| 210 float playback_rate_; | 210 float playback_rate_; |
| 211 | 211 |
| 212 // Buffered byte ranges awaiting set_host() being called to report to host(). | 212 // Buffered byte ranges awaiting set_host() being called to report to host(). |
| 213 media::Ranges<int64> queued_buffered_byte_ranges_; | 213 media::Ranges<int64> queued_buffered_byte_ranges_; |
| 214 | 214 |
| 215 scoped_refptr<media::MediaLog> media_log_; | 215 scoped_refptr<media::MediaLog> media_log_; |
| 216 | 216 |
| 217 DownloadingCB downloading_cb_; | 217 DownloadingCB downloading_cb_; |
| 218 | 218 |
| 219 // NOTE: This must always be last so it's invalidated before other member |
| 220 // variables might be accessed. |
| 219 base::WeakPtrFactory<BufferedDataSource> weak_factory_; | 221 base::WeakPtrFactory<BufferedDataSource> weak_factory_; |
| 220 | 222 |
| 221 DISALLOW_COPY_AND_ASSIGN(BufferedDataSource); | 223 DISALLOW_COPY_AND_ASSIGN(BufferedDataSource); |
| 222 }; | 224 }; |
| 223 | 225 |
| 224 } // namespace content | 226 } // namespace content |
| 225 | 227 |
| 226 #endif // CONTENT_RENDERER_MEDIA_BUFFERED_DATA_SOURCE_H_ | 228 #endif // CONTENT_RENDERER_MEDIA_BUFFERED_DATA_SOURCE_H_ |
| OLD | NEW |