Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(117)

Unified Diff: net/socket/stream_socket.h

Issue 10690122: Change SpdySession::GetSSLInfo to get the SSLInfo from the underlying socket (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Actual working test Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698