| Index: net/socket/tcp_client_socket_libevent.h
|
| diff --git a/net/socket/tcp_client_socket_libevent.h b/net/socket/tcp_client_socket_libevent.h
|
| index 3baf6c9b4885941f1685a2a274f10dbbe1c62205..2a6b041c6fd2ac652e944293c6da8e71b6c8e6ec 100644
|
| --- a/net/socket/tcp_client_socket_libevent.h
|
| +++ b/net/socket/tcp_client_socket_libevent.h
|
| @@ -43,27 +43,31 @@ class NET_EXPORT_PRIVATE TCPClientSocketLibevent : public StreamSocket,
|
| int Bind(const IPEndPoint& address);
|
|
|
| // StreamSocket methods:
|
| - virtual int Connect(OldCompletionCallback* callback);
|
| - virtual void Disconnect();
|
| - virtual bool IsConnected() const;
|
| - virtual bool IsConnectedAndIdle() const;
|
| - virtual int GetPeerAddress(AddressList* address) const;
|
| - virtual int GetLocalAddress(IPEndPoint* address) const;
|
| - virtual const BoundNetLog& NetLog() const;
|
| - virtual void SetSubresourceSpeculation();
|
| - virtual void SetOmniboxSpeculation();
|
| - virtual bool WasEverUsed() const;
|
| - virtual bool UsingTCPFastOpen() const;
|
| - virtual int64 NumBytesRead() const;
|
| - virtual base::TimeDelta GetConnectTimeMicros() const;
|
| + virtual int Connect(OldCompletionCallback* callback) OVERRIDE;
|
| + virtual void Disconnect() OVERRIDE;
|
| + virtual bool IsConnected() const OVERRIDE;
|
| + virtual bool IsConnectedAndIdle() const OVERRIDE;
|
| + virtual int GetPeerAddress(AddressList* address) const OVERRIDE;
|
| + virtual int GetLocalAddress(IPEndPoint* address) const OVERRIDE;
|
| + virtual const BoundNetLog& NetLog() const OVERRIDE;
|
| + virtual void SetSubresourceSpeculation() OVERRIDE;
|
| + virtual void SetOmniboxSpeculation() OVERRIDE;
|
| + virtual bool WasEverUsed() const OVERRIDE;
|
| + virtual bool UsingTCPFastOpen() const OVERRIDE;
|
| + virtual int64 NumBytesRead() const OVERRIDE;
|
| + virtual base::TimeDelta GetConnectTimeMicros() const OVERRIDE;
|
|
|
| // Socket methods:
|
| // Multiple outstanding requests are not supported.
|
| // Full duplex mode (reading and writing at the same time) is supported
|
| - virtual int Read(IOBuffer* buf, int buf_len, OldCompletionCallback* callback);
|
| - virtual int Write(IOBuffer* buf, int buf_len, OldCompletionCallback* callback);
|
| - virtual bool SetReceiveBufferSize(int32 size);
|
| - virtual bool SetSendBufferSize(int32 size);
|
| + virtual int Read(IOBuffer* buf,
|
| + int buf_len,
|
| + OldCompletionCallback* callback) OVERRIDE;
|
| + virtual int Write(IOBuffer* buf,
|
| + int buf_len,
|
| + OldCompletionCallback* callback) OVERRIDE;
|
| + virtual bool SetReceiveBufferSize(int32 size) OVERRIDE;
|
| + virtual bool SetSendBufferSize(int32 size) OVERRIDE;
|
|
|
| private:
|
| // State machine for connecting the socket.
|
| @@ -79,12 +83,12 @@ class NET_EXPORT_PRIVATE TCPClientSocketLibevent : public StreamSocket,
|
|
|
| // MessageLoopForIO::Watcher methods
|
|
|
| - virtual void OnFileCanReadWithoutBlocking(int /* fd */) {
|
| + virtual void OnFileCanReadWithoutBlocking(int /* fd */) OVERRIDE {
|
| if (socket_->read_callback_)
|
| socket_->DidCompleteRead();
|
| }
|
|
|
| - virtual void OnFileCanWriteWithoutBlocking(int /* fd */) {}
|
| + virtual void OnFileCanWriteWithoutBlocking(int /* fd */) OVERRIDE {}
|
|
|
| private:
|
| TCPClientSocketLibevent* const socket_;
|
| @@ -98,9 +102,9 @@ class NET_EXPORT_PRIVATE TCPClientSocketLibevent : public StreamSocket,
|
|
|
| // MessageLoopForIO::Watcher methods
|
|
|
| - virtual void OnFileCanReadWithoutBlocking(int /* fd */) {}
|
| + virtual void OnFileCanReadWithoutBlocking(int /* fd */) OVERRIDE {}
|
|
|
| - virtual void OnFileCanWriteWithoutBlocking(int /* fd */) {
|
| + virtual void OnFileCanWriteWithoutBlocking(int /* fd */) OVERRIDE {
|
| if (socket_->waiting_connect()) {
|
| socket_->DidCompleteConnect();
|
| } else if (socket_->write_callback_) {
|
|
|