| // Copyright 2017 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_RENDERER_MODULES_CREDENTIALMANAGER_AUTHENTICATOR_RESPONSE_H_ |
| #define THIRD_PARTY_BLINK_RENDERER_MODULES_CREDENTIALMANAGER_AUTHENTICATOR_RESPONSE_H_ |
| |
| #include "third_party/blink/renderer/core/typed_arrays/dom_array_buffer.h" |
| #include "third_party/blink/renderer/modules/modules_export.h" |
| #include "third_party/blink/renderer/platform/bindings/script_wrappable.h" |
| #include "third_party/blink/renderer/platform/heap/handle.h" |
| |
| namespace blink { |
| |
| class MODULES_EXPORT AuthenticatorResponse : public ScriptWrappable { |
| DEFINE_WRAPPERTYPEINFO(); |
| |
| public: |
| static AuthenticatorResponse* Create(DOMArrayBuffer* client_data_json); |
| |
| explicit AuthenticatorResponse(DOMArrayBuffer* client_data_json); |
| ~AuthenticatorResponse() override; |
| |
| DOMArrayBuffer* clientDataJSON() const { return client_data_json_.Get(); } |
| |
| void Trace(blink::Visitor*) override; |
| |
| private: |
| const Member<DOMArrayBuffer> client_data_json_; |
| }; |
| |
| } // namespace blink |
| |
| #endif // THIRD_PARTY_BLINK_RENDERER_MODULES_CREDENTIALMANAGER_AUTHENTICATOR_RESPONSE_H_ |