| 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 WebContentDecryptionModuleException_h | 5 #ifndef WebContentDecryptionModuleException_h |
| 6 #define WebContentDecryptionModuleException_h | 6 #define WebContentDecryptionModuleException_h |
| 7 | 7 |
| 8 namespace blink { | 8 namespace blink { |
| 9 | 9 |
| 10 // From https://w3c.github.io/encrypted-media/#exceptions. |
| 10 enum WebContentDecryptionModuleException { | 11 enum WebContentDecryptionModuleException { |
| 12 WebContentDecryptionModuleExceptionTypeError, |
| 11 WebContentDecryptionModuleExceptionNotSupportedError, | 13 WebContentDecryptionModuleExceptionNotSupportedError, |
| 12 WebContentDecryptionModuleExceptionInvalidStateError, | 14 WebContentDecryptionModuleExceptionInvalidStateError, |
| 13 WebContentDecryptionModuleExceptionInvalidAccessError, | |
| 14 WebContentDecryptionModuleExceptionQuotaExceededError, | 15 WebContentDecryptionModuleExceptionQuotaExceededError, |
| 15 WebContentDecryptionModuleExceptionUnknownError, | 16 // TODO(jrummell): UnknownError is not part of the spec, but CDMs can |
| 16 WebContentDecryptionModuleExceptionClientError, | 17 // generate other error codes (in addition to the 4 listed above). Remove |
| 17 WebContentDecryptionModuleExceptionOutputError, | 18 // UnknownError when the CDMs no longer use other error codes. |
| 19 WebContentDecryptionModuleExceptionUnknownError |
| 18 }; | 20 }; |
| 19 | 21 |
| 20 } // namespace blink | 22 } // namespace blink |
| 21 | 23 |
| 22 #endif // WebContentDecryptionModuleException_h | 24 #endif // WebContentDecryptionModuleException_h |
| OLD | NEW |