[MediaRouter] Update MR-2-Extension's PostMessage to return boolean.
[chromium-blink-merge.git] / chromecast / media / cma / ipc_streamer / video_decoder_config_marshaller.h
blob5ba7baec0676fcf1bc6d7dd27991c29b9afc7e02
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.
5 #ifndef CHROMECAST_MEDIA_CMA_IPC_STREAMER_VIDEO_DECODER_CONFIG_MARSHALLER_H_
6 #define CHROMECAST_MEDIA_CMA_IPC_STREAMER_VIDEO_DECODER_CONFIG_MARSHALLER_H_
8 #include "media/base/video_decoder_config.h"
10 namespace chromecast {
11 namespace media {
12 class MediaMessage;
14 class VideoDecoderConfigMarshaller {
15 public:
16 // Writes the serialized structure of |config| into |msg|.
17 static void Write(
18 const ::media::VideoDecoderConfig& config, MediaMessage* msg);
20 // Returns a VideoDecoderConfig from its serialized structure.
21 static ::media::VideoDecoderConfig Read(MediaMessage* msg);
24 } // namespace media
25 } // namespace chromecast
27 #endif // CHROMECAST_MEDIA_CMA_IPC_STREAMER_VIDEO_DECODER_CONFIG_MARSHALLER_H_