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

Unified Diff: chromecast/common/media/cma_param_traits.h

Issue 1490613005: media config: expand is_encrypted to a struct. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more ddorwin comments Created 4 years, 10 months 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/common/media/cma_param_traits.h
diff --git a/chromecast/common/media/cma_param_traits.h b/chromecast/common/media/cma_param_traits.h
index c8609a5af388817d510ddc781e1fbce427818a7e..879bbf155ac827a437450b34fccba81150bcf9e9 100644
--- a/chromecast/common/media/cma_param_traits.h
+++ b/chromecast/common/media/cma_param_traits.h
@@ -10,6 +10,7 @@
namespace media {
class AudioDecoderConfig;
class VideoDecoderConfig;
+class EncryptionScheme;
}
namespace IPC {
@@ -34,6 +35,15 @@ struct ParamTraits<media::VideoDecoderConfig> {
static void Log(const param_type& p, std::string* l);
};
+template <>
+struct ParamTraits<media::EncryptionScheme> {
+ typedef media::EncryptionScheme param_type;
+ static void Write(base::Pickle* m, const param_type& p);
+ static bool Read(const base::Pickle* m, base::PickleIterator* iter,
+ param_type* r);
+ static void Log(const param_type& p, std::string* l);
+};
+
} // namespace IPC
#endif // CHROMECAST_COMMON_MEDIA_CMA_PARAM_TRAITS_H_

Powered by Google App Engine
This is Rietveld 408576698