| OLD | NEW |
| (Empty) |
| 1 // Copyright 2016 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 ScopedCredentialInfo_h | |
| 6 #define ScopedCredentialInfo_h | |
| 7 | |
| 8 #include "core/dom/DOMArrayBuffer.h" | |
| 9 #include "platform/bindings/ScriptWrappable.h" | |
| 10 | |
| 11 namespace blink { | |
| 12 | |
| 13 class ScopedCredentialInfo final | |
| 14 : public GarbageCollectedFinalized<ScopedCredentialInfo>, | |
| 15 public ScriptWrappable { | |
| 16 DEFINE_WRAPPERTYPEINFO(); | |
| 17 | |
| 18 public: | |
| 19 static ScopedCredentialInfo* Create(DOMArrayBuffer* client_data, | |
| 20 DOMArrayBuffer* attestation) { | |
| 21 return new ScopedCredentialInfo(client_data, attestation); | |
| 22 } | |
| 23 | |
| 24 ScopedCredentialInfo(DOMArrayBuffer* client_data, DOMArrayBuffer* attestation) | |
| 25 : client_data_(client_data), attestation_(attestation) {} | |
| 26 | |
| 27 virtual ~ScopedCredentialInfo() {} | |
| 28 | |
| 29 DOMArrayBuffer* clientData() const { return client_data_.Get(); } | |
| 30 DOMArrayBuffer* attestation() const { return attestation_.Get(); } | |
| 31 | |
| 32 DEFINE_INLINE_TRACE() { | |
| 33 visitor->Trace(client_data_); | |
| 34 visitor->Trace(attestation_); | |
| 35 } | |
| 36 | |
| 37 private: | |
| 38 const Member<DOMArrayBuffer> client_data_; | |
| 39 const Member<DOMArrayBuffer> attestation_; | |
| 40 }; | |
| 41 | |
| 42 } // namespace blink | |
| 43 | |
| 44 #endif // ScopedCredentialInfo_h | |
| OLD | NEW |