#include "net/dns/mapped_host_resolver.h"
#include <optional>
#include <string>
#include <utility>
#include "base/notimplemented.h"
#include "base/strings/string_util.h"
#include "base/values.h"
#include "net/base/host_port_pair.h"
#include "net/base/net_errors.h"
#include "net/base/network_anonymization_key.h"
#include "net/base/url_util.h"
#include "net/dns/host_resolver.h"
#include "net/log/net_log_with_source.h"
#include "url/gurl.h"
#include "url/scheme_host_port.h"
#include "url/url_canon.h"
namespace net {
MappedHostResolver::MappedHostResolver(std::unique_ptr<HostResolver> impl)
: … { … }
MappedHostResolver::~MappedHostResolver() = default;
void MappedHostResolver::OnShutdown() { … }
std::unique_ptr<HostResolver::ResolveHostRequest>
MappedHostResolver::CreateRequest(
url::SchemeHostPort host,
NetworkAnonymizationKey network_anonymization_key,
NetLogWithSource source_net_log,
std::optional<ResolveHostParameters> optional_parameters) { … }
std::unique_ptr<HostResolver::ResolveHostRequest>
MappedHostResolver::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>
MappedHostResolver::CreateServiceEndpointRequest(
Host host,
NetworkAnonymizationKey network_anonymization_key,
NetLogWithSource net_log,
ResolveHostParameters parameters) { … }
std::unique_ptr<HostResolver::ProbeRequest>
MappedHostResolver::CreateDohProbeRequest() { … }
HostCache* MappedHostResolver::GetHostCache() { … }
base::Value::Dict MappedHostResolver::GetDnsConfigAsValue() const { … }
void MappedHostResolver::SetRequestContext(URLRequestContext* request_context) { … }
HostResolverManager* MappedHostResolver::GetManagerForTesting() { … }
}