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

Side by Side Diff: net/socket/ssl_client_socket_nss.h

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/socks_client_socket.cc ('k') | net/socket/ssl_client_socket_nss.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 #ifndef NET_SOCKET_SSL_CLIENT_SOCKET_NSS_H_ 5 #ifndef NET_SOCKET_SSL_CLIENT_SOCKET_NSS_H_
6 #define NET_SOCKET_SSL_CLIENT_SOCKET_NSS_H_ 6 #define NET_SOCKET_SSL_CLIENT_SOCKET_NSS_H_
7 7
8 #include <certt.h> 8 #include <certt.h>
9 #include <keyt.h> 9 #include <keyt.h>
10 #include <nspr.h> 10 #include <nspr.h>
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 virtual void Disconnect() OVERRIDE; 84 virtual void Disconnect() OVERRIDE;
85 virtual bool IsConnected() const OVERRIDE; 85 virtual bool IsConnected() const OVERRIDE;
86 virtual bool IsConnectedAndIdle() const OVERRIDE; 86 virtual bool IsConnectedAndIdle() const OVERRIDE;
87 virtual int GetPeerAddress(IPEndPoint* address) const OVERRIDE; 87 virtual int GetPeerAddress(IPEndPoint* address) const OVERRIDE;
88 virtual int GetLocalAddress(IPEndPoint* address) const OVERRIDE; 88 virtual int GetLocalAddress(IPEndPoint* address) const OVERRIDE;
89 virtual const BoundNetLog& NetLog() const OVERRIDE; 89 virtual const BoundNetLog& NetLog() const OVERRIDE;
90 virtual void SetSubresourceSpeculation() OVERRIDE; 90 virtual void SetSubresourceSpeculation() OVERRIDE;
91 virtual void SetOmniboxSpeculation() OVERRIDE; 91 virtual void SetOmniboxSpeculation() OVERRIDE;
92 virtual bool WasEverUsed() const OVERRIDE; 92 virtual bool WasEverUsed() const OVERRIDE;
93 virtual bool UsingTCPFastOpen() const OVERRIDE; 93 virtual bool UsingTCPFastOpen() const OVERRIDE;
94 virtual int64 NumBytesRead() const OVERRIDE;
95 virtual base::TimeDelta GetConnectTimeMicros() const OVERRIDE;
96 virtual bool GetSSLInfo(SSLInfo* ssl_info) OVERRIDE; 94 virtual bool GetSSLInfo(SSLInfo* ssl_info) OVERRIDE;
97 95
98 // Socket implementation. 96 // Socket implementation.
99 virtual int Read(IOBuffer* buf, 97 virtual int Read(IOBuffer* buf,
100 int buf_len, 98 int buf_len,
101 const CompletionCallback& callback) OVERRIDE; 99 const CompletionCallback& callback) OVERRIDE;
102 virtual int Write(IOBuffer* buf, 100 virtual int Write(IOBuffer* buf,
103 int buf_len, 101 int buf_len,
104 const CompletionCallback& callback) OVERRIDE; 102 const CompletionCallback& callback) OVERRIDE;
105 virtual bool SetReceiveBufferSize(int32 size) OVERRIDE; 103 virtual bool SetReceiveBufferSize(int32 size) OVERRIDE;
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 // Added the following code Debugging in release mode. 187 // Added the following code Debugging in release mode.
190 mutable base::Lock lock_; 188 mutable base::Lock lock_;
191 // This is mutable so that CalledOnValidThread can set it. 189 // This is mutable so that CalledOnValidThread can set it.
192 // It's guarded by |lock_|. 190 // It's guarded by |lock_|.
193 mutable base::PlatformThreadId valid_thread_id_; 191 mutable base::PlatformThreadId valid_thread_id_;
194 }; 192 };
195 193
196 } // namespace net 194 } // namespace net
197 195
198 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_NSS_H_ 196 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_NSS_H_
OLDNEW
« no previous file with comments | « net/socket/socks_client_socket.cc ('k') | net/socket/ssl_client_socket_nss.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698