blob: d8bf9bb0e0a4a5bad95ebeae9a981ac0d37b1e9c [file] [log] [blame]
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef THIRD_PARTY_BLINK_PUBLIC_PLATFORM_WEB_CONTENT_DECRYPTION_MODULE_EXCEPTION_H_
#define THIRD_PARTY_BLINK_PUBLIC_PLATFORM_WEB_CONTENT_DECRYPTION_MODULE_EXCEPTION_H_
namespace blink {
// From https://w3c.github.io/encrypted-media/#exceptions.
enum WebContentDecryptionModuleException {
kWebContentDecryptionModuleExceptionTypeError,
kWebContentDecryptionModuleExceptionNotSupportedError,
kWebContentDecryptionModuleExceptionInvalidStateError,
kWebContentDecryptionModuleExceptionQuotaExceededError,
// 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.
kWebContentDecryptionModuleExceptionUnknownError
};
} // namespace blink
#endif // THIRD_PARTY_BLINK_PUBLIC_PLATFORM_WEB_CONTENT_DECRYPTION_MODULE_EXCEPTION_H_