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 PublicKeyCredential_h |
| 6 #define PublicKeyCredential_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 #include "platform/heap/Handle.h" |
| 13 |
| 14 namespace blink { |
| 15 |
| 16 class AuthenticatorResponse; |
| 17 |
| 18 class MODULES_EXPORT PublicKeyCredential final |
| 19 : public GarbageCollected<PublicKeyCredential>, |
| 20 public ScriptWrappable { |
| 21 DEFINE_WRAPPERTYPEINFO(); |
| 22 |
| 23 public: |
| 24 static PublicKeyCredential* Create(DOMArrayBuffer* raw_id, |
| 25 AuthenticatorResponse*); |
| 26 |
| 27 DOMArrayBuffer* rawId() const { return raw_id_.Get(); } |
| 28 AuthenticatorResponse* response() const { return response_.Get(); } |
| 29 |
| 30 DECLARE_VIRTUAL_TRACE(); |
| 31 |
| 32 private: |
| 33 explicit PublicKeyCredential(DOMArrayBuffer* raw_id, AuthenticatorResponse*); |
| 34 |
| 35 const Member<DOMArrayBuffer> raw_id_; |
| 36 const Member<AuthenticatorResponse> response_; |
| 37 }; |
| 38 |
| 39 } // namespace blink |
| 40 |
| 41 #endif // PublicKeyCredential_h |
OLD | NEW |