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

Unified Diff: net/socket/ssl_client_socket_openssl.cc

Issue 7253038: Fixes for OpenSSL (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Adds new param to net/base/cert_database_openssl.cc Created 9 years, 5 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
« no previous file with comments | « net/socket/ssl_client_socket_openssl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/socket/ssl_client_socket_openssl.cc
diff --git a/net/socket/ssl_client_socket_openssl.cc b/net/socket/ssl_client_socket_openssl.cc
index 92abf46ffdae1a4e4e91246df3043b627e74abed..3e25e2bb2b3877b8f208d33f5028c05451c58581 100644
--- a/net/socket/ssl_client_socket_openssl.cc
+++ b/net/socket/ssl_client_socket_openssl.cc
@@ -1094,6 +1094,22 @@ bool SSLClientSocketOpenSSL::UsingTCPFastOpen() const {
return false;
}
+int64 SSLClientSocketOpenSSL::NumBytesRead() const {
+ if (transport_.get() && transport_->socket())
+ return transport_->socket()->NumBytesRead();
+
+ NOTREACHED();
+ return -1;
+}
+
+base::TimeDelta SSLClientSocketOpenSSL::GetConnectTimeMicros() const {
+ if (transport_.get() && transport_->socket())
+ return transport_->socket()->GetConnectTimeMicros();
+
+ NOTREACHED();
+ return base::TimeDelta::FromMicroseconds(-1);
+}
+
// Socket methods
int SSLClientSocketOpenSSL::Read(IOBuffer* buf,
« no previous file with comments | « net/socket/ssl_client_socket_openssl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698