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

Side by Side 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, 6 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 unified diff | Download patch | Annotate | Revision Log
« 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "next_proto.h" 5 #include "next_proto.h"
6 6
7 namespace net { 7 namespace net {
8 8
9 NextProtoVector NextProtosHttpOnly() { 9 NextProtoVector NextProtosHttpOnly() {
10 NextProtoVector next_protos; 10 NextProtoVector next_protos;
11 next_protos.push_back(kProtoHTTP11); 11 next_protos.push_back(kProtoHTTP11);
12 return next_protos; 12 return next_protos;
13 } 13 }
14 14
15 NextProtoVector NextProtosDefaults() {
16 NextProtoVector next_protos;
17 next_protos.push_back(kProtoHTTP11);
18 next_protos.push_back(kProtoSPDY3);
19 next_protos.push_back(kProtoSPDY31);
20 return next_protos;
21 }
22
15 NextProtoVector NextProtosSpdy3() { 23 NextProtoVector NextProtosSpdy3() {
16 NextProtoVector next_protos; 24 NextProtoVector next_protos;
17 next_protos.push_back(kProtoHTTP11); 25 next_protos.push_back(kProtoHTTP11);
18 next_protos.push_back(kProtoQUIC1SPDY3); 26 next_protos.push_back(kProtoQUIC1SPDY3);
19 next_protos.push_back(kProtoSPDY3); 27 next_protos.push_back(kProtoSPDY3);
20 return next_protos; 28 return next_protos;
21 } 29 }
22 30
23 NextProtoVector NextProtosSpdy31() { 31 NextProtoVector NextProtosSpdy31() {
24 NextProtoVector next_protos; 32 NextProtoVector next_protos;
(...skipping 18 matching lines...) Expand all
43 NextProtoVector next_protos; 51 NextProtoVector next_protos;
44 next_protos.push_back(kProtoHTTP11); 52 next_protos.push_back(kProtoHTTP11);
45 next_protos.push_back(kProtoQUIC1SPDY3); 53 next_protos.push_back(kProtoQUIC1SPDY3);
46 next_protos.push_back(kProtoSPDY3); 54 next_protos.push_back(kProtoSPDY3);
47 next_protos.push_back(kProtoSPDY31); 55 next_protos.push_back(kProtoSPDY31);
48 next_protos.push_back(kProtoSPDY4); 56 next_protos.push_back(kProtoSPDY4);
49 return next_protos; 57 return next_protos;
50 } 58 }
51 59
52 } // namespace net 60 } // namespace net
OLDNEW
« 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