| 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 MEDIA_BASE_BIT_READER_H_ | 5 #ifndef MEDIA_BASE_BIT_READER_H_ |
| 6 #define MEDIA_BASE_BIT_READER_H_ | 6 #define MEDIA_BASE_BIT_READER_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "base/memory/scoped_ptr.h" | |
| 13 #include "media/base/bit_reader_core.h" | 12 #include "media/base/bit_reader_core.h" |
| 14 #include "media/base/media_export.h" | 13 #include "media/base/media_export.h" |
| 15 | 14 |
| 16 namespace media { | 15 namespace media { |
| 17 | 16 |
| 18 class MEDIA_EXPORT BitReader | 17 class MEDIA_EXPORT BitReader |
| 19 : NON_EXPORTED_BASE(private BitReaderCore::ByteStreamProvider) { | 18 : NON_EXPORTED_BASE(private BitReaderCore::ByteStreamProvider) { |
| 20 public: | 19 public: |
| 21 // Initialize the reader to start reading at |data|, |size| being size | 20 // Initialize the reader to start reading at |data|, |size| being size |
| 22 // of |data| in bytes. | 21 // of |data| in bytes. |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 int bytes_left_; | 56 int bytes_left_; |
| 58 | 57 |
| 59 BitReaderCore bit_reader_core_; | 58 BitReaderCore bit_reader_core_; |
| 60 | 59 |
| 61 DISALLOW_COPY_AND_ASSIGN(BitReader); | 60 DISALLOW_COPY_AND_ASSIGN(BitReader); |
| 62 }; | 61 }; |
| 63 | 62 |
| 64 } // namespace media | 63 } // namespace media |
| 65 | 64 |
| 66 #endif // MEDIA_BASE_BIT_READER_H_ | 65 #endif // MEDIA_BASE_BIT_READER_H_ |
| OLD | NEW |