OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROMECAST_MEDIA_CMA_IPC_STREAMER_DECODER_BUFFER_BASE_MARSHALLER_H_ | |
6 #define CHROMECAST_MEDIA_CMA_IPC_STREAMER_DECODER_BUFFER_BASE_MARSHALLER_H_ | |
7 | |
8 #include <memory> | |
9 | |
10 #include "base/memory/ref_counted.h" | |
11 | |
12 namespace chromecast { | |
13 namespace media { | |
14 class DecoderBufferBase; | |
15 class MediaMessage; | |
16 | |
17 class DecoderBufferBaseMarshaller { | |
18 public: | |
19 // Writes the serialized structure of |config| into |msg|. | |
20 static void Write( | |
21 const scoped_refptr<DecoderBufferBase>& buffer, MediaMessage* msg); | |
22 | |
23 // Returns a decoder buffer from its serialized structure. | |
24 static scoped_refptr<DecoderBufferBase> Read( | |
25 std::unique_ptr<MediaMessage> msg); | |
26 }; | |
27 | |
28 } // namespace media | |
29 } // namespace chromecast | |
30 | |
31 #endif // CHROMECAST_MEDIA_CMA_IPC_STREAMER_DECODER_BUFFER_BASE_MARSHALLER_H_ | |
OLD | NEW |