diff options
Diffstat (limited to 'net/socket/ssl_client_socket.h')
-rw-r--r-- | net/socket/ssl_client_socket.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/net/socket/ssl_client_socket.h b/net/socket/ssl_client_socket.h index 77537ea..961447b 100644 --- a/net/socket/ssl_client_socket.h +++ b/net/socket/ssl_client_socket.h @@ -22,6 +22,8 @@ class SSLInfo; // class SSLClientSocket : public ClientSocket { public: + SSLClientSocket() : was_npn_negotiated_(false) { + } // Next Protocol Negotiation (NPN) allows a TLS client and server to come to // an agreement about the application level protocol to speak over a // connection. @@ -68,6 +70,18 @@ class SSLClientSocket : public ClientSocket { return kProtoUnknown; } } + + virtual bool wasNpnNegotiated() const { + return was_npn_negotiated_; + } + + virtual bool setWasNpnNegotiated(bool negotiated) { + return was_npn_negotiated_ = negotiated; + } + + private: + // True if NPN was responded to, independent of selecting SPDY or HTTP. + bool was_npn_negotiated_; }; } // namespace net |