blob: 740f342c52475bcdb9eccf5532f9e3cf62a49f9c [file] [log] [blame]
Avi Drissman64595482022-09-14 20:52:291// Copyright 2019 The Chromium Authors
Sergey Ulanov4593ec92019-04-09 02:06:442// 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
Eric Orth1f249872021-01-14 00:02:399#include "base/files/file_path.h"
Sergey Ulanov4593ec92019-04-09 02:06:4410#include "net/dns/dns_config.h"
11#include "net/dns/dns_hosts.h"
12
13namespace net {
14namespace internal {
15
Eric Orth1f249872021-01-14 00:02:3916DnsConfigServiceFuchsia::DnsConfigServiceFuchsia()
17 : DnsConfigService(
18 base::FilePath::StringPieceType() /* hosts_file_path */) {}
Sergey Ulanov4593ec92019-04-09 02:06:4419DnsConfigServiceFuchsia::~DnsConfigServiceFuchsia() = default;
20
Eric Orthf9753212021-01-12 17:39:5621void DnsConfigServiceFuchsia::ReadConfigNow() {
22 // TODO(crbug.com/950717): Implement this method.
23}
24
25void DnsConfigServiceFuchsia::ReadHostsNow() {
Sergey Ulanov4593ec92019-04-09 02:06:4426 // TODO(crbug.com/950717): Implement this method.
Sergey Ulanov4593ec92019-04-09 02:06:4427}
28
29bool DnsConfigServiceFuchsia::StartWatching() {
30 // TODO(crbug.com/950717): Implement this method.
31 return false;
32}
33
34} // namespace internal
35
36// static
37std::unique_ptr<DnsConfigService> DnsConfigService::CreateSystemService() {
38 return std::make_unique<internal::DnsConfigServiceFuchsia>();
39}
40
Bence Békyb7bf2ad2019-04-22 14:16:0141} // namespace net