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

Unified Diff: net/socket/next_proto.cc

Issue 302893003: Enable SPDY 3.1 and 3.0 in UrlRequestContextBuilder by default (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add NextProtosDefaults Created 6 years, 7 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
« no previous file with comments | « net/socket/next_proto.h ('k') | net/url_request/url_request_context_builder.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/socket/next_proto.cc
diff --git a/net/socket/next_proto.cc b/net/socket/next_proto.cc
index bf9b86e4adfd5ba7abe67942645c1eaa77d75446..46fff599f7b4044ad4964f67cd59e417ba9d84ef 100644
--- a/net/socket/next_proto.cc
+++ b/net/socket/next_proto.cc
@@ -12,6 +12,14 @@ NextProtoVector NextProtosHttpOnly() {
return next_protos;
}
+NextProtoVector NextProtosDefaults() {
+ NextProtoVector next_protos;
+ next_protos.push_back(kProtoHTTP11);
+ next_protos.push_back(kProtoSPDY3);
+ next_protos.push_back(kProtoSPDY31);
+ return next_protos;
+}
+
NextProtoVector NextProtosSpdy3() {
NextProtoVector next_protos;
next_protos.push_back(kProtoHTTP11);
« no previous file with comments | « net/socket/next_proto.h ('k') | net/url_request/url_request_context_builder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698