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 #ifndef NET_SOCKET_SSL_CLIENT_SOCKET_H_ | 5 #ifndef NET_SOCKET_SSL_CLIENT_SOCKET_H_ |
6 #define NET_SOCKET_SSL_CLIENT_SOCKET_H_ | 6 #define NET_SOCKET_SSL_CLIENT_SOCKET_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/gtest_prod_util.h" | 10 #include "base/gtest_prod_util.h" |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
92 // | 92 // |
93 // The cache key consists of a host and port concatenated with a session | 93 // The cache key consists of a host and port concatenated with a session |
94 // cache shard. | 94 // cache shard. |
95 virtual bool InSessionCache() const = 0; | 95 virtual bool InSessionCache() const = 0; |
96 | 96 |
97 // Tells the session cache to monitor this socket's session and inform | 97 // Tells the session cache to monitor this socket's session and inform |
98 // its SSLConnectJobMessenger upon the session's connection's completion. | 98 // its SSLConnectJobMessenger upon the session's connection's completion. |
99 virtual void WatchSessionForCompletion(const base::Closure& callback) = 0; | 99 virtual void WatchSessionForCompletion(const base::Closure& callback) = 0; |
100 | 100 |
101 // Sets the callback to be used if the socket's connection should fail. | 101 // Sets the callback to be used if the socket's connection should fail. |
102 // | |
103 // Note: This callback may still be executed even if this socket has | |
104 // been disconnected or deleted. | |
wtc
2014/07/14 22:39:18
Delete this comment.
mshelley
2014/07/17 16:28:03
Done.
| |
102 virtual void SetSocketFailureCallback(const base::Closure& callback) = 0; | 105 virtual void SetSocketFailureCallback(const base::Closure& callback) = 0; |
103 | 106 |
104 // Marks this socket as the leading connection. | 107 // Marks this socket as the leading connection. |
105 virtual void SetIsLeader() = 0; | 108 virtual void SetIsLeader() = 0; |
106 | 109 |
107 // In the case of a failed connection, run the appropriate callback. | 110 // In the case of a failed connection, run the appropriate callback. |
108 virtual void OnSocketFailure() = 0; | 111 virtual void OnSocketFailure() = 0; |
109 | 112 |
110 // Gets the SSL CertificateRequest info of the socket after Connect failed | 113 // Gets the SSL CertificateRequest info of the socket after Connect failed |
111 // with ERR_SSL_CLIENT_AUTH_CERT_NEEDED. | 114 // with ERR_SSL_CLIENT_AUTH_CERT_NEEDED. |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
209 bool channel_id_sent_; | 212 bool channel_id_sent_; |
210 // True if SCTs were received via a TLS extension. | 213 // True if SCTs were received via a TLS extension. |
211 bool signed_cert_timestamps_received_; | 214 bool signed_cert_timestamps_received_; |
212 // True if a stapled OCSP response was received. | 215 // True if a stapled OCSP response was received. |
213 bool stapled_ocsp_response_received_; | 216 bool stapled_ocsp_response_received_; |
214 }; | 217 }; |
215 | 218 |
216 } // namespace net | 219 } // namespace net |
217 | 220 |
218 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_H_ | 221 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_H_ |
OLD | NEW |