| 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 "net/socket/next_proto.h" | 5 #include "net/socket/next_proto.h" |
| 6 | 6 |
| 7 namespace net { | 7 namespace net { |
| 8 | 8 |
| 9 NextProtoVector NextProtosHttpOnly() { | |
| 10 NextProtoVector next_protos; | |
| 11 next_protos.push_back(kProtoHTTP11); | |
| 12 return next_protos; | |
| 13 } | |
| 14 | |
| 15 NextProtoVector NextProtosDefaults() { | 9 NextProtoVector NextProtosDefaults() { |
| 16 NextProtoVector next_protos; | 10 NextProtoVector next_protos; |
| 17 next_protos.push_back(kProtoHTTP11); | 11 next_protos.push_back(kProtoHTTP11); |
| 18 next_protos.push_back(kProtoSPDY31); | 12 next_protos.push_back(kProtoSPDY31); |
| 19 next_protos.push_back(kProtoSPDY4_14); | 13 next_protos.push_back(kProtoSPDY4_14); |
| 20 next_protos.push_back(kProtoSPDY4); | 14 next_protos.push_back(kProtoSPDY4); |
| 21 return next_protos; | 15 return next_protos; |
| 22 } | 16 } |
| 23 | 17 |
| 24 NextProtoVector NextProtosWithSpdyAndQuic(bool spdy_enabled, | 18 NextProtoVector NextProtosWithSpdyAndQuic(bool spdy_enabled, |
| (...skipping 11 matching lines...) Expand all Loading... |
| 36 } | 30 } |
| 37 | 31 |
| 38 NextProtoVector NextProtosSpdy31() { | 32 NextProtoVector NextProtosSpdy31() { |
| 39 NextProtoVector next_protos; | 33 NextProtoVector next_protos; |
| 40 next_protos.push_back(kProtoHTTP11); | 34 next_protos.push_back(kProtoHTTP11); |
| 41 next_protos.push_back(kProtoQUIC1SPDY3); | 35 next_protos.push_back(kProtoQUIC1SPDY3); |
| 42 next_protos.push_back(kProtoSPDY31); | 36 next_protos.push_back(kProtoSPDY31); |
| 43 return next_protos; | 37 return next_protos; |
| 44 } | 38 } |
| 45 | 39 |
| 46 NextProtoVector NextProtosSpdy4Http2() { | |
| 47 NextProtoVector next_protos; | |
| 48 next_protos.push_back(kProtoHTTP11); | |
| 49 next_protos.push_back(kProtoQUIC1SPDY3); | |
| 50 next_protos.push_back(kProtoSPDY31); | |
| 51 next_protos.push_back(kProtoSPDY4_14); | |
| 52 next_protos.push_back(kProtoSPDY4); | |
| 53 return next_protos; | |
| 54 } | |
| 55 | |
| 56 } // namespace net | 40 } // namespace net |
| OLD | NEW |