| Index: third_party/WebKit/Source/modules/webauthentication/WebAuthnAttestation.h
|
| diff --git a/third_party/WebKit/Source/modules/webauthentication/WebAuthnAttestation.h b/third_party/WebKit/Source/modules/webauthentication/WebAuthnAttestation.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..8fc839b74c54a4608c73b3277b3c89ba0825c9a0
|
| --- /dev/null
|
| +++ b/third_party/WebKit/Source/modules/webauthentication/WebAuthnAttestation.h
|
| @@ -0,0 +1,59 @@
|
| +// 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 WebAuthnAttestation_h
|
| +#define WebAuthnAttestation_h
|
| +
|
| +#include "bindings/core/v8/ScriptWrappable.h"
|
| +#include "core/dom/DOMArrayBuffer.h"
|
| +
|
| +namespace blink {
|
| +
|
| +class WebAuthnAttestation final
|
| + : public GarbageCollectedFinalized<WebAuthnAttestation>,
|
| + public ScriptWrappable {
|
| + DEFINE_WRAPPERTYPEINFO();
|
| +
|
| + public:
|
| + static WebAuthnAttestation* create(const String& format,
|
| + DOMArrayBuffer* clientData,
|
| + DOMArrayBuffer* authenticatorData,
|
| + ScriptValue attestation) {
|
| + return new WebAuthnAttestation(format, clientData, authenticatorData,
|
| + attestation);
|
| + }
|
| +
|
| + explicit WebAuthnAttestation(const String& format,
|
| + DOMArrayBuffer* clientData,
|
| + DOMArrayBuffer* authenticatorData,
|
| + ScriptValue attestation)
|
| + : m_format(format),
|
| + m_clientData(clientData),
|
| + m_authenticatorData(authenticatorData),
|
| + m_attestation(attestation) {}
|
| +
|
| + virtual ~WebAuthnAttestation() {}
|
| +
|
| + const String format() const { return m_format; }
|
| + DOMArrayBuffer* clientData() const { return m_clientData.get(); }
|
| + DOMArrayBuffer* authenticatorData() const {
|
| + return m_authenticatorData.get();
|
| + }
|
| + ScriptValue attestation() const { return m_attestation; }
|
| +
|
| + DEFINE_INLINE_TRACE() {
|
| + visitor->trace(m_clientData);
|
| + visitor->trace(m_authenticatorData);
|
| + }
|
| +
|
| + private:
|
| + const String m_format;
|
| + const Member<DOMArrayBuffer> m_clientData;
|
| + const Member<DOMArrayBuffer> m_authenticatorData;
|
| + const ScriptValue m_attestation;
|
| +};
|
| +
|
| +} // namespace blink
|
| +
|
| +#endif // WebAuthnAttestation_h
|
|
|