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

Unified Diff: third_party/WebKit/Source/modules/webauth/WebAuthentication.h

Issue 2788823002: Add the Mojo implementation of authenticator.mojom's MakeCredential. (Closed)
Patch Set: Stripping out unnecessary comments Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/webauth/WebAuthentication.h
diff --git a/third_party/WebKit/Source/modules/webauth/WebAuthentication.h b/third_party/WebKit/Source/modules/webauth/WebAuthentication.h
index 2ffff0fea4c3722a589044fa2259c558f6c94c9f..633f6a7ab74d0b0c5150700ac9ac218786fa026c 100644
--- a/third_party/WebKit/Source/modules/webauth/WebAuthentication.h
+++ b/third_party/WebKit/Source/modules/webauth/WebAuthentication.h
@@ -29,6 +29,7 @@ class WebAuthentication final
public ContextLifecycleObserver {
DEFINE_WRAPPERTYPEINFO();
USING_GARBAGE_COLLECTED_MIXIN(WebAuthentication);
+ USING_PRE_FINALIZER(WebAuthentication, Dispose);
haraken 2017/04/13 01:59:40 What is it for? The Dispose method is empty.
public:
static WebAuthentication* Create(LocalFrame& frame) {
@@ -49,24 +50,26 @@ class WebAuthentication final
const BufferSource&,
const AuthenticationAssertionOptions&);
- // ContextLifecycleObserver overrides.
- void ContextDestroyed(ExecutionContext*) override;
-
webauth::mojom::blink::Authenticator* authenticator() const {
return m_authenticator.get();
}
- void onMakeCredential(ScriptPromiseResolver*,
- Vector<webauth::mojom::blink::ScopedCredentialInfoPtr>);
- bool markRequestComplete(ScriptPromiseResolver*);
-
- void onAuthenticatorConnectionError();
+ // ContextLifecycleObserver overrides.
+ void ContextDestroyed(ExecutionContext*) override;
DECLARE_VIRTUAL_TRACE();
private:
explicit WebAuthentication(LocalFrame&);
+ void onMakeCredential(ScriptPromiseResolver*,
+ webauth::mojom::blink::AuthenticatorStatus,
+ webauth::mojom::blink::ScopedCredentialInfoPtr);
+ ScriptPromise rejectIfNotSupported(ScriptState*);
+ void onAuthenticatorConnectionError();
+ bool markRequestComplete(ScriptPromiseResolver*);
+ void cleanup();
+
webauth::mojom::blink::AuthenticatorPtr m_authenticator;
HeapHashSet<Member<ScriptPromiseResolver>> m_authenticatorRequests;
};
« no previous file with comments | « third_party/WebKit/Source/modules/webauth/BUILD.gn ('k') | third_party/WebKit/Source/modules/webauth/WebAuthentication.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698