Index: chromecast/media/cma/base/decoder_buffer_wrapper.h |
diff --git a/chromecast/media/cma/base/decoder_buffer_wrapper.h b/chromecast/media/cma/base/decoder_buffer_wrapper.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..8949c85e59822ededcf384670a04c8c8341caaf8 |
--- /dev/null |
+++ b/chromecast/media/cma/base/decoder_buffer_wrapper.h |
@@ -0,0 +1,43 @@ |
+// Copyright 2014 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef CHROMECAST_MEDIA_CMA_BASE_DECODER_BUFFER_WRAPPER_H_ |
+#define CHROMECAST_MEDIA_CMA_BASE_DECODER_BUFFER_WRAPPER_H_ |
+ |
+#include "base/macros.h" |
+#include "base/memory/ref_counted.h" |
+#include "chromecast/media/cma/base/decoder_buffer_base.h" |
+ |
+namespace media { |
+class DecoderBuffer; |
+} |
+ |
+namespace chromecast { |
+namespace media { |
+ |
+class DecoderBufferWrapper : public DecoderBufferBase { |
xhwang
2014/09/03 17:13:49
Add documentation about what this wrapper actually
damienv1
2014/09/03 21:01:58
Done.
|
+ public: |
+ explicit DecoderBufferWrapper( |
+ const scoped_refptr< ::media::DecoderBuffer>& buffer); |
+ |
+ // DecoderBufferBase implementation. |
+ virtual base::TimeDelta timestamp() const OVERRIDE; |
+ virtual const uint8* data() const OVERRIDE; |
+ virtual uint8* writable_data() const OVERRIDE; |
+ virtual int data_size() const OVERRIDE; |
+ virtual const ::media::DecryptConfig* decrypt_config() const OVERRIDE; |
+ virtual bool end_of_stream() const OVERRIDE; |
+ |
+ private: |
+ virtual ~DecoderBufferWrapper(); |
+ |
+ scoped_refptr< ::media::DecoderBuffer> const buffer_; |
+ |
+ DISALLOW_COPY_AND_ASSIGN(DecoderBufferWrapper); |
+}; |
+ |
+} // namespace media |
+} // namespace chromecast |
+ |
+#endif // CHROMECAST_MEDIA_CMA_BASE_DECODER_BUFFER_WRAPPER_H_ |