OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "net/socket/ssl_server_socket_nss.h" | 5 #include "net/socket/ssl_server_socket_nss.h" |
6 | 6 |
7 #if defined(OS_WIN) | 7 #if defined(OS_WIN) |
8 #include <winsock2.h> | 8 #include <winsock2.h> |
9 #endif | 9 #endif |
10 | 10 |
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
286 } | 286 } |
287 | 287 |
288 bool SSLServerSocketNSS::WasEverUsed() const { | 288 bool SSLServerSocketNSS::WasEverUsed() const { |
289 return transport_socket_->WasEverUsed(); | 289 return transport_socket_->WasEverUsed(); |
290 } | 290 } |
291 | 291 |
292 bool SSLServerSocketNSS::UsingTCPFastOpen() const { | 292 bool SSLServerSocketNSS::UsingTCPFastOpen() const { |
293 return transport_socket_->UsingTCPFastOpen(); | 293 return transport_socket_->UsingTCPFastOpen(); |
294 } | 294 } |
295 | 295 |
296 int64 SSLServerSocketNSS::NumBytesRead() const { | |
297 return transport_socket_->NumBytesRead(); | |
298 } | |
299 | |
300 base::TimeDelta SSLServerSocketNSS::GetConnectTimeMicros() const { | |
301 return transport_socket_->GetConnectTimeMicros(); | |
302 } | |
303 | |
304 bool SSLServerSocketNSS::WasNpnNegotiated() const { | 296 bool SSLServerSocketNSS::WasNpnNegotiated() const { |
305 return false; | 297 return false; |
306 } | 298 } |
307 | 299 |
308 NextProto SSLServerSocketNSS::GetNegotiatedProtocol() const { | 300 NextProto SSLServerSocketNSS::GetNegotiatedProtocol() const { |
309 // NPN is not supported by this class. | 301 // NPN is not supported by this class. |
310 return kProtoUnknown; | 302 return kProtoUnknown; |
311 } | 303 } |
312 | 304 |
313 bool SSLServerSocketNSS::GetSSLInfo(SSLInfo* ssl_info) { | 305 bool SSLServerSocketNSS::GetSSLInfo(SSLInfo* ssl_info) { |
(...skipping 510 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
824 // initializes the NSS base library. | 816 // initializes the NSS base library. |
825 EnsureNSSSSLInit(); | 817 EnsureNSSSSLInit(); |
826 if (!NSS_IsInitialized()) | 818 if (!NSS_IsInitialized()) |
827 return ERR_UNEXPECTED; | 819 return ERR_UNEXPECTED; |
828 | 820 |
829 EnableSSLServerSockets(); | 821 EnableSSLServerSockets(); |
830 return OK; | 822 return OK; |
831 } | 823 } |
832 | 824 |
833 } // namespace net | 825 } // namespace net |
OLD | NEW |