Chromium Code Reviews| Index: chromecast/media/cma/ipc_streamer/decoder_buffer_base_marshaller.h |
| diff --git a/chromecast/media/cma/ipc_streamer/decoder_buffer_base_marshaller.h b/chromecast/media/cma/ipc_streamer/decoder_buffer_base_marshaller.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..9f1cd48106961fbcc601aeaab10094b8c325c16b |
| --- /dev/null |
| +++ b/chromecast/media/cma/ipc_streamer/decoder_buffer_base_marshaller.h |
| @@ -0,0 +1,29 @@ |
| +// 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_IPC_STREAMER_DECODER_BUFFER_BASE_MARSHALLER_H_ |
| +#define CHROMECAST_MEDIA_CMA_IPC_STREAMER_DECODER_BUFFER_BASE_MARSHALLER_H_ |
| + |
| +#include "base/memory/ref_counted.h" |
| +#include "base/memory/scoped_ptr.h" |
| + |
| +namespace chromecast { |
| +namespace media { |
| +class DecoderBufferBase; |
| +class MediaMessage; |
| + |
| +class DecoderBufferBaseMarshaller { |
| + public: |
| + // Writes the serialized structure of |config| into |msg|. |
| + static void Write( |
| + const scoped_refptr<DecoderBufferBase>& buffer, MediaMessage* msg); |
|
gunsch
2014/09/10 18:51:38
nit: four spaces
damienv1
2014/09/10 21:24:55
Done.
|
| + |
| + // Returns a decoder buffer from its serialized structure. |
| + static scoped_refptr<DecoderBufferBase> Read(scoped_ptr<MediaMessage> msg); |
| +}; |
| + |
| +} // namespace media |
| +} // namespace chromecast |
| + |
| +#endif // CHROMECAST_MEDIA_CMA_IPC_STREAMER_DECODER_BUFFER_BASE_MARSHALLER_H_ |