#include "net/dns/host_resolver_proc.h"
#include <tuple>
#include "base/check.h"
#include "base/memory/scoped_refptr.h"
#include "base/notreached.h"
#include "build/build_config.h"
#include "net/base/address_family.h"
#include "net/base/address_list.h"
#include "net/base/net_errors.h"
#include "net/dns/host_resolver_system_task.h"
#if BUILDFLAG(IS_OPENBSD)
#define AI_ADDRCONFIG …
#endif
namespace net {
HostResolverProc* HostResolverProc::default_proc_ = …;
HostResolverProc::HostResolverProc(scoped_refptr<HostResolverProc> previous,
bool allow_fallback_to_system_or_default)
: … { … }
HostResolverProc::~HostResolverProc() = default;
int HostResolverProc::Resolve(const std::string& host,
AddressFamily address_family,
HostResolverFlags host_resolver_flags,
AddressList* addrlist,
int* os_error,
handles::NetworkHandle network) { … }
int HostResolverProc::ResolveUsingPrevious(
const std::string& host,
AddressFamily address_family,
HostResolverFlags host_resolver_flags,
AddressList* addrlist,
int* os_error) { … }
void HostResolverProc::SetPreviousProc(scoped_refptr<HostResolverProc> proc) { … }
void HostResolverProc::SetLastProc(scoped_refptr<HostResolverProc> proc) { … }
HostResolverProc* HostResolverProc::GetLastProc(HostResolverProc* proc) { … }
HostResolverProc* HostResolverProc::SetDefault(HostResolverProc* proc) { … }
HostResolverProc* HostResolverProc::GetDefault() { … }
}