Index: net/socket/tcp_socket_posix.h |
diff --git a/net/socket/tcp_socket_posix.h b/net/socket/tcp_socket_posix.h |
index 93b8261a1f425f6b8b7e258cd7fa177ef5fe7005..f52479fea0c74a4d284145007e3af049a5426bd2 100644 |
--- a/net/socket/tcp_socket_posix.h |
+++ b/net/socket/tcp_socket_posix.h |
@@ -59,6 +59,9 @@ class NET_EXPORT TCPSocketPosix { |
// Multiple outstanding requests are not supported. |
// Full duplex mode (reading and writing at the same time) is supported. |
int Read(IOBuffer* buf, int buf_len, const CompletionCallback& callback); |
+ int ReadIfReady(IOBuffer* buf, |
+ int buf_len, |
+ const CompletionCallback& callback); |
int Write(IOBuffer* buf, int buf_len, const CompletionCallback& callback); |
int GetLocalAddress(IPEndPoint* address) const; |
@@ -197,7 +200,9 @@ class NET_EXPORT TCPSocketPosix { |
void ReadCompleted(const scoped_refptr<IOBuffer>& buf, |
const CompletionCallback& callback, |
int rv); |
+ void ReadIfReadyCompleted(const CompletionCallback& callback, int rv); |
int HandleReadCompleted(IOBuffer* buf, int rv); |
+ void HandleReadCompletedHelper(int rv); |
void WriteCompleted(const scoped_refptr<IOBuffer>& buf, |
const CompletionCallback& callback, |