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; |
}; |