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

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: 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/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 106012bed8b3ca9c91eaaa94f8a3dd0e82825334..e59228e81b8e68d9a19fc6b82a04fd7b90085b7c 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 {
@@ -30,6 +31,14 @@ struct ParamTraits<media::VideoDecoderConfig> {
static void Log(const param_type& p, std::string* l);
};
+template <>
+struct ParamTraits<media::EncryptionScheme> {
+ typedef media::EncryptionScheme param_type;
halliwell 2016/01/13 03:29:40 nit: 'using' preferred to typedef in style guide n
dougsteed 2016/02/09 22:58:53 There are hundreds of existing instances of this p
+ static void Write(Message* m, const param_type& p);
+ static bool Read(const Message* 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_
« no previous file with comments | « no previous file | chromecast/common/media/cma_param_traits.cc » ('j') | chromecast/common/media/cma_param_traits.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698