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

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

Issue 19286002: Remove interface probing for IPv6 support from HostResolverImpl (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Make --enable-ipv6 disable probing. Created 7 years, 5 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/mapped_host_resolver.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/mapped_host_resolver.h" 5 #include "net/dns/mapped_host_resolver.h"
6 6
7 #include "base/strings/string_util.h" 7 #include "base/strings/string_util.h"
8 #include "net/base/host_port_pair.h" 8 #include "net/base/host_port_pair.h"
9 #include "net/base/net_errors.h" 9 #include "net/base/net_errors.h"
10 #include "net/base/net_util.h" 10 #include "net/base/net_util.h"
(...skipping 28 matching lines...) Expand all
39 if (rv != OK) 39 if (rv != OK)
40 return rv; 40 return rv;
41 41
42 return impl_->ResolveFromCache(info, addresses, net_log); 42 return impl_->ResolveFromCache(info, addresses, net_log);
43 } 43 }
44 44
45 void MappedHostResolver::CancelRequest(RequestHandle req) { 45 void MappedHostResolver::CancelRequest(RequestHandle req) {
46 impl_->CancelRequest(req); 46 impl_->CancelRequest(req);
47 } 47 }
48 48
49 void MappedHostResolver::ProbeIPv6Support() {
50 impl_->ProbeIPv6Support();
51 }
52
53 HostCache* MappedHostResolver::GetHostCache() { 49 HostCache* MappedHostResolver::GetHostCache() {
54 return impl_->GetHostCache(); 50 return impl_->GetHostCache();
55 } 51 }
56 52
57 int MappedHostResolver::ApplyRules(RequestInfo* info) const { 53 int MappedHostResolver::ApplyRules(RequestInfo* info) const {
58 HostPortPair host_port(info->host_port_pair()); 54 HostPortPair host_port(info->host_port_pair());
59 if (rules_.RewriteHost(&host_port)) { 55 if (rules_.RewriteHost(&host_port)) {
60 if (host_port.host() == "~NOTFOUND") 56 if (host_port.host() == "~NOTFOUND")
61 return ERR_NAME_NOT_RESOLVED; 57 return ERR_NAME_NOT_RESOLVED;
62 info->set_host_port_pair(host_port); 58 info->set_host_port_pair(host_port);
63 } 59 }
64 return OK; 60 return OK;
65 } 61 }
66 62
67 } // namespace net 63 } // namespace net
OLDNEW
« no previous file with comments | « net/dns/mapped_host_resolver.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698