Avi Drissman | 6459548 | 2022-09-14 20:52:29 | [diff] [blame] | 1 | // Copyright 2019 The Chromium Authors |
Sergey Ulanov | 4593ec9 | 2019-04-09 02:06:44 | [diff] [blame] | 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 | |
Eric Orth | 1f24987 | 2021-01-14 00:02:39 | [diff] [blame] | 9 | #include "base/files/file_path.h" |
Sergey Ulanov | 4593ec9 | 2019-04-09 02:06:44 | [diff] [blame] | 10 | #include "net/dns/dns_config.h" |
| 11 | #include "net/dns/dns_hosts.h" |
| 12 | |
| 13 | namespace net { |
| 14 | namespace internal { |
| 15 | |
Eric Orth | 1f24987 | 2021-01-14 00:02:39 | [diff] [blame] | 16 | DnsConfigServiceFuchsia::DnsConfigServiceFuchsia() |
| 17 | : DnsConfigService( |
| 18 | base::FilePath::StringPieceType() /* hosts_file_path */) {} |
Sergey Ulanov | 4593ec9 | 2019-04-09 02:06:44 | [diff] [blame] | 19 | DnsConfigServiceFuchsia::~DnsConfigServiceFuchsia() = default; |
| 20 | |
Eric Orth | f975321 | 2021-01-12 17:39:56 | [diff] [blame] | 21 | void DnsConfigServiceFuchsia::ReadConfigNow() { |
| 22 | // TODO(crbug.com/950717): Implement this method. |
| 23 | } |
| 24 | |
| 25 | void DnsConfigServiceFuchsia::ReadHostsNow() { |
Sergey Ulanov | 4593ec9 | 2019-04-09 02:06:44 | [diff] [blame] | 26 | // TODO(crbug.com/950717): Implement this method. |
Sergey Ulanov | 4593ec9 | 2019-04-09 02:06:44 | [diff] [blame] | 27 | } |
| 28 | |
| 29 | bool DnsConfigServiceFuchsia::StartWatching() { |
| 30 | // TODO(crbug.com/950717): Implement this method. |
| 31 | return false; |
| 32 | } |
| 33 | |
| 34 | } // namespace internal |
| 35 | |
| 36 | // static |
| 37 | std::unique_ptr<DnsConfigService> DnsConfigService::CreateSystemService() { |
| 38 | return std::make_unique<internal::DnsConfigServiceFuchsia>(); |
| 39 | } |
| 40 | |
Bence Béky | b7bf2ad | 2019-04-22 14:16:01 | [diff] [blame] | 41 | } // namespace net |