OLD | NEW |
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 Loading... |
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 |
OLD | NEW |