Index: net/socket/ssl_client_socket.h |
diff --git a/net/socket/ssl_client_socket.h b/net/socket/ssl_client_socket.h |
index cb5e5fbe4c8e15e62eb253f77787e0a3704508f9..6774f150eb32e0b68b96c2883102de00abf77b21 100644 |
--- a/net/socket/ssl_client_socket.h |
+++ b/net/socket/ssl_client_socket.h |
@@ -13,6 +13,7 @@ |
#include "net/base/net_errors.h" |
#include "net/socket/ssl_socket.h" |
#include "net/socket/stream_socket.h" |
+#include "net/ssl/ssl_failure_state.h" |
namespace net { |
@@ -129,6 +130,11 @@ class NET_EXPORT SSLClientSocket : public SSLSocket { |
// channel ids are not supported. |
virtual ChannelIDService* GetChannelIDService() const = 0; |
+ // Returns the state of the handshake when it failed, or |SSL_FAILURE_NONE| if |
+ // the handshake succeeded. This is used to classify causes of the TLS version |
+ // fallback. |
+ virtual SSLFailureState GetSSLFailureState() const = 0; |
+ |
protected: |
void set_negotiation_extension( |
SSLNegotiationExtension negotiation_extension) { |