#include "remoting/protocol/validating_authenticator.h"
#include <memory>
#include <string>
#include <utility>
#include "base/check_op.h"
#include "base/functional/bind.h"
#include "base/functional/callback.h"
#include "base/memory/ref_counted.h"
#include "base/memory/weak_ptr.h"
#include "remoting/protocol/authenticator.h"
#include "remoting/protocol/channel_authenticator.h"
#include "third_party/libjingle_xmpp/xmllite/xmlelement.h"
namespace remoting::protocol {
ValidatingAuthenticator::ValidatingAuthenticator(
const std::string& remote_jid,
const ValidationCallback& validation_callback,
std::unique_ptr<Authenticator> current_authenticator)
: … { … }
ValidatingAuthenticator::~ValidatingAuthenticator() = default;
CredentialsType ValidatingAuthenticator::credentials_type() const { … }
const Authenticator& ValidatingAuthenticator::implementing_authenticator()
const { … }
Authenticator::State ValidatingAuthenticator::state() const { … }
bool ValidatingAuthenticator::started() const { … }
Authenticator::RejectionReason ValidatingAuthenticator::rejection_reason()
const { … }
const std::string& ValidatingAuthenticator::GetAuthKey() const { … }
std::unique_ptr<ChannelAuthenticator>
ValidatingAuthenticator::CreateChannelAuthenticator() const { … }
void ValidatingAuthenticator::ProcessMessage(
const jingle_xmpp::XmlElement* message,
base::OnceClosure resume_callback) { … }
std::unique_ptr<jingle_xmpp::XmlElement>
ValidatingAuthenticator::GetNextMessage() { … }
void ValidatingAuthenticator::OnValidateComplete(base::OnceClosure callback,
Result validation_result) { … }
void ValidatingAuthenticator::UpdateState(base::OnceClosure resume_callback) { … }
void ValidatingAuthenticator::NotifyStateChangeAfterAccepted() { … }
}