Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(63)

Unified Diff: net/socket/ssl_client_socket_impl.h

Issue 2593063003: Add Socket::ReadIfReady() (Closed)
Patch Set: self review. remove unused include Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: net/socket/ssl_client_socket_impl.h
diff --git a/net/socket/ssl_client_socket_impl.h b/net/socket/ssl_client_socket_impl.h
index 86505ab2f4a80c3d8620bf3684b999603bf1bcf8..1450e166a36a27e1f78ca52c60ca16a0aed3d9e2 100644
--- a/net/socket/ssl_client_socket_impl.h
+++ b/net/socket/ssl_client_socket_impl.h
@@ -127,6 +127,9 @@ class SSLClientSocketImpl : public SSLClientSocket,
int Read(IOBuffer* buf,
int buf_len,
const CompletionCallback& callback) override;
+ int ReadIfReady(IOBuffer* buf,
+ int buf_len,
+ const CompletionCallback& callback) override;
int Write(IOBuffer* buf,
int buf_len,
const CompletionCallback& callback) override;
@@ -159,7 +162,7 @@ class SSLClientSocketImpl : public SSLClientSocket,
void OnHandshakeIOComplete(int result);
int DoHandshakeLoop(int last_io_result);
- int DoPayloadRead();
+ int DoPayloadRead(IOBuffer* buf, int buf_len);
Bence 2017/03/03 16:33:41 Optional: add a comment about whether this method
xunjieli 2017/03/03 19:41:06 Acknowledged.
int DoPayloadWrite();
// Called when an asynchronous event completes which may have blocked the

Powered by Google App Engine
This is Rietveld 408576698