OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2011 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.h" |
| 6 |
| 7 #include "net/base/ip_endpoint.h" |
| 8 |
| 9 namespace net { |
| 10 |
| 11 // Default values are taken from glibc resolv.h. |
| 12 DnsConfig::DnsConfig() |
| 13 : ndots(1), |
| 14 timeout(base::TimeDelta::FromSeconds(5)), |
| 15 attempts(2), |
| 16 rotate(false), |
| 17 edns0(false) {} |
| 18 |
| 19 DnsConfig::~DnsConfig() {} |
| 20 |
| 21 bool DnsConfig::Equals(const DnsConfig& d) const { |
| 22 return (nameservers == d.nameservers) && |
| 23 (search == d.search) && |
| 24 (ndots == d.ndots) && |
| 25 (timeout == d.timeout) && |
| 26 (attempts == d.attempts) && |
| 27 (rotate == d.rotate) && |
| 28 (edns0 == d.edns0); |
| 29 } |
| 30 |
| 31 } // namespace net |
| 32 |
OLD | NEW |