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

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

Issue 992733002: Remove //net (except for Android test stuff) and sdch (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: 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') | net/socket/nss_ssl_util.h » ('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 "net/socket/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 NextProtosDefaults() {
16 NextProtoVector next_protos;
17 next_protos.push_back(kProtoHTTP11);
18 next_protos.push_back(kProtoSPDY31);
19 next_protos.push_back(kProtoSPDY4_14);
20 return next_protos;
21 }
22
23 NextProtoVector NextProtosWithSpdyAndQuic(bool spdy_enabled,
24 bool quic_enabled) {
25 NextProtoVector next_protos;
26 next_protos.push_back(kProtoHTTP11);
27 if (quic_enabled)
28 next_protos.push_back(kProtoQUIC1SPDY3);
29 if (spdy_enabled) {
30 next_protos.push_back(kProtoSPDY31);
31 next_protos.push_back(kProtoSPDY4_14);
32 }
33 return next_protos;
34 }
35
36 NextProtoVector NextProtosSpdy31() {
37 NextProtoVector next_protos;
38 next_protos.push_back(kProtoHTTP11);
39 next_protos.push_back(kProtoQUIC1SPDY3);
40 next_protos.push_back(kProtoSPDY31);
41 return next_protos;
42 }
43
44 NextProtoVector NextProtosSpdy4Http2() {
45 NextProtoVector next_protos;
46 next_protos.push_back(kProtoHTTP11);
47 next_protos.push_back(kProtoQUIC1SPDY3);
48 next_protos.push_back(kProtoSPDY31);
49 next_protos.push_back(kProtoSPDY4_14);
50 return next_protos;
51 }
52
53 } // namespace net
OLDNEW
« no previous file with comments | « net/socket/next_proto.h ('k') | net/socket/nss_ssl_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698