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

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

Issue 833963003: Pass key_information on SessionKeysChange message (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changes Created 5 years, 11 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/interfaces/content_decryption_module.mojom ('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 7332bf951b22eb71ffab965bd9dad714bcd20adc..14a4562701fa12ada789c0d68c7c944c882554ff 100644
--- a/media/mojo/services/media_type_converters.h
+++ b/media/mojo/services/media_type_converters.h
@@ -7,6 +7,7 @@
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
+#include "media/mojo/interfaces/content_decryption_module.mojom.h"
#include "media/mojo/interfaces/media_types.mojom.h"
namespace media {
@@ -15,6 +16,7 @@ class VideoDecoderConfig;
class DecoderBuffer;
class DecryptConfig;
struct SubsampleEntry;
+struct CdmKeyInformation;
}
namespace mojo {
@@ -69,6 +71,17 @@ struct TypeConverter<media::VideoDecoderConfig, VideoDecoderConfigPtr> {
static media::VideoDecoderConfig Convert(const VideoDecoderConfigPtr& input);
};
+template <>
+struct TypeConverter<CdmKeyInformationPtr, media::CdmKeyInformation> {
+ static CdmKeyInformationPtr Convert(const media::CdmKeyInformation& input);
+};
+template <>
+struct TypeConverter<scoped_ptr<media::CdmKeyInformation>,
+ CdmKeyInformationPtr> {
+ static scoped_ptr<media::CdmKeyInformation> Convert(
+ const CdmKeyInformationPtr& input);
+};
+
} // namespace mojo
#endif // MEDIA_MOJO_SERVICES_MEDIA_TYPE_CONVERTERS_H_
« no previous file with comments | « media/mojo/interfaces/content_decryption_module.mojom ('k') | media/mojo/services/media_type_converters.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698