#include "chrome/browser/net/dns_probe_runner.h"
#include <optional>
#include <utility>
#include "base/functional/bind.h"
#include "mojo/public/cpp/bindings/message.h"
#include "net/base/address_list.h"
#include "net/base/host_port_pair.h"
#include "net/base/net_errors.h"
#include "net/base/network_anonymization_key.h"
#include "net/dns/public/resolve_error_info.h"
#include "services/network/public/mojom/network_context.mojom.h"
namespace chrome_browser_net {
const char DnsProbeRunner::kKnownGoodHostname[] = …;
namespace {
DnsProbeRunner::Result EvaluateResponse(
int net_error,
const std::optional<net::AddressList>& resolved_addresses) { … }
}
DnsProbeRunner::DnsProbeRunner(
net::DnsConfigOverrides dns_config_overrides,
const network::NetworkContextGetter& network_context_getter)
: … { … }
DnsProbeRunner::~DnsProbeRunner() { … }
void DnsProbeRunner::RunProbe(base::OnceClosure callback) { … }
bool DnsProbeRunner::IsRunning() const { … }
void DnsProbeRunner::OnComplete(
int32_t result,
const net::ResolveErrorInfo& resolve_error_info,
const std::optional<net::AddressList>& resolved_addresses,
const std::optional<net::HostResolverEndpointResults>&
endpoint_results_with_metadata) { … }
void DnsProbeRunner::CreateHostResolver() { … }
void DnsProbeRunner::OnMojoConnectionError() { … }
}