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

Unified Diff: net/socket/stream_socket.h

Issue 9958028: Add a new GetNegotiatedProtocol method to StreamSocket and implement in all subclasses. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cleanup Created 8 years, 9 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 ef89906df4a3d91e543100334693144b4ee7aabd..e7ea2bee56911104852162c9a83dc846327a0759 100644
--- a/net/socket/stream_socket.h
+++ b/net/socket/stream_socket.h
@@ -87,6 +87,9 @@ class NET_EXPORT_PRIVATE StreamSocket : public Socket {
// Returns the connection setup time of this socket.
virtual base::TimeDelta GetConnectTimeMicros() const = 0;
+ // Returns the protocol negotiated for this socket.
wtc 2012/03/30 21:19:14 Please mention the use of NPN in this comment. Pl
Ryan Hamilton 2012/03/30 21:53:17 Done.
+ virtual NextProto GetNegotiatedProtocol() 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