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

Side by Side Diff: third_party/WebKit/public/platform/WebContentDecryptionModuleException.h

Issue 2342953002: Update EME errors to use TypeError (Closed)
Patch Set: changes Created 4 years, 2 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 unified diff | Download patch
« no previous file with comments | « third_party/WebKit/Source/modules/encryptedmedia/NavigatorRequestMediaKeySystemAccess.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/encryptedmedia/NavigatorRequestMediaKeySystemAccess.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698