OLD | NEW |
(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 |
OLD | NEW |