#include "net/dns/dns_server_iterator.h"
#include <optional>
#include "base/time/time.h"
#include "net/dns/dns_session.h"
#include "net/dns/resolve_context.h"
namespace net {
DnsServerIterator::DnsServerIterator(size_t nameservers_size,
size_t starting_index,
int max_times_returned,
int max_failures,
const ResolveContext* resolve_context,
const DnsSession* session)
: … { … }
DnsServerIterator::~DnsServerIterator() = default;
size_t DohDnsServerIterator::GetNextAttemptIndex() { … }
bool DohDnsServerIterator::AttemptAvailable() { … }
size_t ClassicDnsServerIterator::GetNextAttemptIndex() { … }
bool ClassicDnsServerIterator::AttemptAvailable() { … }
}