#include "services/network/host_resolver_mdns_listener.h"
#include <utility>
#include "base/functional/bind.h"
#include "base/functional/callback.h"
#include "net/base/host_port_pair.h"
#include "net/dns/host_resolver.h"
#include "net/dns/public/mdns_listener_update_type.h"
namespace network {
HostResolverMdnsListener::HostResolverMdnsListener(
net::HostResolver* resolver,
const net::HostPortPair& host,
net::DnsQueryType query_type) { … }
HostResolverMdnsListener::~HostResolverMdnsListener() { … }
int HostResolverMdnsListener::Start(
mojo::PendingRemote<mojom::MdnsListenClient> response_client,
base::OnceClosure cancellation_callback) { … }
void HostResolverMdnsListener::OnAddressResult(
net::MdnsListenerUpdateType update_type,
net::DnsQueryType query_type,
net::IPEndPoint address) { … }
void HostResolverMdnsListener::OnTextResult(
net::MdnsListenerUpdateType update_type,
net::DnsQueryType query_type,
std::vector<std::string> text_records) { … }
void HostResolverMdnsListener::OnHostnameResult(
net::MdnsListenerUpdateType update_type,
net::DnsQueryType query_type,
net::HostPortPair host) { … }
void HostResolverMdnsListener::OnUnhandledResult(
net::MdnsListenerUpdateType update_type,
net::DnsQueryType query_type) { … }
void HostResolverMdnsListener::OnConnectionError() { … }
}