Chromium Code Reviews| 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_ |