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.
5 #include "net/socket/next_proto.h"
9 NextProtoVector
NextProtosHttpOnly() {
10 NextProtoVector next_protos
;
11 next_protos
.push_back(kProtoHTTP11
);
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
);
23 NextProtoVector
NextProtosWithSpdyAndQuic(bool spdy_enabled
,
25 NextProtoVector next_protos
;
26 next_protos
.push_back(kProtoHTTP11
);
28 next_protos
.push_back(kProtoQUIC1SPDY3
);
30 next_protos
.push_back(kProtoSPDY31
);
31 next_protos
.push_back(kProtoSPDY4_14
);
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
);
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
);