Index: chromecast/media/cma/ipc_streamer/audio_decoder_config_marshaller.h |
diff --git a/chromecast/media/cma/ipc_streamer/audio_decoder_config_marshaller.h b/chromecast/media/cma/ipc_streamer/audio_decoder_config_marshaller.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..b6c42af0027342b6ff558332c096ff0e16d78cf4 |
--- /dev/null |
+++ b/chromecast/media/cma/ipc_streamer/audio_decoder_config_marshaller.h |
@@ -0,0 +1,27 @@ |
+// 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_AUDIO_DECODER_CONFIG_MARSHALLER_H_ |
+#define CHROMECAST_MEDIA_CMA_IPC_STREAMER_AUDIO_DECODER_CONFIG_MARSHALLER_H_ |
+ |
+#include "media/base/audio_decoder_config.h" |
+ |
+namespace chromecast { |
+namespace media { |
+class MediaMessage; |
+ |
+class AudioDecoderConfigMarshaller { |
gunsch
2014/09/10 18:51:37
it looks like there's no plan for this to be expan
damienv1
2014/09/10 21:24:54
I wanted to group functions in the same way chrome
|
+ public: |
+ // Writes the serialized structure of |config| into |msg|. |
+ static void Write( |
+ const ::media::AudioDecoderConfig& config, MediaMessage* msg); |
gunsch
2014/09/10 18:51:37
four-space indent
damienv1
2014/09/10 21:24:54
Done.
|
+ |
+ // Returns an AudioDecoderConfig from its serialized structure. |
+ static ::media::AudioDecoderConfig Read(MediaMessage* msg); |
+}; |
+ |
+} // namespace media |
+} // namespace chromecast |
+ |
+#endif // CHROMECAST_MEDIA_CMA_IPC_STREAMER_AUDIO_DECODER_CONFIG_MARSHALLER_H_ |