1 // Copyright 2019 The Chromium Authors 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 NET_DNS_DNS_CONFIG_SERVICE_FUCHSIA_H_ 6 #define NET_DNS_DNS_CONFIG_SERVICE_FUCHSIA_H_ 7 8 #include "net/dns/dns_config_service.h" 9 10 namespace net { 11 namespace internal { 12 13 // DnsConfigService implementation for Fuchsia. Currently is a stub that returns 14 // an empty config (which means DNS resolver always falls back to 15 // getaddrinfo()). 16 class NET_EXPORT_PRIVATE DnsConfigServiceFuchsia : public DnsConfigService { 17 public: 18 DnsConfigServiceFuchsia(); 19 20 DnsConfigServiceFuchsia(const DnsConfigServiceFuchsia&) = delete; 21 DnsConfigServiceFuchsia& operator=(const DnsConfigServiceFuchsia&) = delete; 22 23 ~DnsConfigServiceFuchsia() override; 24 25 protected: 26 // DnsConfigService overrides. 27 void ReadConfigNow() override; 28 void ReadHostsNow() override; 29 bool StartWatching() override; 30 }; 31 32 } // namespace internal 33 } // namespace net 34 35 #endif // NET_DNS_DNS_CONFIG_SERVICE_FUCHSIA_H_ 36