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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/modules/encryptedmedia/NavigatorRequestMediaKeySystemAccess.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/public/platform/WebContentDecryptionModuleException.h
diff --git a/third_party/WebKit/public/platform/WebContentDecryptionModuleException.h b/third_party/WebKit/public/platform/WebContentDecryptionModuleException.h
index ca278ae745d61445c0d8347e73ae594250aa392c..8efa1942d194b3e53d66822e750b704e933d7b43 100644
--- a/third_party/WebKit/public/platform/WebContentDecryptionModuleException.h
+++ b/third_party/WebKit/public/platform/WebContentDecryptionModuleException.h
@@ -7,14 +7,16 @@
namespace blink {
+// From https://w3c.github.io/encrypted-media/#exceptions.
enum WebContentDecryptionModuleException {
+ WebContentDecryptionModuleExceptionTypeError,
WebContentDecryptionModuleExceptionNotSupportedError,
WebContentDecryptionModuleExceptionInvalidStateError,
- WebContentDecryptionModuleExceptionInvalidAccessError,
WebContentDecryptionModuleExceptionQuotaExceededError,
- WebContentDecryptionModuleExceptionUnknownError,
- WebContentDecryptionModuleExceptionClientError,
- WebContentDecryptionModuleExceptionOutputError,
+ // TODO(jrummell): UnknownError is not part of the spec, but CDMs can
+ // generate other error codes (in addition to the 4 listed above). Remove
+ // UnknownError when the CDMs no longer use other error codes.
+ WebContentDecryptionModuleExceptionUnknownError
};
} // namespace blink
« 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