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

Unified 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/dns/host_resolver_proc.h
diff --git a/net/dns/host_resolver_proc.h b/net/dns/host_resolver_proc.h
index b4fc0faa0e8f45c62961a7bece0612f637f851bf..ee8777f44bf95c24b8244a89ef0a6e1af60c67cb 100644
--- a/net/dns/host_resolver_proc.h
+++ b/net/dns/host_resolver_proc.h
@@ -84,13 +84,28 @@ class NET_EXPORT HostResolverProc
// |addrlist| with a list of socket addresses. Otherwise returns a
// network error code, and fills |os_error| with a more specific error if it
// was non-NULL.
-NET_EXPORT_PRIVATE int SystemHostResolverProc(
+NET_EXPORT_PRIVATE int SystemHostResolverCall(
const std::string& host,
AddressFamily address_family,
HostResolverFlags host_resolver_flags,
AddressList* addrlist,
int* os_error);
+// Wraps call to SystemHostResolverCall as an instance of HostResolverProc.
+class SystemHostResolverProc : public HostResolverProc {
+ public:
+ SystemHostResolverProc();
+ virtual int Resolve(const std::string& hostname,
+ AddressFamily address_family,
+ HostResolverFlags host_resolver_flags,
+ AddressList* addr_list,
+ int* os_error) OVERRIDE;
+ protected:
+ virtual ~SystemHostResolverProc();
+
+ DISALLOW_COPY_AND_ASSIGN(SystemHostResolverProc);
+};
+
} // namespace net
#endif // NET_DNS_HOST_RESOLVER_PROC_H_
« 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