#include "net/http/http_auth_handler.h"
#include <utility>
#include "base/check_op.h"
#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "net/base/net_errors.h"
#include "net/http/http_auth_challenge_tokenizer.h"
#include "net/log/net_log.h"
#include "net/log/net_log_event_type.h"
namespace net {
HttpAuthHandler::HttpAuthHandler() = default;
HttpAuthHandler::~HttpAuthHandler() = default;
bool HttpAuthHandler::InitFromChallenge(
HttpAuthChallengeTokenizer* challenge,
HttpAuth::Target target,
const SSLInfo& ssl_info,
const NetworkAnonymizationKey& network_anonymization_key,
const url::SchemeHostPort& scheme_host_port,
const NetLogWithSource& net_log) { … }
int HttpAuthHandler::GenerateAuthToken(const AuthCredentials* credentials,
const HttpRequestInfo* request,
CompletionOnceCallback callback,
std::string* auth_token) { … }
bool HttpAuthHandler::NeedsIdentity() { … }
bool HttpAuthHandler::AllowsDefaultCredentials() { … }
bool HttpAuthHandler::AllowsExplicitCredentials() { … }
void HttpAuthHandler::OnGenerateAuthTokenComplete(int rv) { … }
void HttpAuthHandler::FinishGenerateAuthToken(int rv) { … }
HttpAuth::AuthorizationResult HttpAuthHandler::HandleAnotherChallenge(
HttpAuthChallengeTokenizer* challenge) { … }
}