Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(197)

Unified Diff: chromecast/media/cma/ipc_streamer/encryption_scheme_marshaller.h

Issue 1490613005: media config: expand is_encrypted to a struct. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: one more tweak in chromecast/common Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chromecast/media/cma/ipc_streamer/encryption_scheme_marshaller.h
diff --git a/chromecast/media/cma/ipc_streamer/encryption_scheme_marshaller.h b/chromecast/media/cma/ipc_streamer/encryption_scheme_marshaller.h
new file mode 100644
index 0000000000000000000000000000000000000000..0b3371b5d873299481fa51dbb7da3debff4db20f
--- /dev/null
+++ b/chromecast/media/cma/ipc_streamer/encryption_scheme_marshaller.h
@@ -0,0 +1,27 @@
+// Copyright 2015 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_ENCRYPTION_SCHEME_MARSHALLER_H_
+#define CHROMECAST_MEDIA_CMA_IPC_STREAMER_ENCRYPTION_SCHEME_MARSHALLER_H_
+
+#include "media/base/encryption_scheme.h"
+
+namespace chromecast {
+namespace media {
+class MediaMessage;
+
+class EncryptionSchemeMarshaller {
+ public:
+ // Writes the serialized structure of |encryption_scheme| into |msg|.
+ static void Write(
+ const ::media::EncryptionScheme& encryption_scheme, MediaMessage* msg);
+
+ // Returns an EncryptionScheme from its serialized structure.
+ static ::media::EncryptionScheme Read(MediaMessage* msg);
+};
+
+} // namespace media
+} // namespace chromecast
+
+#endif // CHROMECAST_MEDIA_CMA_IPC_STREAMER_ENCRYPTION_SCHEME_MARSHALLER_H_

Powered by Google App Engine
This is Rietveld 408576698