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