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

Unified Diff: media/base/eme_constants.h

Issue 1005903003: Implement robustness strings in requestMediaKeySystemAccess(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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 4462c5cc0b251686c30bb1ef99b5a716248d7710..3b5fb08c8488dd2f4c93b9b3add3b4923f550d1c 100644
--- a/media/base/eme_constants.h
+++ b/media/base/eme_constants.h
@@ -60,6 +60,7 @@ enum EmeSessionTypeSupport {
EME_SESSION_TYPE_SUPPORTED,
};
+// Used to declare support for distinctive identifier and persistent state.
enum EmeFeatureSupport {
// Invalid default value.
EME_FEATURE_INVALID,
@@ -74,12 +75,45 @@ enum EmeFeatureSupport {
EME_FEATURE_ALWAYS_ENABLED,
};
+// Used to query support for distinctive identifier and persistent state.
ddorwin 2015/03/13 19:24:47 Not so much to query support, but to request a spe
sandersd (OOO until July 31) 2015/03/13 20:11:56 The requests are blink::WebMediaKeySystemConfigura
enum EmeFeatureRequirement {
EME_FEATURE_NOT_ALLOWED,
EME_FEATURE_OPTIONAL,
EME_FEATURE_REQUIRED,
};
+enum class EmeMediaType {
+ AUDIO,
+ VIDEO,
+};
+
+// Robustness values understood by KeySystems. Each value imples all those
+// before it. (This may need to be redesigned if support for non-Widevine
+// CDMs need to be supported.)
+enum class EmeRobustness {
+ INVALID,
+ EMPTY,
+ SW_SECURE_CRYPTO,
+ SW_SECURE_DECODE,
+ HW_SECURE_CRYPTO,
+ HW_SECURE_DECODE,
+ HW_SECURE_ALL,
+};
+
+// Used to answer queries about distinctive identifier, persistent state, and
+// robustness requirements.
+enum EmeRequirementSupport {
+ // The requirement is not supported.
+ EME_REQUIREMENT_NOT_SUPPORTED,
+ // The requirement is supported if the encrypted media permission is granted.
+ EME_REQUIREMENT_SUPPORTED_WITH_PERMISSION,
+ // The requirement is supported, but the user experience may be improved if
+ // the encrypted media permission is granted.
+ EME_REQUIREMENT_SUPPORTED_PERMISSION_RECOMMENDED,
+ // The requriement is supported.
+ EME_REQUIREMENT_SUPPORTED,
+};
+
} // namespace media
#endif // MEDIA_BASE_EME_CONSTANTS_H_

Powered by Google App Engine
This is Rietveld 408576698