Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(333)

Side by Side Diff: media/base/bit_reader.h

Issue 1906423005: Replace scoped_ptr with std::unique_ptr in //media/base. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: scopedptr-media-base: android Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « media/base/bind_to_current_loop_unittest.cc ('k') | media/base/bitstream_buffer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « media/base/bind_to_current_loop_unittest.cc ('k') | media/base/bitstream_buffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698