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_DECRYPT_CONFIG_MARSHALLER_H_
6 #define CHROMECAST_MEDIA_CMA_IPC_STREAMER_DECRYPT_CONFIG_MARSHALLER_H_
8 #include "base/memory/scoped_ptr.h"
14 namespace chromecast
{
16 class CastDecryptConfig
;
19 class DecryptConfigMarshaller
{
21 // Writes the serialized structure of |config| into |msg|.
22 static void Write(const CastDecryptConfig
& config
, MediaMessage
* msg
);
24 // Returns a DecryptConfig from its serialized structure.
25 static scoped_ptr
<CastDecryptConfig
> Read(MediaMessage
* msg
);
29 } // namespace chromecast
31 #endif // CHROMECAST_MEDIA_CMA_IPC_STREAMER_DECRYPT_CONFIG_MARSHALLER_H_