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 "bindings/core/v8/ScriptWrappable.h" |
| 9 #include "core/dom/DOMArrayBuffer.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* clientData, |
| 20 DOMArrayBuffer* attestation) { |
| 21 return new ScopedCredentialInfo(clientData, attestation); |
| 22 } |
| 23 |
| 24 ScopedCredentialInfo(DOMArrayBuffer* clientData, DOMArrayBuffer* attestation) |
| 25 : m_clientData(clientData), m_attestation(attestation) {} |
| 26 |
| 27 virtual ~ScopedCredentialInfo() {} |
| 28 |
| 29 DOMArrayBuffer* clientData() const { return m_clientData.get(); } |
| 30 DOMArrayBuffer* attestation() const { return m_attestation.get(); } |
| 31 |
| 32 DEFINE_INLINE_TRACE() { |
| 33 visitor->trace(m_clientData); |
| 34 visitor->trace(m_attestation); |
| 35 } |
| 36 |
| 37 private: |
| 38 const Member<DOMArrayBuffer> m_clientData; |
| 39 const Member<DOMArrayBuffer> m_attestation; |
| 40 }; |
| 41 |
| 42 } // namespace blink |
| 43 |
| 44 #endif // ScopedCredentialInfo_h |
OLD | NEW |