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

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

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/host_resolver_impl_unittest.cc ('k') | net/dns/mapped_host_resolver.cc » ('j') | 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 #ifndef NET_DNS_MAPPED_HOST_RESOLVER_H_ 5 #ifndef NET_DNS_MAPPED_HOST_RESOLVER_H_
6 #define NET_DNS_MAPPED_HOST_RESOLVER_H_ 6 #define NET_DNS_MAPPED_HOST_RESOLVER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 // HostResolver methods: 47 // HostResolver methods:
48 virtual int Resolve(const RequestInfo& info, 48 virtual int Resolve(const RequestInfo& info,
49 AddressList* addresses, 49 AddressList* addresses,
50 const CompletionCallback& callback, 50 const CompletionCallback& callback,
51 RequestHandle* out_req, 51 RequestHandle* out_req,
52 const BoundNetLog& net_log) OVERRIDE; 52 const BoundNetLog& net_log) OVERRIDE;
53 virtual int ResolveFromCache(const RequestInfo& info, 53 virtual int ResolveFromCache(const RequestInfo& info,
54 AddressList* addresses, 54 AddressList* addresses,
55 const BoundNetLog& net_log) OVERRIDE; 55 const BoundNetLog& net_log) OVERRIDE;
56 virtual void CancelRequest(RequestHandle req) OVERRIDE; 56 virtual void CancelRequest(RequestHandle req) OVERRIDE;
57 virtual void ProbeIPv6Support() OVERRIDE;
58 virtual HostCache* GetHostCache() OVERRIDE; 57 virtual HostCache* GetHostCache() OVERRIDE;
59 58
60 private: 59 private:
61 // Modify the request |info| according to |rules_|. Returns either OK or 60 // Modify the request |info| according to |rules_|. Returns either OK or
62 // the network error code that the hostname's resolution mapped to. 61 // the network error code that the hostname's resolution mapped to.
63 int ApplyRules(RequestInfo* info) const; 62 int ApplyRules(RequestInfo* info) const;
64 63
65 scoped_ptr<HostResolver> impl_; 64 scoped_ptr<HostResolver> impl_;
66 65
67 HostMappingRules rules_; 66 HostMappingRules rules_;
68 }; 67 };
69 68
70 } // namespace net 69 } // namespace net
71 70
72 #endif // NET_DNS_MAPPED_HOST_RESOLVER_H_ 71 #endif // NET_DNS_MAPPED_HOST_RESOLVER_H_
OLDNEW
« no previous file with comments | « net/dns/host_resolver_impl_unittest.cc ('k') | net/dns/mapped_host_resolver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698