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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2015 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_ENCRYPTION_SCHEME_MARSHALLER_H_
6 #define CHROMECAST_MEDIA_CMA_IPC_STREAMER_ENCRYPTION_SCHEME_MARSHALLER_H_
7
8 #include "media/base/encryption_scheme.h"
9
10 namespace chromecast {
11 namespace media {
12 class MediaMessage;
13
14 class EncryptionSchemeMarshaller {
15 public:
16 // Writes the serialized structure of |encryption_scheme| into |msg|.
17 static void Write(
18 const ::media::EncryptionScheme& encryption_scheme, MediaMessage* msg);
19
20 // Returns an EncryptionScheme from its serialized structure.
21 static ::media::EncryptionScheme Read(MediaMessage* msg);
22 };
23
24 } // namespace media
25 } // namespace chromecast
26
27 #endif // CHROMECAST_MEDIA_CMA_IPC_STREAMER_ENCRYPTION_SCHEME_MARSHALLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698