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

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

Issue 1096203006: Collect all ConnectionAttempts from both sockets in TransportConnectJob. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@domrel_serverip1
Patch Set: Return fake ConnectionAttempt in MockTCPClientSocket Created 5 years, 7 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
« 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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 bool IsConnected() const override; 85 bool IsConnected() const override;
86 bool IsConnectedAndIdle() const override; 86 bool IsConnectedAndIdle() const override;
87 int GetPeerAddress(IPEndPoint* address) const override; 87 int GetPeerAddress(IPEndPoint* address) const override;
88 int GetLocalAddress(IPEndPoint* address) const override; 88 int GetLocalAddress(IPEndPoint* address) const override;
89 const BoundNetLog& NetLog() const override; 89 const BoundNetLog& NetLog() const override;
90 void SetSubresourceSpeculation() override; 90 void SetSubresourceSpeculation() override;
91 void SetOmniboxSpeculation() override; 91 void SetOmniboxSpeculation() override;
92 bool WasEverUsed() const override; 92 bool WasEverUsed() const override;
93 bool UsingTCPFastOpen() const override; 93 bool UsingTCPFastOpen() const override;
94 bool GetSSLInfo(SSLInfo* ssl_info) override; 94 bool GetSSLInfo(SSLInfo* ssl_info) override;
95 void GetConnectionAttempts(ConnectionAttempts* out) const override;
96 void ClearConnectionAttempts() override {}
97 void AddConnectionAttempts(const ConnectionAttempts& attempts) override {}
95 98
96 // Socket implementation. 99 // Socket implementation.
97 int Read(IOBuffer* buf, 100 int Read(IOBuffer* buf,
98 int buf_len, 101 int buf_len,
99 const CompletionCallback& callback) override; 102 const CompletionCallback& callback) override;
100 int Write(IOBuffer* buf, 103 int Write(IOBuffer* buf,
101 int buf_len, 104 int buf_len,
102 const CompletionCallback& callback) override; 105 const CompletionCallback& callback) override;
103 int SetReceiveBufferSize(int32 size) override; 106 int SetReceiveBufferSize(int32 size) override;
104 int SetSendBufferSize(int32 size) override; 107 int SetSendBufferSize(int32 size) override;
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 // Added the following code Debugging in release mode. 212 // Added the following code Debugging in release mode.
210 mutable base::Lock lock_; 213 mutable base::Lock lock_;
211 // This is mutable so that CalledOnValidThread can set it. 214 // This is mutable so that CalledOnValidThread can set it.
212 // It's guarded by |lock_|. 215 // It's guarded by |lock_|.
213 mutable base::PlatformThreadId valid_thread_id_; 216 mutable base::PlatformThreadId valid_thread_id_;
214 }; 217 };
215 218
216 } // namespace net 219 } // namespace net
217 220
218 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_NSS_H_ 221 #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