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. | |
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 to support non-Widevine CDMs.) | |
92 enum class EmeRobustness { | |
93 INVALID, | |
94 EMPTY, | |
95 SW_SECURE_CRYPTO, | |
96 SW_SECURE_DECODE, | |
97 HW_SECURE_CRYPTO, | |
98 HW_SECURE_DECODE, | |
99 HW_SECURE_ALL, | |
100 }; | |
101 | |
102 // Configuration rules are recipes for determining if a feature is supported, | |
ddorwin
2015/03/16 23:25:08
Not really "recipes"?
sandersd (OOO until July 31)
2015/03/17 22:10:38
Done.
| |
103 // and for updating configuration state for evaluating later rules. They are | |
104 // used to answer queries about distinctive identifier, persistent state, and | |
105 // robustness support. | |
106 enum class EmeConfigRule { | |
ddorwin
2015/03/16 23:25:08
"Rule" doesn't seem appropriate. SupportStatus? Su
sandersd (OOO until July 31)
2015/03/17 22:10:38
Condition is accurate. Let me know if it still nee
| |
107 // The feature is not supported. | |
108 NOT_SUPPORTED, | |
109 // The feature is supported if the encrypted media permission is granted. | |
110 PERMISSION_REQUIRED, | |
111 // The feature is supported, but the user experience may be improved if the | |
112 // encrypted media permission is granted. | |
113 PERMISSION_RECOMMENDED, | |
114 // The feature is supported without conditions. | |
115 SUPPORTED, | |
ddorwin
2015/03/16 23:25:08
This does not indicate whether it can be disabled.
sandersd (OOO until July 31)
2015/03/17 22:10:38
Done.
| |
116 }; | |
117 | |
83 } // namespace media | 118 } // namespace media |
84 | 119 |
85 #endif // MEDIA_BASE_EME_CONSTANTS_H_ | 120 #endif // MEDIA_BASE_EME_CONSTANTS_H_ |
OLD | NEW |