Chromium Code Reviews| 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..ac61554219fb71756bea5a348d96c89a00868ca7 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 0; |
|
gagansingh
2011/06/28 11:32:04
maybe return -1 as 0 might mean no content (empty
bulach
2011/06/28 13:49:52
Done.
|
| +} |
| + |
| +base::TimeDelta SSLClientSocketOpenSSL::GetConnectTimeMicros() const { |
| + if (transport_.get() && transport_->socket()) |
| + return transport_->socket()->GetConnectTimeMicros(); |
| + |
| + NOTREACHED(); |
| + return base::TimeDelta(); |
|
gagansingh
2011/06/28 11:32:04
maybe -1 here as well?
bulach
2011/06/28 13:49:52
Done.
|
| +} |
| + |
| // Socket methods |
| int SSLClientSocketOpenSSL::Read(IOBuffer* buf, |