diff options
author | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-16 18:58:29 +0000 |
---|---|---|
committer | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-16 18:58:29 +0000 |
commit | aa22b24e681201499f9dc82c3d62d66e682bf118 (patch) | |
tree | 0760db471972868a35219a2fd28a0a733cfac2d8 /net/socket/socks_client_socket.cc | |
parent | 66ad7faacf401592f814b73ec8d670a552f4c61e (diff) | |
download | chromium_src-aa22b24e681201499f9dc82c3d62d66e682bf118.zip chromium_src-aa22b24e681201499f9dc82c3d62d66e682bf118.tar.gz chromium_src-aa22b24e681201499f9dc82c3d62d66e682bf118.tar.bz2 |
base::Bind: Convert HostResolver::Resolve.
BUG=none
TEST=none
R=willchan@chromium.org
Review URL: http://codereview.chromium.org/8549004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110333 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/socket/socks_client_socket.cc')
-rw-r--r-- | net/socket/socks_client_socket.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/net/socket/socks_client_socket.cc b/net/socket/socks_client_socket.cc index d05f1f9..3ce723e 100644 --- a/net/socket/socks_client_socket.cc +++ b/net/socket/socks_client_socket.cc @@ -5,6 +5,7 @@ #include "net/socket/socks_client_socket.h" #include "base/basictypes.h" +#include "base/bind.h" #include "base/compiler_specific.h" #include "net/base/io_buffer.h" #include "net/base/net_log.h" @@ -280,7 +281,9 @@ int SOCKSClientSocket::DoResolveHost() { // addresses for the target host. host_request_info_.set_address_family(ADDRESS_FAMILY_IPV4); return host_resolver_.Resolve( - host_request_info_, &addresses_, &io_callback_, net_log_); + host_request_info_, &addresses_, + base::Bind(&SOCKSClientSocket::OnIOComplete, base::Unretained(this)), + net_log_); } int SOCKSClientSocket::DoResolveHostComplete(int result) { |