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

Side by Side Diff: third_party/WebKit/Source/modules/webauth/PublicKeyCredential.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 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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698