Index: net/dns/dns_config_service.cc |
diff --git a/net/dns/dns_config_service.cc b/net/dns/dns_config_service.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..f32f293f83c7045c5edfcff9ca740f598b38bdfa |
--- /dev/null |
+++ b/net/dns/dns_config_service.cc |
@@ -0,0 +1,32 @@ |
+// Copyright (c) 2011 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#include "net/dns/dns_config_service.h" |
+ |
+#include "net/base/ip_endpoint.h" |
+ |
+namespace net { |
+ |
+// Default values are taken from glibc resolv.h. |
+DnsConfig::DnsConfig() |
+ : ndots(1), |
+ timeout(base::TimeDelta::FromSeconds(5)), |
+ attempts(2), |
+ rotate(false), |
+ edns0(false) {} |
+ |
+DnsConfig::~DnsConfig() {} |
+ |
+bool DnsConfig::Equals(const DnsConfig& d) const { |
+ return (nameservers == d.nameservers) && |
+ (search == d.search) && |
+ (ndots == d.ndots) && |
+ (timeout == d.timeout) && |
+ (attempts == d.attempts) && |
+ (rotate == d.rotate) && |
+ (edns0 == d.edns0); |
+} |
+ |
+} // namespace net |
+ |