| 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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 void set_stapled_ocsp_response_received(bool stapled_ocsp_response_received) { | 145 void set_stapled_ocsp_response_received(bool stapled_ocsp_response_received) { |
| 146 stapled_ocsp_response_received_ = stapled_ocsp_response_received; | 146 stapled_ocsp_response_received_ = stapled_ocsp_response_received; |
| 147 } | 147 } |
| 148 | 148 |
| 149 // Record which TLS extension was used to negotiate protocol and protocol | 149 // Record which TLS extension was used to negotiate protocol and protocol |
| 150 // chosen in a UMA histogram. | 150 // chosen in a UMA histogram. |
| 151 void RecordNegotiationExtension(); | 151 void RecordNegotiationExtension(); |
| 152 | 152 |
| 153 // Records histograms for channel id support during full handshakes - resumed | 153 // Records histograms for channel id support during full handshakes - resumed |
| 154 // handshakes are ignored. | 154 // handshakes are ignored. |
| 155 static void RecordChannelIDSupport( | 155 static void RecordChannelIDSupport(ChannelIDService* channel_id_service, |
| 156 ChannelIDService* channel_id_service, | 156 bool negotiated_channel_id, |
| 157 bool negotiated_channel_id, | 157 bool channel_id_enabled); |
| 158 bool channel_id_enabled, | |
| 159 bool supports_ecc); | |
| 160 | 158 |
| 161 // Returns whether TLS channel ID is enabled. | 159 // Returns whether TLS channel ID is enabled. |
| 162 static bool IsChannelIDEnabled( | 160 static bool IsChannelIDEnabled( |
| 163 const SSLConfig& ssl_config, | 161 const SSLConfig& ssl_config, |
| 164 ChannelIDService* channel_id_service); | 162 ChannelIDService* channel_id_service); |
| 165 | 163 |
| 166 // Determine if there is at least one enabled cipher suite that satisfies | 164 // Determine if there is at least one enabled cipher suite that satisfies |
| 167 // Section 9.2 of the HTTP/2 specification. Note that the server might still | 165 // Section 9.2 of the HTTP/2 specification. Note that the server might still |
| 168 // pick an inadequate cipher suite. | 166 // pick an inadequate cipher suite. |
| 169 static bool HasCipherAdequateForHTTP2( | 167 static bool HasCipherAdequateForHTTP2( |
| (...skipping 25 matching lines...) Expand all Loading... |
| 195 bool signed_cert_timestamps_received_; | 193 bool signed_cert_timestamps_received_; |
| 196 // True if a stapled OCSP response was received. | 194 // True if a stapled OCSP response was received. |
| 197 bool stapled_ocsp_response_received_; | 195 bool stapled_ocsp_response_received_; |
| 198 // Protocol negotiation extension used. | 196 // Protocol negotiation extension used. |
| 199 SSLNegotiationExtension negotiation_extension_; | 197 SSLNegotiationExtension negotiation_extension_; |
| 200 }; | 198 }; |
| 201 | 199 |
| 202 } // namespace net | 200 } // namespace net |
| 203 | 201 |
| 204 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_H_ | 202 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_H_ |
| OLD | NEW |