#include "services/network/resolve_host_request.h"
#include <optional>
#include <string>
#include <utility>
#include "base/check_op.h"
#include "base/functional/bind.h"
#include "base/ranges/algorithm.h"
#include "base/strings/string_util.h"
#include "base/types/optional_util.h"
#include "net/base/host_port_pair.h"
#include "net/base/net_errors.h"
#include "net/base/url_util.h"
#include "net/log/net_log.h"
#include "net/log/net_log_with_source.h"
#include "url/url_canon.h"
namespace network {
namespace {
std::string MaybeCanonicalizeHost(std::string host) { … }
}
ResolveHostRequest::ResolveHostRequest(
net::HostResolver* resolver,
mojom::HostResolverHostPtr host,
const net::NetworkAnonymizationKey& network_anonymization_key,
const std::optional<net::HostResolver::ResolveHostParameters>&
optional_parameters,
net::NetLog* net_log) { … }
ResolveHostRequest::~ResolveHostRequest() { … }
int ResolveHostRequest::Start(
mojo::PendingReceiver<mojom::ResolveHostHandle> control_handle_receiver,
mojo::PendingRemote<mojom::ResolveHostClient> pending_response_client,
net::CompletionOnceCallback callback) { … }
void ResolveHostRequest::Cancel(int error) { … }
void ResolveHostRequest::OnComplete(int error) { … }
net::ResolveErrorInfo ResolveHostRequest::GetResolveErrorInfo() const { … }
const net::AddressList* ResolveHostRequest::GetAddressResults() const { … }
std::optional<net::HostResolverEndpointResults>
ResolveHostRequest::GetEndpointResultsWithMetadata() const { … }
void ResolveHostRequest::SignalNonAddressResults() { … }
}