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

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

Issue 13890003: [net/dns] Rename SystemHostResolverProc and CallSystemHostResolverProc. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync 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') | net/dns/host_resolver_proc.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_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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 static HostResolverProc* default_proc_; 77 static HostResolverProc* default_proc_;
78 78
79 DISALLOW_COPY_AND_ASSIGN(HostResolverProc); 79 DISALLOW_COPY_AND_ASSIGN(HostResolverProc);
80 }; 80 };
81 81
82 // Resolves |host| to an address list, using the system's default host resolver. 82 // Resolves |host| to an address list, using the system's default host resolver.
83 // (i.e. this calls out to getaddrinfo()). If successful returns OK and fills 83 // (i.e. this calls out to getaddrinfo()). If successful returns OK and fills
84 // |addrlist| with a list of socket addresses. Otherwise returns a 84 // |addrlist| with a list of socket addresses. Otherwise returns a
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 SystemHostResolverProc( 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.
95 class SystemHostResolverProc : public HostResolverProc {
96 public:
97 SystemHostResolverProc();
98 virtual int Resolve(const std::string& hostname,
99 AddressFamily address_family,
100 HostResolverFlags host_resolver_flags,
101 AddressList* addr_list,
102 int* os_error) OVERRIDE;
103 protected:
104 virtual ~SystemHostResolverProc();
105
106 DISALLOW_COPY_AND_ASSIGN(SystemHostResolverProc);
107 };
108
94 } // namespace net 109 } // namespace net
95 110
96 #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') | net/dns/host_resolver_proc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698