diff options
Diffstat (limited to 'net/http/http_proxy_client_socket.cc')
-rw-r--r-- | net/http/http_proxy_client_socket.cc | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/net/http/http_proxy_client_socket.cc b/net/http/http_proxy_client_socket.cc index ef9fb82..8e72f7d 100644 --- a/net/http/http_proxy_client_socket.cc +++ b/net/http/http_proxy_client_socket.cc @@ -254,7 +254,14 @@ int HttpProxyClientSocket::Read(IOBuffer* buf, int buf_len, int HttpProxyClientSocket::Write(IOBuffer* buf, int buf_len, OldCompletionCallback* callback) { DCHECK_EQ(STATE_DONE, next_state_); - DCHECK(!old_user_callback_); + DCHECK(!old_user_callback_ && user_callback_.is_null()); + + return transport_->socket()->Write(buf, buf_len, callback); +} +int HttpProxyClientSocket::Write(IOBuffer* buf, int buf_len, + const CompletionCallback& callback) { + DCHECK_EQ(STATE_DONE, next_state_); + DCHECK(!old_user_callback_ && user_callback_.is_null()); return transport_->socket()->Write(buf, buf_len, callback); } |