| Index: net/socket/socks_client_socket.h
|
| diff --git a/net/socket/socks_client_socket.h b/net/socket/socks_client_socket.h
|
| index 1a4a75ccd2ebb354f5b5c45e996bb3a371902ef2..fb88cd2895a780fef95c1cba015f5be3b1a51e9e 100644
|
| --- a/net/socket/socks_client_socket.h
|
| +++ b/net/socket/socks_client_socket.h
|
| @@ -48,8 +48,7 @@ class NET_EXPORT_PRIVATE SOCKSClientSocket : public StreamSocket {
|
| // StreamSocket implementation.
|
|
|
| // Does the SOCKS handshake and completes the protocol.
|
| - virtual int Connect(OldCompletionCallback* callback) OVERRIDE;
|
| - virtual int Connect(const net::CompletionCallback& callback) OVERRIDE;
|
| + virtual int Connect(const CompletionCallback& callback) OVERRIDE;
|
| virtual void Disconnect() OVERRIDE;
|
| virtual bool IsConnected() const OVERRIDE;
|
| virtual bool IsConnectedAndIdle() const OVERRIDE;
|
| @@ -64,13 +63,10 @@ class NET_EXPORT_PRIVATE SOCKSClientSocket : public StreamSocket {
|
| // Socket implementation.
|
| virtual int Read(IOBuffer* buf,
|
| int buf_len,
|
| - OldCompletionCallback* callback) OVERRIDE;
|
| - virtual int Read(IOBuffer* buf,
|
| - int buf_len,
|
| const CompletionCallback& callback) OVERRIDE;
|
| virtual int Write(IOBuffer* buf,
|
| int buf_len,
|
| - OldCompletionCallback* callback) OVERRIDE;
|
| + const CompletionCallback& callback) OVERRIDE;
|
|
|
| virtual bool SetReceiveBufferSize(int32 size) OVERRIDE;
|
| virtual bool SetSendBufferSize(int32 size) OVERRIDE;
|
| @@ -106,15 +102,12 @@ class NET_EXPORT_PRIVATE SOCKSClientSocket : public StreamSocket {
|
|
|
| const std::string BuildHandshakeWriteBuffer() const;
|
|
|
| - OldCompletionCallbackImpl<SOCKSClientSocket> io_callback_;
|
| -
|
| // Stores the underlying socket.
|
| scoped_ptr<ClientSocketHandle> transport_;
|
|
|
| State next_state_;
|
|
|
| // Stores the callback to the layer above, called on completing Connect().
|
| - OldCompletionCallback* old_user_callback_;
|
| CompletionCallback user_callback_;
|
|
|
| // This IOBuffer is used by the class to read and write
|
|
|