#include <string>
#include <utility>
#include "base/check_op.h"
#include "base/functional/bind.h"
#include "device/fido/fido_authenticator.h"
#include "device/fido/fido_constants.h"
#include "device/fido/pin.h"
#include "device/fido/set_pin_request_handler.h"
namespace device {
SetPINRequestHandler::SetPINRequestHandler(
const base::flat_set<FidoTransportProtocol>& supported_transports,
GetPINCallback get_pin_callback,
FinishedCallback finished_callback,
std::unique_ptr<FidoDiscoveryFactory> fido_discovery_factory)
: … { … }
SetPINRequestHandler::~SetPINRequestHandler() { … }
void SetPINRequestHandler::ProvidePIN(const std::string& old_pin,
const std::string& new_pin) { … }
void SetPINRequestHandler::DispatchRequest(FidoAuthenticator* authenticator) { … }
void SetPINRequestHandler::AuthenticatorRemoved(
FidoDiscoveryBase* discovery,
FidoAuthenticator* authenticator) { … }
void SetPINRequestHandler::OnTouch(FidoAuthenticator* authenticator) { … }
void SetPINRequestHandler::OnRetriesResponse(
CtapDeviceResponseCode status,
std::optional<pin::RetriesResponse> response) { … }
void SetPINRequestHandler::OnSetPINComplete(
CtapDeviceResponseCode status,
std::optional<pin::EmptyResponse> response) { … }
}