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

Unified Diff: net/socket/stream_socket.h

Issue 9958023: Properly handle spdy3 responses. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase 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 e7ea2bee56911104852162c9a83dc846327a0759..9efbcfd022ca04ea0ab61e72e978eb338dad513f 100644
--- a/net/socket/stream_socket.h
+++ b/net/socket/stream_socket.h
@@ -20,6 +20,19 @@ class NET_EXPORT_PRIVATE StreamSocket : public Socket {
public:
virtual ~StreamSocket() {}
+ // Next Protocol Negotiation (NPN), if successful, results in agreement on an
+ // application-level string that specifies the application level protocol to
+ // use over the TLS connection. NextProto enumerates the application level
+ // protocols that we recognise.
+ enum NextProto {
+ kProtoUnknown = 0,
+ kProtoHTTP11 = 1,
+ kProtoSPDY1 = 2,
+ kProtoSPDY2 = 3,
+ kProtoSPDY21 = 4,
+ kProtoSPDY3 = 5,
+ };
+
// Called to establish a connection. Returns OK if the connection could be
// established synchronously. Otherwise, ERR_IO_PENDING is returned and the
// given callback will run asynchronously when the connection is established

Powered by Google App Engine
This is Rietveld 408576698