#include "chrome/browser/predictors/resolve_host_client_impl.h"
#include <utility>
#include "base/functional/bind.h"
#include "base/metrics/histogram_macros.h"
#include "base/task/common/task_annotator.h"
#include "content/public/browser/browser_task_traits.h"
#include "content/public/browser/browser_thread.h"
#include "net/base/host_port_pair.h"
#include "net/base/net_errors.h"
#include "net/base/network_isolation_key.h"
#include "net/base/request_priority.h"
#include "net/dns/public/resolve_error_info.h"
#include "services/network/public/mojom/network_context.mojom.h"
#include "url/gurl.h"
#include "url/scheme_host_port.h"
namespace predictors {
ResolveHostClientImpl::ResolveHostClientImpl(
const GURL& url,
const net::NetworkAnonymizationKey& network_anonymization_key,
ResolveHostCallback callback,
network::mojom::NetworkContext* network_context)
: … { … }
ResolveHostClientImpl::~ResolveHostClientImpl() = default;
void ResolveHostClientImpl::OnComplete(
int result,
const net::ResolveErrorInfo& resolve_error_info,
const std::optional<net::AddressList>& resolved_addresses,
const std::optional<net::HostResolverEndpointResults>&
endpoint_results_with_metadata) { … }
void ResolveHostClientImpl::OnConnectionError() { … }
}