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

Unified Diff: content/renderer/media/crypto/key_systems.h

Issue 557723003: Implement Chromium side of MediaKeys.isTypeSupported(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Requested changes. Created 6 years, 3 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: content/renderer/media/crypto/key_systems.h
diff --git a/content/renderer/media/crypto/key_systems.h b/content/renderer/media/crypto/key_systems.h
index 99825d1997a7d8cf17129cbfcdbc51dcf4ceca4b..c9913282c727f68acc5097ff82ce1e6be8b174b1 100644
--- a/content/renderer/media/crypto/key_systems.h
+++ b/content/renderer/media/crypto/key_systems.h
@@ -24,6 +24,16 @@ std::string GetUnprefixedKeySystemName(const std::string& key_system);
// Gets the prefixed key system name for |key_system|.
std::string GetPrefixedKeySystemName(const std::string& key_system);
+bool IsSaneInitDataTypeWithContainer(
ddorwin 2014/09/23 22:48:17 This is really an implementation detail of this cl
ddorwin 2014/09/23 22:48:17 This probably deserves a comment: // Returns false
sandersd (OOO until July 31) 2014/09/24 22:22:34 Done.
sandersd (OOO until July 31) 2014/09/24 22:22:34 Acknowledged.
+ const std::string& init_data_type,
ddorwin 2014/09/23 22:48:17 I was thinking we should convert IDT (and maybe co
sandersd (OOO until July 31) 2014/09/24 22:22:34 This makes sense; we could add APIs here to turn t
ddorwin 2014/09/27 00:41:24 Even better, the strings should never reach Chromi
+ const std::string& container);
+
+bool IsSupportedKeySystem(const std::string& key_system);
+
+bool IsSupportedKeySystemWithInitDataType(
+ const std::string& key_system,
+ const std::string& init_data_type);
+
// Returns whether |key_system| is a real supported key system that can be
// instantiated.
// Abstract parent |key_system| strings will return false.

Powered by Google App Engine
This is Rietveld 408576698