blob: d4fca47a41bdce169d280618ff747d614b1b1cdb [file] [log] [blame]
Sergey Ulanov4593ec92019-04-09 02:06:441// 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#include "net/dns/dns_config_service_fuchsia.h"
6
7#include <memory>
8
9#include "net/dns/dns_config.h"
10#include "net/dns/dns_hosts.h"
11
12namespace net {
13namespace internal {
14
15DnsConfigServiceFuchsia::DnsConfigServiceFuchsia() = default;
16DnsConfigServiceFuchsia::~DnsConfigServiceFuchsia() = default;
17
18void DnsConfigServiceFuchsia::ReadNow() {
19 // TODO(crbug.com/950717): Implement this method.
20 OnConfigRead(DnsConfig());
21 OnHostsRead(DnsHosts());
22}
23
24bool DnsConfigServiceFuchsia::StartWatching() {
25 // TODO(crbug.com/950717): Implement this method.
26 return false;
27}
28
29} // namespace internal
30
31// static
32std::unique_ptr<DnsConfigService> DnsConfigService::CreateSystemService() {
33 return std::make_unique<internal::DnsConfigServiceFuchsia>();
34}
35
36} // namespace net