| 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 NextProtosDefaults() { | 9 NextProtoVector NextProtosDefaults() { |
| 10 NextProtoVector next_protos; | 10 NextProtoVector next_protos; |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 } | 30 } |
| 31 | 31 |
| 32 NextProtoVector NextProtosSpdy31() { | 32 NextProtoVector NextProtosSpdy31() { |
| 33 NextProtoVector next_protos; | 33 NextProtoVector next_protos; |
| 34 next_protos.push_back(kProtoHTTP11); | 34 next_protos.push_back(kProtoHTTP11); |
| 35 next_protos.push_back(kProtoQUIC1SPDY3); | 35 next_protos.push_back(kProtoQUIC1SPDY3); |
| 36 next_protos.push_back(kProtoSPDY31); | 36 next_protos.push_back(kProtoSPDY31); |
| 37 return next_protos; | 37 return next_protos; |
| 38 } | 38 } |
| 39 | 39 |
| 40 bool NextProtoIsSPDY(NextProto next_proto) { |
| 41 return next_proto >= kProtoSPDYMinimumVersion && |
| 42 next_proto <= kProtoSPDYMaximumVersion; |
| 43 } |
| 44 |
| 40 } // namespace net | 45 } // namespace net |
| OLD | NEW |