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

Unified Diff: media/mojo/services/media_type_converters.h

Issue 1227883002: media: Pass CdmConfig in mojo CDM interface. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase-only Created 5 years, 5 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
« no previous file with comments | « media/mojo/services/media_apptest.cc ('k') | media/mojo/services/media_type_converters.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/mojo/services/media_type_converters.h
diff --git a/media/mojo/services/media_type_converters.h b/media/mojo/services/media_type_converters.h
index 14a4562701fa12ada789c0d68c7c944c882554ff..7b92854758c67d77b9ff9a8c6af4d0b19b908e95 100644
--- a/media/mojo/services/media_type_converters.h
+++ b/media/mojo/services/media_type_converters.h
@@ -12,11 +12,12 @@
namespace media {
class AudioDecoderConfig;
-class VideoDecoderConfig;
class DecoderBuffer;
class DecryptConfig;
-struct SubsampleEntry;
+class VideoDecoderConfig;
+struct CdmConfig;
struct CdmKeyInformation;
+struct SubsampleEntry;
}
namespace mojo {
@@ -82,6 +83,15 @@ struct TypeConverter<scoped_ptr<media::CdmKeyInformation>,
const CdmKeyInformationPtr& input);
};
+template <>
+struct TypeConverter<CdmConfigPtr, media::CdmConfig> {
+ static CdmConfigPtr Convert(const media::CdmConfig& input);
+};
+template <>
+struct TypeConverter<media::CdmConfig, CdmConfigPtr> {
+ static media::CdmConfig Convert(const CdmConfigPtr& input);
+};
+
} // namespace mojo
#endif // MEDIA_MOJO_SERVICES_MEDIA_TYPE_CONVERTERS_H_
« no previous file with comments | « media/mojo/services/media_apptest.cc ('k') | media/mojo/services/media_type_converters.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698