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

Unified Diff: media/base/key_systems.h

Issue 923283002: Implement checks for distinctiveIdentifier and persistentState in requestMediaKeySystemAccess(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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: media/base/key_systems.h
diff --git a/media/base/key_systems.h b/media/base/key_systems.h
index d761abf2c66a3cc1391754588b1a71bfce2b43cc..10bee2fba73157abead771394148860ee2c912f5 100644
--- a/media/base/key_systems.h
+++ b/media/base/key_systems.h
@@ -9,6 +9,7 @@
#include <vector>
#include "base/memory/scoped_ptr.h"
+#include "media/base/eme_constants.h"
#include "media/base/media_export.h"
namespace media {
@@ -78,6 +79,23 @@ MEDIA_EXPORT std::string GetPepperType(
const std::string& concrete_key_system);
#endif
+// Returns whether |key_system| supports the specified distinctive identifier
+// requirement.
+MEDIA_EXPORT bool IsSupportedDistinctiveIdentifierRequirement(
ddorwin 2015/02/17 22:34:58 We may need to pass more information (is authorize
sandersd (OOO until July 31) 2015/02/18 23:41:18 That's true. I was hoping to skip that for this CL
+ const std::string& key_system,
+ EmeRequirement requirement);
ddorwin 2015/02/17 22:34:58 In this case, we are passing the requirement from
sandersd (OOO until July 31) 2015/02/18 23:41:18 I've left the conversion outside to avoid infectin
+
+// Returns whether |key_system| supports the specified persistent state
+// requirement.
+MEDIA_EXPORT bool IsSupportedPersistentStateRequirement(
+ const std::string& key_system,
+ EmeRequirement requirement);
+
+// Returns whether |key_system| supports the specified session type.
+MEDIA_EXPORT bool IsSupportedSessionType(
+ const std::string& key_system,
+ EmeSessionType session_type);
+
#if defined(UNIT_TEST)
// Helper functions to add container/codec types for testing purposes.
MEDIA_EXPORT void AddContainerMask(const std::string& container, uint32 mask);

Powered by Google App Engine
This is Rietveld 408576698