| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "net/dns/host_resolver.h" | 5 #include "net/dns/host_resolver.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/memory/ptr_util.h" | 8 #include "base/memory/ptr_util.h" |
| 9 #include "base/metrics/field_trial.h" | 9 #include "base/metrics/field_trial.h" |
| 10 #include "base/strings/string_number_conversions.h" | 10 #include "base/strings/string_number_conversions.h" |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 std::unique_ptr<const base::Value> old_data) {} | 133 std::unique_ptr<const base::Value> old_data) {} |
| 134 | 134 |
| 135 void HostResolver::SetDefaultAddressFamily(AddressFamily address_family) { | 135 void HostResolver::SetDefaultAddressFamily(AddressFamily address_family) { |
| 136 NOTREACHED(); | 136 NOTREACHED(); |
| 137 } | 137 } |
| 138 | 138 |
| 139 AddressFamily HostResolver::GetDefaultAddressFamily() const { | 139 AddressFamily HostResolver::GetDefaultAddressFamily() const { |
| 140 return ADDRESS_FAMILY_UNSPECIFIED; | 140 return ADDRESS_FAMILY_UNSPECIFIED; |
| 141 } | 141 } |
| 142 | 142 |
| 143 void HostResolver::SetNoIPv6OnWifi() { |
| 144 NOTREACHED(); |
| 145 } |
| 146 |
| 147 bool HostResolver::GetNoIPv6OnWifi() { |
| 148 return false; |
| 149 } |
| 150 |
| 143 // static | 151 // static |
| 144 std::unique_ptr<HostResolver> HostResolver::CreateSystemResolver( | 152 std::unique_ptr<HostResolver> HostResolver::CreateSystemResolver( |
| 145 const Options& options, | 153 const Options& options, |
| 146 NetLog* net_log) { | 154 NetLog* net_log) { |
| 147 return std::unique_ptr<HostResolver>( | 155 return std::unique_ptr<HostResolver>( |
| 148 CreateSystemResolverImpl(options, net_log).release()); | 156 CreateSystemResolverImpl(options, net_log).release()); |
| 149 } | 157 } |
| 150 | 158 |
| 151 // static | 159 // static |
| 152 std::unique_ptr<HostResolverImpl> HostResolver::CreateSystemResolverImpl( | 160 std::unique_ptr<HostResolverImpl> HostResolver::CreateSystemResolverImpl( |
| (...skipping 10 matching lines...) Expand all Loading... |
| 163 | 171 |
| 164 // static | 172 // static |
| 165 std::unique_ptr<HostResolverImpl> HostResolver::CreateDefaultResolverImpl( | 173 std::unique_ptr<HostResolverImpl> HostResolver::CreateDefaultResolverImpl( |
| 166 NetLog* net_log) { | 174 NetLog* net_log) { |
| 167 return CreateSystemResolverImpl(Options(), net_log); | 175 return CreateSystemResolverImpl(Options(), net_log); |
| 168 } | 176 } |
| 169 | 177 |
| 170 HostResolver::HostResolver() {} | 178 HostResolver::HostResolver() {} |
| 171 | 179 |
| 172 } // namespace net | 180 } // namespace net |
| OLD | NEW |