Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(119)

Side by Side Diff: net/dns/dns_config_service.cc

Issue 7518028: DnsConfigService and a posix implementation (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: CloseResState applies to OS_LINUX only Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « net/dns/dns_config_service.h ('k') | net/dns/dns_config_service_posix.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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
OLDNEW
« no previous file with comments | « net/dns/dns_config_service.h ('k') | net/dns/dns_config_service_posix.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698