You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
1013 B
29 lines
1013 B
// Copyright 2019 The Chromium Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
#ifndef DISCOVERY_MDNS_MDNS_DOMAIN_CONFIRMED_PROVIDER_H_
|
|
#define DISCOVERY_MDNS_MDNS_DOMAIN_CONFIRMED_PROVIDER_H_
|
|
|
|
#include "discovery/mdns/mdns_records.h"
|
|
|
|
namespace openscreen {
|
|
namespace discovery {
|
|
|
|
class MdnsDomainConfirmedProvider {
|
|
public:
|
|
virtual ~MdnsDomainConfirmedProvider() = default;
|
|
|
|
// Called once the probing phase has been completed, and a DomainName has
|
|
// been confirmed. The callee is expected to register records for the
|
|
// newly confirmed name in this callback. Note that the requested name and
|
|
// the confirmed name may differ if conflict resolution has occurred.
|
|
virtual void OnDomainFound(const DomainName& requested_name,
|
|
const DomainName& confirmed_name) = 0;
|
|
};
|
|
|
|
} // namespace discovery
|
|
} // namespace openscreen
|
|
|
|
#endif // DISCOVERY_MDNS_MDNS_DOMAIN_CONFIRMED_PROVIDER_H_
|