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

Unified Diff: media/base/eme_constants.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/eme_constants.h
diff --git a/media/base/eme_constants.h b/media/base/eme_constants.h
index e78af3b7caa5a0efd00ed592121aa523f5342fef..eb08382f01a9a01f86f811557ad819254124ba34 100644
--- a/media/base/eme_constants.h
+++ b/media/base/eme_constants.h
@@ -46,8 +46,23 @@ enum EmeCodec {
#endif // defined(USE_PROPRIETARY_CODECS)
};
+enum EmeSessionType {
+ EME_SESSION_TYPE_NONE = 0,
+ EME_SESSION_TYPE_TEMPORARY = 1 << 0,
+ EME_SESSION_TYPE_PERSISTENT_LICENSE = 1 << 1,
+ EME_SESSION_TYPE_PERSISTENT_RELEASE_MESSAGE = 1 << 2,
+};
+
typedef uint32_t SupportedInitDataTypes;
typedef uint32_t SupportedCodecs;
+typedef uint32_t SupportedSessionTypes;
+
+enum EmeRequirement {
+ EME_REQUIREMENT_NOT_ALLOWED = 1 << 0,
ddorwin 2015/02/17 20:56:47 Would it make sense (and help with the code) to ha
sandersd (OOO until July 31) 2015/02/18 23:41:17 Done.
+ EME_REQUIREMENT_REQUIRED = 1 << 1,
+ EME_REQUIREMENT_OPTIONAL =
ddorwin 2015/02/17 20:56:47 Embedders should never use this, right? Maybe it s
sandersd (OOO until July 31) 2015/02/18 23:41:17 Acknowledged.
+ EME_REQUIREMENT_NOT_ALLOWED | EME_REQUIREMENT_REQUIRED,
+};
} // namespace media

Powered by Google App Engine
This is Rietveld 408576698