| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 MEDIA_FILTERS_SOURCE_BUFFER_RANGE_H_ | 5 #ifndef MEDIA_FILTERS_SOURCE_BUFFER_RANGE_H_ |
| 6 #define MEDIA_FILTERS_SOURCE_BUFFER_RANGE_H_ | 6 #define MEDIA_FILTERS_SOURCE_BUFFER_RANGE_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| 11 #include "base/macros.h" |
| 11 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
| 12 #include "media/base/stream_parser_buffer.h" | 13 #include "media/base/stream_parser_buffer.h" |
| 13 | 14 |
| 14 namespace media { | 15 namespace media { |
| 15 | 16 |
| 16 // Helper class representing a range of buffered data. All buffers in a | 17 // Helper class representing a range of buffered data. All buffers in a |
| 17 // SourceBufferRange are ordered sequentially in decode timestamp order with no | 18 // SourceBufferRange are ordered sequentially in decode timestamp order with no |
| 18 // gaps. | 19 // gaps. |
| 19 class SourceBufferRange { | 20 class SourceBufferRange { |
| 20 public: | 21 public: |
| (...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 287 | 288 |
| 288 // Stores the amount of memory taken up by the data in |buffers_|. | 289 // Stores the amount of memory taken up by the data in |buffers_|. |
| 289 size_t size_in_bytes_; | 290 size_t size_in_bytes_; |
| 290 | 291 |
| 291 DISALLOW_COPY_AND_ASSIGN(SourceBufferRange); | 292 DISALLOW_COPY_AND_ASSIGN(SourceBufferRange); |
| 292 }; | 293 }; |
| 293 | 294 |
| 294 } // namespace media | 295 } // namespace media |
| 295 | 296 |
| 296 #endif // MEDIA_FILTERS_SOURCE_BUFFER_RANGE_H_ | 297 #endif // MEDIA_FILTERS_SOURCE_BUFFER_RANGE_H_ |
| OLD | NEW |