dns_config_service_fuchsia.h 1.0 KB

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