#include "remoting/protocol/pairing_host_authenticator.h"
#include <utility>
#include "base/functional/bind.h"
#include "base/logging.h"
#include "remoting/base/constants.h"
#include "remoting/protocol/channel_authenticator.h"
#include "third_party/libjingle_xmpp/xmllite/xmlelement.h"
namespace remoting::protocol {
PairingHostAuthenticator::PairingHostAuthenticator(
scoped_refptr<PairingRegistry> pairing_registry,
const CreateBaseAuthenticatorCallback& create_base_authenticator_callback,
const std::string& pin)
: … { … }
void PairingHostAuthenticator::Initialize(
const std::string& client_id,
Authenticator::State preferred_initial_state,
base::OnceClosure resume_callback) { … }
PairingHostAuthenticator::~PairingHostAuthenticator() = default;
Authenticator::State PairingHostAuthenticator::state() const { … }
Authenticator::RejectionReason PairingHostAuthenticator::rejection_reason()
const { … }
void PairingHostAuthenticator::CreateSpakeAuthenticatorWithPin(
State initial_state,
base::OnceClosure resume_callback) { … }
void PairingHostAuthenticator::InitializeWithPairing(
Authenticator::State preferred_initial_state,
base::OnceClosure resume_callback,
PairingRegistry::Pairing pairing) { … }
}