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

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: Deflaked test. Addressed memory leaks and comments. 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
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 bool DnsConfig::Equals(const DnsConfig& d) const {
20 return (nameservers == d.nameservers) &&
21 (search == d.search) &&
22 (ndots == d.ndots) &&
23 (timeout == d.timeout) &&
24 (attempts == d.attempts) &&
25 (rotate == d.rotate) &&
26 (edns0 == d.edns0);
27 }
28
29 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698