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

Unified Diff: net/socket/ssl_client_socket_impl.h

Issue 2593063003: Add Socket::ReadIfReady() (Closed)
Patch Set: Fix tests for real Created 3 years, 11 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..0b179e166461419be7d19a3791c340cbed8334d7 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;
@@ -134,8 +137,8 @@ class SSLClientSocketImpl : public SSLClientSocket,
int SetSendBufferSize(int32_t size) override;
// SocketBIOAdapter implementation:
- void OnReadReady() override;
- void OnWriteReady() override;
+ void OnReadReady(int rv) override;
+ void OnWriteReady(int rv) override;
private:
class PeerCertificateChain;

Powered by Google App Engine
This is Rietveld 408576698