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

Unified Diff: net/socket/next_proto.h

Issue 1020363003: Independently enable SPDY versions from field trial. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Keep NextProtosSpdy31() for compatibility; reorder params. Created 5 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/next_proto.h
diff --git a/net/socket/next_proto.h b/net/socket/next_proto.h
index 22cfbd1611faa600dab79f976e2361e07e2652c1..e12a3520c8645623284be8b816ab02237a765b60 100644
--- a/net/socket/next_proto.h
+++ b/net/socket/next_proto.h
@@ -47,19 +47,19 @@ typedef std::vector<NextProto> NextProtoVector;
// Convenience functions to create NextProtoVector.
-NET_EXPORT NextProtoVector NextProtosHttpOnly();
-
-// Default values, which are subject to change over time. Currently just
-// SPDY 3 and 3.1.
+// Default values, which are subject to change over time.
NET_EXPORT NextProtoVector NextProtosDefaults();
+// Enable SPDY/3.1 and QUIC, but not HTTP/2.
+NET_EXPORT NextProtoVector NextProtosSpdy31();
+
+NET_EXPORT NextProtoVector NextProtos(bool spdy31_enabled,
+ bool h2_14_enabled,
+ bool h2_enabled,
+ bool quic_enabled);
NET_EXPORT NextProtoVector NextProtosWithSpdyAndQuic(bool spdy_enabled,
Ryan Hamilton 2015/03/20 23:38:07 nit: newline before
Bence 2015/03/23 14:19:14 Moot.
bool quic_enabled);
Ryan Hamilton 2015/03/20 23:38:07 Do we really need this method since the previous o
Bence 2015/03/23 14:19:14 Moot.
-// All of these also enable QUIC.
-NET_EXPORT NextProtoVector NextProtosSpdy31();
-NET_EXPORT NextProtoVector NextProtosSpdy4Http2();
-
} // namespace net
#endif // NET_SOCKET_NEXT_PROTO_H_

Powered by Google App Engine
This is Rietveld 408576698