chromium/services/network/host_resolver_mdns_listener.cc

// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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() {}

}  // namespace network