| 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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 // The configuration option is supported, but the user experience may be | 122 // The configuration option is supported, but the user experience may be |
| 123 // improved if a distinctive identifier is available. | 123 // improved if a distinctive identifier is available. |
| 124 IDENTIFIER_RECOMMENDED, | 124 IDENTIFIER_RECOMMENDED, |
| 125 // The configuration option prevents use of persistent state. | 125 // The configuration option prevents use of persistent state. |
| 126 PERSISTENCE_NOT_ALLOWED, | 126 PERSISTENCE_NOT_ALLOWED, |
| 127 // The configuration option is supported if persistent state is available. | 127 // The configuration option is supported if persistent state is available. |
| 128 PERSISTENCE_REQUIRED, | 128 PERSISTENCE_REQUIRED, |
| 129 // The configuration option is supported if both a distinctive identifier and | 129 // The configuration option is supported if both a distinctive identifier and |
| 130 // persistent state are available. | 130 // persistent state are available. |
| 131 IDENTIFIER_AND_PERSISTENCE_REQUIRED, | 131 IDENTIFIER_AND_PERSISTENCE_REQUIRED, |
| 132 #if defined(OS_ANDROID) | 132 // The configuration option prevents use of hardware-secure codecs. |
| 133 // The configuration option is supported if no hardware-secure codecs are used | 133 // This rule only has meaning on platforms that distinguish hardware-secure |
| 134 // (as they would be for video if secure surfaces are enabled). | 134 // codecs (ie. Android). |
| 135 SECURE_CODECS_NOT_ALLOWED, | 135 SECURE_CODECS_NOT_ALLOWED, |
| 136 // The configuration option is supported if only hardware-secure codecs are | 136 // The configuration option is supported if hardware-secure codecs are used. |
| 137 // used. This implies that secure surfaces (hole-punching) are required for | 137 // This rule only has meaning on platforms that distinguish hardware-secure |
| 138 // video. | 138 // codecs (ie. Android). |
| 139 SECURE_CODECS_REQUIRED, | 139 SECURE_CODECS_REQUIRED, |
| 140 #endif // defined(OS_ANDROID) | |
| 141 // The configuration option is supported without conditions. | 140 // The configuration option is supported without conditions. |
| 142 SUPPORTED, | 141 SUPPORTED, |
| 143 }; | 142 }; |
| 144 | 143 |
| 145 } // namespace media | 144 } // namespace media |
| 146 | 145 |
| 147 #endif // MEDIA_BASE_EME_CONSTANTS_H_ | 146 #endif // MEDIA_BASE_EME_CONSTANTS_H_ |
| OLD | NEW |