electron_authenticator_request_delegate.h 875 B

123456789101112131415161718192021222324
  1. // Copyright (c) 2022 GitHub, Inc.
  2. // Use of this source code is governed by the MIT license that can be
  3. // found in the LICENSE file.
  4. #ifndef ELECTRON_SHELL_BROWSER_WEBAUTHN_ELECTRON_AUTHENTICATOR_REQUEST_DELEGATE_H_
  5. #define ELECTRON_SHELL_BROWSER_WEBAUTHN_ELECTRON_AUTHENTICATOR_REQUEST_DELEGATE_H_
  6. #include "content/public/browser/authenticator_request_client_delegate.h"
  7. namespace electron {
  8. // Modified from chrome/browser/webauthn/chrome_authenticator_request_delegate.h
  9. class ElectronWebAuthenticationDelegate
  10. : public content::WebAuthenticationDelegate {
  11. public:
  12. ~ElectronWebAuthenticationDelegate() override;
  13. // content::WebAuthenticationDelegate
  14. bool SupportsResidentKeys(
  15. content::RenderFrameHost* render_frame_host) override;
  16. };
  17. } // namespace electron
  18. #endif // ELECTRON_SHELL_BROWSER_WEBAUTHN_ELECTRON_AUTHENTICATOR_REQUEST_DELEGATE_H_