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

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

Issue 284423002: Remove HttpStreamFactory's NPN/SPDY globals, except for spdy_enabled. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix merge 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « net/socket/next_proto.h ('k') | net/spdy/spdy_network_transaction_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "next_proto.h"
6
7 namespace net {
8
9 NextProtoVector NextProtosHttpOnly() {
10 NextProtoVector next_protos;
11 next_protos.push_back(kProtoHTTP11);
12 return next_protos;
13 }
14
15 NextProtoVector NextProtosSpdy3() {
16 NextProtoVector next_protos;
17 next_protos.push_back(kProtoHTTP11);
18 next_protos.push_back(kProtoQUIC1SPDY3);
19 next_protos.push_back(kProtoSPDY3);
20 return next_protos;
21 }
22
23 NextProtoVector NextProtosSpdy31() {
24 NextProtoVector next_protos;
25 next_protos.push_back(kProtoHTTP11);
26 next_protos.push_back(kProtoQUIC1SPDY3);
27 next_protos.push_back(kProtoSPDY3);
28 next_protos.push_back(kProtoSPDY31);
29 return next_protos;
30 }
31
32 NextProtoVector NextProtosSpdy31WithSpdy2() {
33 NextProtoVector next_protos;
34 next_protos.push_back(kProtoHTTP11);
35 next_protos.push_back(kProtoQUIC1SPDY3);
36 next_protos.push_back(kProtoDeprecatedSPDY2);
37 next_protos.push_back(kProtoSPDY3);
38 next_protos.push_back(kProtoSPDY31);
39 return next_protos;
40 }
41
42 NextProtoVector NextProtosSpdy4Http2() {
43 NextProtoVector next_protos;
44 next_protos.push_back(kProtoHTTP11);
45 next_protos.push_back(kProtoQUIC1SPDY3);
46 next_protos.push_back(kProtoSPDY3);
47 next_protos.push_back(kProtoSPDY31);
48 next_protos.push_back(kProtoSPDY4);
49 return next_protos;
50 }
51
52 } // namespace net
OLDNEW
« no previous file with comments | « net/socket/next_proto.h ('k') | net/spdy/spdy_network_transaction_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698