#include "services/network/mojo_host_resolver_impl.h"
#include <utility>
#include <vector>
#include "base/functional/bind.h"
#include "base/logging.h"
#include "base/memory/raw_ptr.h"
#include "mojo/public/cpp/bindings/remote.h"
#include "net/base/address_list.h"
#include "net/base/host_port_pair.h"
#include "net/base/ip_address.h"
#include "net/base/net_errors.h"
#include "net/base/network_anonymization_key.h"
#include "net/dns/host_resolver.h"
#include "net/dns/public/dns_query_type.h"
namespace network {
class MojoHostResolverImpl::Job { … };
MojoHostResolverImpl::MojoHostResolverImpl(net::HostResolver* resolver,
const net::NetLogWithSource& net_log)
: … { … }
MojoHostResolverImpl::~MojoHostResolverImpl() { … }
void MojoHostResolverImpl::Resolve(
const std::string& hostname,
const net::NetworkAnonymizationKey& network_anonymization_key,
bool is_ex,
mojo::PendingRemote<proxy_resolver::mojom::HostResolverRequestClient>
client) { … }
void MojoHostResolverImpl::DeleteJob(std::list<Job>::iterator job) { … }
MojoHostResolverImpl::Job::Job(
MojoHostResolverImpl* resolver_service,
net::HostResolver* resolver,
const std::string& hostname,
const net::NetworkAnonymizationKey& network_anonymization_key,
bool is_ex,
const net::NetLogWithSource& net_log,
mojo::PendingRemote<proxy_resolver::mojom::HostResolverRequestClient>
client)
: … { … }
void MojoHostResolverImpl::Job::Start() { … }
MojoHostResolverImpl::Job::~Job() = default;
void MojoHostResolverImpl::Job::OnResolveDone(int result) { … }
void MojoHostResolverImpl::Job::OnMojoDisconnect() { … }
}