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

Side by Side Diff: net/socket/next_proto.cc

Issue 1020363003: Independently enable SPDY versions from field trial. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add spdy_enabled toggle and TODO. 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 unified diff | Download patch
« no previous file with comments | « net/socket/next_proto.h ('k') | no next file » | 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 "net/socket/next_proto.h" 5 #include "net/socket/next_proto.h"
6 6
7 namespace net { 7 namespace net {
8 8
9 NextProtoVector NextProtosHttpOnly() {
10 NextProtoVector next_protos;
11 next_protos.push_back(kProtoHTTP11);
12 return next_protos;
13 }
14
15 NextProtoVector NextProtosDefaults() { 9 NextProtoVector NextProtosDefaults() {
16 NextProtoVector next_protos; 10 NextProtoVector next_protos;
17 next_protos.push_back(kProtoHTTP11); 11 next_protos.push_back(kProtoHTTP11);
18 next_protos.push_back(kProtoSPDY31); 12 next_protos.push_back(kProtoSPDY31);
19 next_protos.push_back(kProtoSPDY4_14); 13 next_protos.push_back(kProtoSPDY4_14);
20 next_protos.push_back(kProtoSPDY4); 14 next_protos.push_back(kProtoSPDY4);
21 return next_protos; 15 return next_protos;
22 } 16 }
23 17
24 NextProtoVector NextProtosWithSpdyAndQuic(bool spdy_enabled, 18 NextProtoVector NextProtosWithSpdyAndQuic(bool spdy_enabled,
(...skipping 11 matching lines...) Expand all
36 } 30 }
37 31
38 NextProtoVector NextProtosSpdy31() { 32 NextProtoVector NextProtosSpdy31() {
39 NextProtoVector next_protos; 33 NextProtoVector next_protos;
40 next_protos.push_back(kProtoHTTP11); 34 next_protos.push_back(kProtoHTTP11);
41 next_protos.push_back(kProtoQUIC1SPDY3); 35 next_protos.push_back(kProtoQUIC1SPDY3);
42 next_protos.push_back(kProtoSPDY31); 36 next_protos.push_back(kProtoSPDY31);
43 return next_protos; 37 return next_protos;
44 } 38 }
45 39
46 NextProtoVector NextProtosSpdy4Http2() {
47 NextProtoVector next_protos;
48 next_protos.push_back(kProtoHTTP11);
49 next_protos.push_back(kProtoQUIC1SPDY3);
50 next_protos.push_back(kProtoSPDY31);
51 next_protos.push_back(kProtoSPDY4_14);
52 next_protos.push_back(kProtoSPDY4);
53 return next_protos;
54 }
55
56 } // namespace net 40 } // namespace net
OLDNEW
« no previous file with comments | « net/socket/next_proto.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698