| Index: third_party/WebKit/Source/modules/webauthentication/WebAuthnAssertion.h
|
| diff --git a/third_party/WebKit/Source/modules/webauthentication/WebAuthnAssertion.h b/third_party/WebKit/Source/modules/webauthentication/WebAuthnAssertion.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..82759c9b4d1454af6c0f9a5fac36694fce184372
|
| --- /dev/null
|
| +++ b/third_party/WebKit/Source/modules/webauthentication/WebAuthnAssertion.h
|
| @@ -0,0 +1,62 @@
|
| +// Copyright 2016 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 WebAuthnAssertion_h
|
| +#define WebAuthnAssertion_h
|
| +
|
| +#include "bindings/core/v8/ScriptWrappable.h"
|
| +#include "core/dom/DOMArrayBuffer.h"
|
| +#include "modules/webauthentication/ScopedCredential.h"
|
| +
|
| +namespace blink {
|
| +
|
| +class WebAuthnAssertion final
|
| + : public GarbageCollectedFinalized<WebAuthnAssertion>,
|
| + public ScriptWrappable {
|
| + DEFINE_WRAPPERTYPEINFO();
|
| +
|
| + public:
|
| + static WebAuthnAssertion* create(ScopedCredential* credential,
|
| + DOMArrayBuffer* clientData,
|
| + DOMArrayBuffer* authenticatorData,
|
| + DOMArrayBuffer* signature) {
|
| + return new WebAuthnAssertion(credential, clientData, authenticatorData,
|
| + signature);
|
| + }
|
| +
|
| + WebAuthnAssertion(ScopedCredential* credential,
|
| + DOMArrayBuffer* clientData,
|
| + DOMArrayBuffer* authenticatorData,
|
| + DOMArrayBuffer* signature)
|
| + : m_credential(credential),
|
| + m_clientData(clientData),
|
| + m_authenticatorData(authenticatorData),
|
| + m_signature(signature) {}
|
| +
|
| + virtual ~WebAuthnAssertion() {}
|
| +
|
| + ScopedCredential* credential() const { return m_credential.get(); }
|
| + DOMArrayBuffer* clientData() const { return m_clientData.get(); }
|
| + DOMArrayBuffer* authenticatorData() const {
|
| + return m_authenticatorData.get();
|
| + }
|
| + DOMArrayBuffer* signature() const { return m_signature.get(); }
|
| +
|
| + DEFINE_INLINE_TRACE() {
|
| + visitor->trace(m_credential);
|
| + visitor->trace(m_clientData);
|
| + visitor->trace(m_authenticatorData);
|
| + visitor->trace(m_signature);
|
| + }
|
| +
|
| + private:
|
| + const Member<ScopedCredential> m_credential;
|
| + const Member<DOMArrayBuffer> m_clientData;
|
| + const Member<DOMArrayBuffer> m_authenticatorData;
|
| + const Member<DOMArrayBuffer> m_signature;
|
| +};
|
| +
|
| +} // namespace blink
|
| +
|
| +#endif // WebAuthnAssertion_h
|
|
|