audio_decoder_config_marshaller.h revision 1320f92c476a1ad9d19dba2a48c72b75566198e9
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_AUDIO_DECODER_CONFIG_MARSHALLER_H_
6#define CHROMECAST_MEDIA_CMA_IPC_STREAMER_AUDIO_DECODER_CONFIG_MARSHALLER_H_
7
8#include "media/base/audio_decoder_config.h"
9
10namespace chromecast {
11namespace media {
12class MediaMessage;
13
14class AudioDecoderConfigMarshaller {
15 public:
16  // Writes the serialized structure of |config| into |msg|.
17  static void Write(
18      const ::media::AudioDecoderConfig& config, MediaMessage* msg);
19
20  // Returns an AudioDecoderConfig from its serialized structure.
21  static ::media::AudioDecoderConfig Read(MediaMessage* msg);
22};
23
24}  // namespace media
25}  // namespace chromecast
26
27#endif  // CHROMECAST_MEDIA_CMA_IPC_STREAMER_AUDIO_DECODER_CONFIG_MARSHALLER_H_
28