• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2019 The Chromium Authors
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 "base/files/file_path.h"
10 #include "net/dns/dns_config.h"
11 #include "net/dns/dns_hosts.h"
12 
13 namespace net {
14 namespace internal {
15 
DnsConfigServiceFuchsia()16 DnsConfigServiceFuchsia::DnsConfigServiceFuchsia()
17     : DnsConfigService(
18           base::FilePath::StringPieceType() /* hosts_file_path */) {}
19 DnsConfigServiceFuchsia::~DnsConfigServiceFuchsia() = default;
20 
ReadConfigNow()21 void DnsConfigServiceFuchsia::ReadConfigNow() {
22   // TODO(crbug.com/950717): Implement this method.
23 }
24 
ReadHostsNow()25 void DnsConfigServiceFuchsia::ReadHostsNow() {
26   // TODO(crbug.com/950717): Implement this method.
27 }
28 
StartWatching()29 bool DnsConfigServiceFuchsia::StartWatching() {
30   // TODO(crbug.com/950717): Implement this method.
31   return false;
32 }
33 
34 }  // namespace internal
35 
36 // static
CreateSystemService()37 std::unique_ptr<DnsConfigService> DnsConfigService::CreateSystemService() {
38   return std::make_unique<internal::DnsConfigServiceFuchsia>();
39 }
40 
41 }  // namespace net
42