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

Side by Side Diff: net/socket/ssl_server_socket_nss.cc

Issue 12886034: Remove experimental code to pick the "warmest" socket (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: sync, fix conflict Created 7 years, 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « net/socket/ssl_server_socket_nss.h ('k') | net/socket/ssl_server_socket_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « net/socket/ssl_server_socket_nss.h ('k') | net/socket/ssl_server_socket_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698