Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(917)

Side by Side Diff: third_party/WebKit/Source/modules/webauth/ScopedCredentialInfo.h

Issue 2533863002: Add WebAuthn bindings and client interface. (Closed)
Patch Set: Layout test expected file tweaks Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698