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

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: Comment for ECK 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..4462c5cc0b251686c30bb1ef99b5a716248d7710 100644
--- a/media/base/eme_constants.h
+++ b/media/base/eme_constants.h
@@ -49,6 +49,37 @@ enum EmeCodec {
typedef uint32_t SupportedInitDataTypes;
typedef uint32_t SupportedCodecs;
+enum EmeSessionTypeSupport {
+ // Invalid default value.
+ EME_SESSION_TYPE_INVALID,
+ // The session type is not supported.
+ EME_SESSION_TYPE_NOT_SUPPORTED,
+ // The session type is supported if the encrypted media permission is granted.
+ EME_SESSION_TYPE_SUPPORTED_WITH_PERMISSION,
+ // The session type is always supported.
+ EME_SESSION_TYPE_SUPPORTED,
+};
+
+enum EmeFeatureSupport {
+ // Invalid default value.
+ EME_FEATURE_INVALID,
+ // Access to the feature is not supported at all.
+ EME_FEATURE_NOT_SUPPORTED,
+ // Access to the feature may be requested if the encrypted media permission is
+ // granted.
+ EME_FEATURE_REQUESTABLE_WITH_PERMISSION,
+ // Access to the feature may be requested.
+ EME_FEATURE_REQUESTABLE,
+ // Access to the feature cannot be blocked.
+ EME_FEATURE_ALWAYS_ENABLED,
+};
+
+enum EmeFeatureRequirement {
+ EME_FEATURE_NOT_ALLOWED,
+ EME_FEATURE_OPTIONAL,
+ EME_FEATURE_REQUIRED,
+};
+
} // namespace media
#endif // MEDIA_BASE_EME_CONSTANTS_H_

Powered by Google App Engine
This is Rietveld 408576698