Index: net/socket/tcp_socket_posix.h |
diff --git a/net/socket/tcp_socket_posix.h b/net/socket/tcp_socket_posix.h |
index fda90fcfd95644b052dbc6ce40f391172c57d330..b30b90230b472a3028f12cd92b817e034482d9c5 100644 |
--- a/net/socket/tcp_socket_posix.h |
+++ b/net/socket/tcp_socket_posix.h |
@@ -60,6 +60,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; |
@@ -200,6 +203,7 @@ 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 WriteCompleted(const scoped_refptr<IOBuffer>& buf, |