Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef MEDIA_BASE_EME_CONSTANTS_H_ | 5 #ifndef MEDIA_BASE_EME_CONSTANTS_H_ |
| 6 #define MEDIA_BASE_EME_CONSTANTS_H_ | 6 #define MEDIA_BASE_EME_CONSTANTS_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 namespace media { | 10 namespace media { |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 53 // Invalid default value. | 53 // Invalid default value. |
| 54 EME_SESSION_TYPE_INVALID, | 54 EME_SESSION_TYPE_INVALID, |
| 55 // The session type is not supported. | 55 // The session type is not supported. |
| 56 EME_SESSION_TYPE_NOT_SUPPORTED, | 56 EME_SESSION_TYPE_NOT_SUPPORTED, |
| 57 // The session type is supported if the encrypted media permission is granted. | 57 // The session type is supported if the encrypted media permission is granted. |
| 58 EME_SESSION_TYPE_SUPPORTED_WITH_PERMISSION, | 58 EME_SESSION_TYPE_SUPPORTED_WITH_PERMISSION, |
| 59 // The session type is always supported. | 59 // The session type is always supported. |
| 60 EME_SESSION_TYPE_SUPPORTED, | 60 EME_SESSION_TYPE_SUPPORTED, |
| 61 }; | 61 }; |
| 62 | 62 |
| 63 // Used to declare support for distinctive identifier and persistent state. | |
| 63 enum EmeFeatureSupport { | 64 enum EmeFeatureSupport { |
| 64 // Invalid default value. | 65 // Invalid default value. |
| 65 EME_FEATURE_INVALID, | 66 EME_FEATURE_INVALID, |
| 66 // Access to the feature is not supported at all. | 67 // Access to the feature is not supported at all. |
| 67 EME_FEATURE_NOT_SUPPORTED, | 68 EME_FEATURE_NOT_SUPPORTED, |
| 68 // Access to the feature may be requested if the encrypted media permission is | 69 // Access to the feature may be requested if the encrypted media permission is |
| 69 // granted. | 70 // granted. |
| 70 EME_FEATURE_REQUESTABLE_WITH_PERMISSION, | 71 EME_FEATURE_REQUESTABLE_WITH_PERMISSION, |
| 71 // Access to the feature may be requested. | 72 // Access to the feature may be requested. |
| 72 EME_FEATURE_REQUESTABLE, | 73 EME_FEATURE_REQUESTABLE, |
| 73 // Access to the feature cannot be blocked. | 74 // Access to the feature cannot be blocked. |
| 74 EME_FEATURE_ALWAYS_ENABLED, | 75 EME_FEATURE_ALWAYS_ENABLED, |
| 75 }; | 76 }; |
| 76 | 77 |
| 78 // 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
| |
| 77 enum EmeFeatureRequirement { | 79 enum EmeFeatureRequirement { |
| 78 EME_FEATURE_NOT_ALLOWED, | 80 EME_FEATURE_NOT_ALLOWED, |
| 79 EME_FEATURE_OPTIONAL, | 81 EME_FEATURE_OPTIONAL, |
| 80 EME_FEATURE_REQUIRED, | 82 EME_FEATURE_REQUIRED, |
| 81 }; | 83 }; |
| 82 | 84 |
| 85 enum class EmeMediaType { | |
| 86 AUDIO, | |
| 87 VIDEO, | |
| 88 }; | |
| 89 | |
| 90 // Robustness values understood by KeySystems. Each value imples all those | |
| 91 // before it. (This may need to be redesigned if support for non-Widevine | |
| 92 // CDMs need to be supported.) | |
| 93 enum class EmeRobustness { | |
| 94 INVALID, | |
| 95 EMPTY, | |
| 96 SW_SECURE_CRYPTO, | |
| 97 SW_SECURE_DECODE, | |
| 98 HW_SECURE_CRYPTO, | |
| 99 HW_SECURE_DECODE, | |
| 100 HW_SECURE_ALL, | |
| 101 }; | |
| 102 | |
| 103 // Used to answer queries about distinctive identifier, persistent state, and | |
| 104 // robustness requirements. | |
| 105 enum EmeRequirementSupport { | |
| 106 // The requirement is not supported. | |
| 107 EME_REQUIREMENT_NOT_SUPPORTED, | |
| 108 // The requirement is supported if the encrypted media permission is granted. | |
| 109 EME_REQUIREMENT_SUPPORTED_WITH_PERMISSION, | |
| 110 // The requirement is supported, but the user experience may be improved if | |
| 111 // the encrypted media permission is granted. | |
| 112 EME_REQUIREMENT_SUPPORTED_PERMISSION_RECOMMENDED, | |
| 113 // The requriement is supported. | |
| 114 EME_REQUIREMENT_SUPPORTED, | |
| 115 }; | |
| 116 | |
| 83 } // namespace media | 117 } // namespace media |
| 84 | 118 |
| 85 #endif // MEDIA_BASE_EME_CONSTANTS_H_ | 119 #endif // MEDIA_BASE_EME_CONSTANTS_H_ |
| OLD | NEW |