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 CHROMECAST_MEDIA_CMA_BASE_DECODER_BUFFER_BASE_H_ | 5 #ifndef CHROMECAST_MEDIA_CMA_BASE_DECODER_BUFFER_BASE_H_ |
6 #define CHROMECAST_MEDIA_CMA_BASE_DECODER_BUFFER_BASE_H_ | 6 #define CHROMECAST_MEDIA_CMA_BASE_DECODER_BUFFER_BASE_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 | 45 |
46 DecoderBufferBase(); | 46 DecoderBufferBase(); |
47 ~DecoderBufferBase() override; | 47 ~DecoderBufferBase() override; |
48 | 48 |
49 private: | 49 private: |
50 scoped_ptr<DecryptContext> decrypt_context_; | 50 scoped_ptr<DecryptContext> decrypt_context_; |
51 | 51 |
52 DISALLOW_COPY_AND_ASSIGN(DecoderBufferBase); | 52 DISALLOW_COPY_AND_ASSIGN(DecoderBufferBase); |
53 }; | 53 }; |
54 | 54 |
55 inline DecoderBufferBase::DecoderBufferBase() { | 55 inline DecoderBufferBase::DecoderBufferBase() {} |
56 } | |
57 | 56 |
58 inline DecoderBufferBase::~DecoderBufferBase() { | 57 inline DecoderBufferBase::~DecoderBufferBase() {} |
59 } | |
60 | 58 |
61 inline DecryptContext* DecoderBufferBase::decrypt_context() const { | 59 inline DecryptContext* DecoderBufferBase::decrypt_context() const { |
62 return decrypt_context_.get(); | 60 return decrypt_context_.get(); |
63 } | 61 } |
64 | 62 |
65 } // namespace media | 63 } // namespace media |
66 } // namespace chromecast | 64 } // namespace chromecast |
67 | 65 |
68 #endif // CHROMECAST_MEDIA_CMA_BASE_DECODER_BUFFER_BASE_H_ | 66 #endif // CHROMECAST_MEDIA_CMA_BASE_DECODER_BUFFER_BASE_H_ |
OLD | NEW |