#include "net/dns/context_host_resolver.h"
#include <optional>
#include <string>
#include <utility>
#include <vector>
#include "base/check_op.h"
#include "base/time/tick_clock.h"
#include "net/base/net_errors.h"
#include "net/base/network_anonymization_key.h"
#include "net/dns/dns_config.h"
#include "net/dns/host_cache.h"
#include "net/dns/host_resolver.h"
#include "net/dns/host_resolver_manager.h"
#include "net/dns/host_resolver_proc.h"
#include "net/dns/public/host_resolver_results.h"
#include "net/dns/public/resolve_error_info.h"
#include "net/dns/resolve_context.h"
#include "net/log/net_log_with_source.h"
#include "net/url_request/url_request_context.h"
#include "url/scheme_host_port.h"
namespace net {
ContextHostResolver::ContextHostResolver(
HostResolverManager* manager,
std::unique_ptr<ResolveContext> resolve_context)
: … { … }
ContextHostResolver::ContextHostResolver(
std::unique_ptr<HostResolverManager> owned_manager,
std::unique_ptr<ResolveContext> resolve_context)
: … { … }
ContextHostResolver::~ContextHostResolver() { … }
void ContextHostResolver::OnShutdown() { … }
std::unique_ptr<HostResolver::ResolveHostRequest>
ContextHostResolver::CreateRequest(
url::SchemeHostPort host,
NetworkAnonymizationKey network_anonymization_key,
NetLogWithSource source_net_log,
std::optional<ResolveHostParameters> optional_parameters) { … }
std::unique_ptr<HostResolver::ResolveHostRequest>
ContextHostResolver::CreateRequest(
const HostPortPair& host,
const NetworkAnonymizationKey& network_anonymization_key,
const NetLogWithSource& source_net_log,
const std::optional<ResolveHostParameters>& optional_parameters) { … }
std::unique_ptr<HostResolver::ServiceEndpointRequest>
ContextHostResolver::CreateServiceEndpointRequest(
Host host,
NetworkAnonymizationKey network_anonymization_key,
NetLogWithSource net_log,
ResolveHostParameters parameters) { … }
std::unique_ptr<HostResolver::ProbeRequest>
ContextHostResolver::CreateDohProbeRequest() { … }
std::unique_ptr<HostResolver::MdnsListener>
ContextHostResolver::CreateMdnsListener(const HostPortPair& host,
DnsQueryType query_type) { … }
HostCache* ContextHostResolver::GetHostCache() { … }
base::Value::Dict ContextHostResolver::GetDnsConfigAsValue() const { … }
void ContextHostResolver::SetRequestContext(
URLRequestContext* request_context) { … }
HostResolverManager* ContextHostResolver::GetManagerForTesting() { … }
const URLRequestContext* ContextHostResolver::GetContextForTesting() const { … }
handles::NetworkHandle ContextHostResolver::GetTargetNetworkForTesting() const { … }
size_t ContextHostResolver::LastRestoredCacheSize() const { … }
size_t ContextHostResolver::CacheSize() const { … }
void ContextHostResolver::SetHostResolverSystemParamsForTest(
const HostResolverSystemTask::Params& host_resolver_system_params) { … }
void ContextHostResolver::SetTickClockForTesting(
const base::TickClock* tick_clock) { … }
}