diff options
author | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-20 23:22:41 +0000 |
---|---|---|
committer | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-20 23:22:41 +0000 |
commit | 49639fa94a527376c0e9b93d4c54c1b8c835c041 (patch) | |
tree | dd03b9fd758c7b19b25e9934f9de9def738cdc33 /net/http/http_proxy_client_socket_pool.cc | |
parent | 5fc2429ede8409759abf8d0c23ef5076e8e31fcf (diff) | |
download | chromium_src-49639fa94a527376c0e9b93d4c54c1b8c835c041.zip chromium_src-49639fa94a527376c0e9b93d4c54c1b8c835c041.tar.gz chromium_src-49639fa94a527376c0e9b93d4c54c1b8c835c041.tar.bz2 |
base::Bind: Convert most of net/http.
BUG=none
TEST=none
R=csilv
Review URL: http://codereview.chromium.org/8990001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@115220 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http/http_proxy_client_socket_pool.cc')
-rw-r--r-- | net/http/http_proxy_client_socket_pool.cc | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/net/http/http_proxy_client_socket_pool.cc b/net/http/http_proxy_client_socket_pool.cc index a353b2c..c9831c3 100644 --- a/net/http/http_proxy_client_socket_pool.cc +++ b/net/http/http_proxy_client_socket_pool.cc @@ -86,8 +86,6 @@ HttpProxyConnectJob::HttpProxyConnectJob( ALLOW_THIS_IN_INITIALIZER_LIST( callback_(base::Bind(&HttpProxyConnectJob::OnIOComplete, base::Unretained(this)))), - ALLOW_THIS_IN_INITIALIZER_LIST( - callback_old_(this, &HttpProxyConnectJob::OnIOComplete)), using_spdy_(false), protocol_negotiated_(SSLClientSocket::kProtoUnknown) { } @@ -312,10 +310,9 @@ int HttpProxyConnectJob::DoSpdyProxyCreateStream() { } next_state_ = STATE_SPDY_PROXY_CREATE_STREAM_COMPLETE; - return spdy_session->CreateStream(params_->request_url(), - params_->destination().priority(), - &spdy_stream_, spdy_session->net_log(), - &callback_old_); + return spdy_session->CreateStream( + params_->request_url(), params_->destination().priority(), + &spdy_stream_, spdy_session->net_log(), callback_); } int HttpProxyConnectJob::DoSpdyProxyCreateStreamComplete(int result) { @@ -410,12 +407,10 @@ HttpProxyClientSocketPool::~HttpProxyClientSocketPool() { transport_pool_->RemoveLayeredPool(this); } -int HttpProxyClientSocketPool::RequestSocket(const std::string& group_name, - const void* socket_params, - RequestPriority priority, - ClientSocketHandle* handle, - OldCompletionCallback* callback, - const BoundNetLog& net_log) { +int HttpProxyClientSocketPool::RequestSocket( + const std::string& group_name, const void* socket_params, + RequestPriority priority, ClientSocketHandle* handle, + const CompletionCallback& callback, const BoundNetLog& net_log) { const scoped_refptr<HttpProxySocketParams>* casted_socket_params = static_cast<const scoped_refptr<HttpProxySocketParams>*>(socket_params); |