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

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

Issue 14208010: [net/dns] Add test DualFamilyLocalhost and fix it when DnsClient enabled. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: test only IPv4 loopback Created 7 years, 8 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') | 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 #ifndef NET_DNS_HOST_RESOLVER_PROC_H_ 5 #ifndef NET_DNS_HOST_RESOLVER_PROC_H_
6 #define NET_DNS_HOST_RESOLVER_PROC_H_ 6 #define NET_DNS_HOST_RESOLVER_PROC_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 // network error code, and fills |os_error| with a more specific error if it 85 // network error code, and fills |os_error| with a more specific error if it
86 // was non-NULL. 86 // was non-NULL.
87 NET_EXPORT_PRIVATE int SystemHostResolverCall( 87 NET_EXPORT_PRIVATE int SystemHostResolverCall(
88 const std::string& host, 88 const std::string& host,
89 AddressFamily address_family, 89 AddressFamily address_family,
90 HostResolverFlags host_resolver_flags, 90 HostResolverFlags host_resolver_flags,
91 AddressList* addrlist, 91 AddressList* addrlist,
92 int* os_error); 92 int* os_error);
93 93
94 // Wraps call to SystemHostResolverCall as an instance of HostResolverProc. 94 // Wraps call to SystemHostResolverCall as an instance of HostResolverProc.
95 class SystemHostResolverProc : public HostResolverProc { 95 class NET_EXPORT_PRIVATE SystemHostResolverProc : public HostResolverProc {
96 public: 96 public:
97 SystemHostResolverProc(); 97 SystemHostResolverProc();
98 virtual int Resolve(const std::string& hostname, 98 virtual int Resolve(const std::string& hostname,
99 AddressFamily address_family, 99 AddressFamily address_family,
100 HostResolverFlags host_resolver_flags, 100 HostResolverFlags host_resolver_flags,
101 AddressList* addr_list, 101 AddressList* addr_list,
102 int* os_error) OVERRIDE; 102 int* os_error) OVERRIDE;
103 protected: 103 protected:
104 virtual ~SystemHostResolverProc(); 104 virtual ~SystemHostResolverProc();
105 105
106 DISALLOW_COPY_AND_ASSIGN(SystemHostResolverProc); 106 DISALLOW_COPY_AND_ASSIGN(SystemHostResolverProc);
107 }; 107 };
108 108
109 } // namespace net 109 } // namespace net
110 110
111 #endif // NET_DNS_HOST_RESOLVER_PROC_H_ 111 #endif // NET_DNS_HOST_RESOLVER_PROC_H_
OLDNEW
« no previous file with comments | « net/dns/host_resolver_impl_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698