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

Side by Side Diff: third_party/WebKit/Source/modules/webauthentication/WebAuthentication.h

Issue 2533863002: Add WebAuthn bindings and client interface. (Closed)
Patch Set: Created 4 years 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 2015 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 WebAuthentication_h
6 #define WebAuthentication_h
7
8 #include "bindings/core/v8/ArrayBufferOrArrayBufferView.h"
9 #include "bindings/core/v8/ScriptPromise.h"
10 #include "bindings/core/v8/ScriptWrappable.h"
11 #include "core/dom/DOMArrayBuffer.h"
12 #include "modules/webauthentication/Account.h"
13 #include "modules/webauthentication/AssertionOptions.h"
14 #include "modules/webauthentication/ScopedCredentialOptions.h"
15 #include "modules/webauthentication/ScopedCredentialParameters.h"
16
17 namespace blink {
18
19 class LocalFrame;
20 class ScriptState;
21 class Account;
22 class AssertionOptions;
23 class ScopedCredentialParameters;
24 class ScopedCredentialOptions;
25
26 typedef ArrayBufferOrArrayBufferView BufferSource;
27
28 class WebAuthentication final
29 : public GarbageCollectedFinalized<WebAuthentication>,
30 public ScriptWrappable {
31 DEFINE_WRAPPERTYPEINFO();
32
33 public:
34 static WebAuthentication* create(LocalFrame& frame) {
35 return new WebAuthentication(frame);
36 }
37
38 virtual ~WebAuthentication();
39
40 void dispose();
41
42 ScriptPromise makeCredential(ScriptState*,
43 const Account&,
44 const HeapVector<ScopedCredentialParameters>,
45 const BufferSource&,
46 ScopedCredentialOptions&);
47 ScriptPromise getAssertion(ScriptState*,
48 const BufferSource&,
49 const AssertionOptions&);
50
51 DEFINE_INLINE_TRACE() {}
52
53 private:
54 explicit WebAuthentication(LocalFrame&);
55 };
56
57 } // namespace blink
58
59 #endif // WebAuthentication_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698