Index: net/socket/stream_socket.h |
diff --git a/net/socket/stream_socket.h b/net/socket/stream_socket.h |
index cc3c19ec373da4a60b017765be0afa67338e2605..cfad8eac85bc35634a8491bbf207b7a8db56737b 100644 |
--- a/net/socket/stream_socket.h |
+++ b/net/socket/stream_socket.h |
@@ -15,6 +15,7 @@ namespace net { |
class AddressList; |
class IPEndPoint; |
+class SSLInfo; |
class NET_EXPORT_PRIVATE StreamSocket : public Socket { |
public: |
@@ -87,10 +88,17 @@ class NET_EXPORT_PRIVATE StreamSocket : public Socket { |
// Returns the connection setup time of this socket. |
virtual base::TimeDelta GetConnectTimeMicros() const = 0; |
+ // Returns true if NPN was negotiated during the connection of this socket. |
+ virtual bool WasNpnNegotiated() const = 0; |
Ryan Sleevi
2012/07/11 22:50:43
How is this different than GetNegotiatedProtocol?
Ryan Hamilton
2012/07/11 23:37:25
I believe there is a distinction, though perhaps i
|
+ |
// Returns the protocol negotiated via NPN for this socket, or |
// kProtoUnknown will be returned if NPN is not applicable. |
virtual NextProto GetNegotiatedProtocol() const = 0; |
+ // Gets the SSL connection information of the socket. Returns false if |
+ // SSL was not used by this socket. |
+ virtual bool GetSSLInfo(SSLInfo* ssl_info) const = 0; |
+ |
protected: |
// The following class is only used to gather statistics about the history of |
// a socket. It is only instantiated and used in basic sockets, such as |