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

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

Issue 2966523002: Blink-layer update to match WebAuthN spec (Closed)
Patch Set: Add ContectLifecycleObserver... part2 Created 3 years, 5 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 "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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698