#include "net/dns/host_resolver_mdns_listener_impl.h"
#include "base/check_op.h"
#include "base/notreached.h"
#include "net/base/host_port_pair.h"
#include "net/dns/host_cache.h"
#include "net/dns/host_resolver_mdns_task.h"
#include "net/dns/public/mdns_listener_update_type.h"
#include "net/dns/record_parsed.h"
namespace net {
namespace {
MdnsListenerUpdateType ConvertUpdateType(net::MDnsListener::UpdateType type) { … }
}
HostResolverMdnsListenerImpl::HostResolverMdnsListenerImpl(
const HostPortPair& query_host,
DnsQueryType query_type)
: … { … }
HostResolverMdnsListenerImpl::~HostResolverMdnsListenerImpl() { … }
int HostResolverMdnsListenerImpl::Start(Delegate* delegate) { … }
void HostResolverMdnsListenerImpl::OnRecordUpdate(
net::MDnsListener::UpdateType update,
const RecordParsed* record) { … }
void HostResolverMdnsListenerImpl::OnNsecRecord(const std::string& name,
unsigned type) { … }
void HostResolverMdnsListenerImpl::OnCachePurged() { … }
}