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

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: Nits. 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 73eca6f486361c6c994d03e8e97c4379783006e7..93317a118fcd117032cd452da44a54fb40e745ba 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 {
@@ -84,6 +85,28 @@ MEDIA_EXPORT std::string GetPepperType(
const std::string& concrete_key_system);
#endif
+// Returns whether |key_system| supports persistent-license sessions.
+MEDIA_EXPORT bool IsPersistentLicenseSessionSupported(
+ const std::string& key_system,
+ bool is_permission_granted);
+
+// Returns whether |key_system| supports persistent-release-message sessions.
+MEDIA_EXPORT bool IsPersistentReleaseMessageSessionSupported(
+ const std::string& key_system,
+ bool is_permission_granted);
+
+// Returns whether |key_system| supports persistent state as requested.
+MEDIA_EXPORT bool IsPersistentStateRequirementSupported(
+ const std::string& key_system,
+ EmeFeatureRequirement requirement,
+ bool is_permission_granted);
+
+// Returns whether |key_system| supports distinctive identifiers as requested.
+MEDIA_EXPORT bool IsDistinctiveIdentifierRequirementSupported(
+ const std::string& key_system,
+ EmeFeatureRequirement requirement,
+ bool is_permission_granted);
+
#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