blob: 08f0d5e98f641b7e7712d81e6d587fd5d8582a08 [file] [log] [blame]
// Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_PASSWORD_MANAGER_CHROME_WEBAUTHN_CREDENTIALS_DELEGATE_H_
#define CHROME_BROWSER_PASSWORD_MANAGER_CHROME_WEBAUTHN_CREDENTIALS_DELEGATE_H_
#include "components/password_manager/core/browser/webauthn_credentials_delegate.h"
class ChromePasswordManagerClient;
// Chrome implementation of WebAuthnCredentialsDelegate.
class ChromeWebAuthnCredentialsDelegate
: public password_manager::WebAuthnCredentialsDelegate {
public:
explicit ChromeWebAuthnCredentialsDelegate(
ChromePasswordManagerClient* client);
~ChromeWebAuthnCredentialsDelegate() override = default;
ChromeWebAuthnCredentialsDelegate(const ChromeWebAuthnCredentialsDelegate&) =
delete;
ChromeWebAuthnCredentialsDelegate operator=(
const ChromeWebAuthnCredentialsDelegate&) = delete;
ChromeWebAuthnCredentialsDelegate(ChromeWebAuthnCredentialsDelegate&&) =
delete;
// password_manager::WebAuthnCredentialsDelegate:
bool IsWebAuthnAutofillEnabled() const override;
void SelectWebAuthnCredential(std::string backend_id) override;
std::vector<autofill::Suggestion> GetWebAuthnSuggestions() const override;
protected:
ChromePasswordManagerClient* const client_;
};
#endif // CHROME_BROWSER_PASSWORD_MANAGER_CHROME_WEBAUTHN_CREDENTIALS_DELEGATE_H_