• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2019 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #ifndef DISCOVERY_MDNS_MDNS_DOMAIN_CONFIRMED_PROVIDER_H_
6 #define DISCOVERY_MDNS_MDNS_DOMAIN_CONFIRMED_PROVIDER_H_
7 
8 #include "discovery/mdns/mdns_records.h"
9 
10 namespace openscreen {
11 namespace discovery {
12 
13 class MdnsDomainConfirmedProvider {
14  public:
15   virtual ~MdnsDomainConfirmedProvider() = default;
16 
17   // Called once the probing phase has been completed, and a DomainName has
18   // been confirmed. The callee is expected to register records for the
19   // newly confirmed name in this callback. Note that the requested name and
20   // the confirmed name may differ if conflict resolution has occurred.
21   virtual void OnDomainFound(const DomainName& requested_name,
22                              const DomainName& confirmed_name) = 0;
23 };
24 
25 }  // namespace discovery
26 }  // namespace openscreen
27 
28 #endif  // DISCOVERY_MDNS_MDNS_DOMAIN_CONFIRMED_PROVIDER_H_
29