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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 }; | 80 }; |
81 | 81 |
82 // TLS extension used to negotiate protocol. | 82 // TLS extension used to negotiate protocol. |
83 enum SSLNegotiationExtension { | 83 enum SSLNegotiationExtension { |
84 kExtensionUnknown, | 84 kExtensionUnknown, |
85 kExtensionALPN, | 85 kExtensionALPN, |
86 kExtensionNPN, | 86 kExtensionNPN, |
87 }; | 87 }; |
88 | 88 |
89 // StreamSocket: | 89 // StreamSocket: |
90 virtual bool WasNpnNegotiated() const override; | 90 bool WasNpnNegotiated() const override; |
91 virtual NextProto GetNegotiatedProtocol() const override; | 91 NextProto GetNegotiatedProtocol() const override; |
92 | 92 |
93 // Computes a unique key string for the SSL session cache. | 93 // Computes a unique key string for the SSL session cache. |
94 virtual std::string GetSessionCacheKey() const = 0; | 94 virtual std::string GetSessionCacheKey() const = 0; |
95 | 95 |
96 // Returns true if there is a cache entry in the SSL session cache | 96 // Returns true if there is a cache entry in the SSL session cache |
97 // for the cache key of the SSL socket. | 97 // for the cache key of the SSL socket. |
98 // | 98 // |
99 // The cache key consists of a host and port concatenated with a session | 99 // The cache key consists of a host and port concatenated with a session |
100 // cache shard. These two strings are passed to the constructor of most | 100 // cache shard. These two strings are passed to the constructor of most |
101 // subclasses of SSLClientSocket. | 101 // subclasses of SSLClientSocket. |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
232 bool signed_cert_timestamps_received_; | 232 bool signed_cert_timestamps_received_; |
233 // True if a stapled OCSP response was received. | 233 // True if a stapled OCSP response was received. |
234 bool stapled_ocsp_response_received_; | 234 bool stapled_ocsp_response_received_; |
235 // Protocol negotiation extension used. | 235 // Protocol negotiation extension used. |
236 SSLNegotiationExtension negotiation_extension_; | 236 SSLNegotiationExtension negotiation_extension_; |
237 }; | 237 }; |
238 | 238 |
239 } // namespace net | 239 } // namespace net |
240 | 240 |
241 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_H_ | 241 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_H_ |
OLD | NEW |