#include "third_party/blink/renderer/modules/crypto/crypto_result_impl.h"
#include "base/compiler_specific.h"
#include "base/containers/span.h"
#include "third_party/blink/public/platform/platform.h"
#include "third_party/blink/public/platform/web_crypto_algorithm.h"
#include "third_party/blink/renderer/bindings/core/v8/dictionary.h"
#include "third_party/blink/renderer/bindings/core/v8/script_promise_resolver.h"
#include "third_party/blink/renderer/bindings/core/v8/to_v8_traits.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_binding_for_core.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_object_builder.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_throw_dom_exception.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_crypto_key.h"
#include "third_party/blink/renderer/core/dom/dom_exception.h"
#include "third_party/blink/renderer/core/execution_context/execution_context.h"
#include "third_party/blink/renderer/core/execution_context/execution_context_lifecycle_observer.h"
#include "third_party/blink/renderer/core/typed_arrays/dom_array_buffer.h"
#include "third_party/blink/renderer/modules/crypto/crypto_key.h"
#include "third_party/blink/renderer/modules/crypto/normalize_algorithm.h"
#include "third_party/blink/renderer/platform/bindings/script_state.h"
#include "third_party/blink/renderer/platform/bindings/v8_throw_exception.h"
#include "third_party/blink/renderer/platform/heap/garbage_collected.h"
namespace blink {
static void RejectWithTypeError(const String& error_details,
ScriptPromiseResolverBase* resolver) { … }
ExceptionCode WebCryptoErrorToExceptionCode(WebCryptoErrorType error_type) { … }
CryptoResultImpl::~CryptoResultImpl() { … }
void CryptoResultImpl::Trace(Visitor* visitor) const { … }
void CryptoResultImpl::ClearResolver() { … }
void CryptoResultImpl::CompleteWithError(WebCryptoErrorType error_type,
const WebString& error_details) { … }
void CryptoResultImpl::CompleteWithBuffer(base::span<const uint8_t> bytes) { … }
void CryptoResultImpl::CompleteWithJson(std::string_view utf8_data) { … }
void CryptoResultImpl::CompleteWithBoolean(bool b) { … }
void CryptoResultImpl::CompleteWithKey(const WebCryptoKey& key) { … }
void CryptoResultImpl::CompleteWithKeyPair(const WebCryptoKey& public_key,
const WebCryptoKey& private_key) { … }
void CryptoResultImpl::Cancel() { … }
}