blob: dfab56da7eba5064d0c5ca55ca0e3d1277eb6441 [file] [log] [blame]
// 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.
#ifndef NET_DNS_DNS_CONFIG_SERVICE_FUCHSIA_H_
#define NET_DNS_DNS_CONFIG_SERVICE_FUCHSIA_H_
#include "net/dns/dns_config_service.h"
namespace net {
namespace internal {
// DnsConfigService implementation for Fuchsia. Currently is a stub that returns
// an empty config (which means DNS resolver always falls back to
// getaddrinfo()).
class NET_EXPORT_PRIVATE DnsConfigServiceFuchsia : public DnsConfigService {
public:
DnsConfigServiceFuchsia();
DnsConfigServiceFuchsia(const DnsConfigServiceFuchsia&) = delete;
DnsConfigServiceFuchsia& operator=(const DnsConfigServiceFuchsia&) = delete;
~DnsConfigServiceFuchsia() override;
protected:
// DnsConfigService overrides.
void ReadConfigNow() override;
void ReadHostsNow() override;
bool StartWatching() override;
};
} // namespace internal
} // namespace net
#endif // NET_DNS_DNS_CONFIG_SERVICE_FUCHSIA_H_