| 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 262bc8b8c53479c13975471ce8f653873244035f..0c0c2b3d6c85c69db7d8c5fe1f71f25150ec14c6 100644
|
| --- a/third_party/WebKit/Source/modules/webauth/WebAuthentication.h
|
| +++ b/third_party/WebKit/Source/modules/webauth/WebAuthentication.h
|
| @@ -7,12 +7,12 @@
|
|
|
| #include "bindings/core/v8/ArrayBufferOrArrayBufferView.h"
|
| #include "bindings/core/v8/ScriptPromise.h"
|
| -#include "components/webauth/authenticator.mojom-blink.h"
|
| #include "core/dom/ContextLifecycleObserver.h"
|
| #include "core/dom/DOMArrayBuffer.h"
|
| #include "modules/webauth/AuthenticationAssertionOptions.h"
|
| #include "modules/webauth/ScopedCredentialInfo.h"
|
| #include "platform/bindings/ScriptWrappable.h"
|
| +#include "public/platform/modules/webauth/authenticator.mojom-blink.h"
|
|
|
| namespace blink {
|
|
|
| @@ -38,8 +38,6 @@ class WebAuthentication final
|
|
|
| virtual ~WebAuthentication();
|
|
|
| - void Dispose();
|
| -
|
| // WebAuthentication.idl
|
| ScriptPromise makeCredential(ScriptState*,
|
| const RelyingPartyAccount&,
|
| @@ -50,24 +48,26 @@ class WebAuthentication final
|
| const BufferSource&,
|
| const AuthenticationAssertionOptions&);
|
|
|
| - // ContextLifecycleObserver overrides.
|
| - void ContextDestroyed(ExecutionContext*) override;
|
| -
|
| webauth::mojom::blink::Authenticator* Authenticator() const {
|
| return 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 authenticator_;
|
| HeapHashSet<Member<ScriptPromiseResolver>> authenticator_requests_;
|
| };
|
|
|