OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef AuthenticatorAttestationResponse_h |
| 6 #define AuthenticatorAttestationResponse_h |
| 7 |
| 8 #include "core/dom/DOMArrayBuffer.h" |
| 9 #include "modules/ModulesExport.h" |
| 10 #include "modules/webauth/AuthenticatorResponse.h" |
| 11 #include "platform/bindings/ScriptWrappable.h" |
| 12 |
| 13 namespace blink { |
| 14 |
| 15 class MODULES_EXPORT AuthenticatorAttestationResponse final |
| 16 : public AuthenticatorResponse { |
| 17 DEFINE_WRAPPERTYPEINFO(); |
| 18 |
| 19 public: |
| 20 static AuthenticatorAttestationResponse* Create( |
| 21 DOMArrayBuffer* client_data_json, |
| 22 DOMArrayBuffer* attestation_object); |
| 23 |
| 24 virtual ~AuthenticatorAttestationResponse(); |
| 25 |
| 26 DOMArrayBuffer* attestationObject() const { |
| 27 return attestation_object_.Get(); |
| 28 } |
| 29 |
| 30 DECLARE_VIRTUAL_TRACE(); |
| 31 |
| 32 private: |
| 33 explicit AuthenticatorAttestationResponse(DOMArrayBuffer* client_data_json, |
| 34 DOMArrayBuffer* attestation_object); |
| 35 |
| 36 const Member<DOMArrayBuffer> attestation_object_; |
| 37 }; |
| 38 |
| 39 } // namespace blink |
| 40 |
| 41 #endif // AuthenticatorAttestationResponse_h |
OLD | NEW |