OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #ifndef NET_QUIC_CORE_QUIC_VERSIONS_H_ | 5 #ifndef NET_QUIC_CORE_QUIC_VERSIONS_H_ |
6 #define NET_QUIC_CORE_QUIC_VERSIONS_H_ | 6 #define NET_QUIC_CORE_QUIC_VERSIONS_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 11 matching lines...) Expand all Loading... |
22 // QuicVersionToString. | 22 // QuicVersionToString. |
23 enum QuicVersion { | 23 enum QuicVersion { |
24 // Special case to indicate unknown/unsupported QUIC version. | 24 // Special case to indicate unknown/unsupported QUIC version. |
25 QUIC_VERSION_UNSUPPORTED = 0, | 25 QUIC_VERSION_UNSUPPORTED = 0, |
26 | 26 |
27 QUIC_VERSION_34 = 34, // Deprecates entropy, removes private flag from packet | 27 QUIC_VERSION_34 = 34, // Deprecates entropy, removes private flag from packet |
28 // header, uses new ack and stop waiting wire format. | 28 // header, uses new ack and stop waiting wire format. |
29 QUIC_VERSION_35 = 35, // Allows endpoints to independently set stream limit. | 29 QUIC_VERSION_35 = 35, // Allows endpoints to independently set stream limit. |
30 QUIC_VERSION_36 = 36, // Add support to force HOL blocking. | 30 QUIC_VERSION_36 = 36, // Add support to force HOL blocking. |
31 QUIC_VERSION_37 = 37, // Add perspective into null encryption. | 31 QUIC_VERSION_37 = 37, // Add perspective into null encryption. |
32 QUIC_VERSION_38 = 38, // Experimental support for HTTP stream pairs | 32 QUIC_VERSION_38 = 38, // PADDING frame is a 1-byte frame with type 0x00. |
33 // and HPACK HoL avoidance. | 33 // Respect NSTP connection option. |
34 | 34 |
35 // IMPORTANT: if you are adding to this list, follow the instructions at | 35 // IMPORTANT: if you are adding to this list, follow the instructions at |
36 // http://sites/quic/adding-and-removing-versions | 36 // http://sites/quic/adding-and-removing-versions |
37 }; | 37 }; |
38 | 38 |
39 // This vector contains QUIC versions which we currently support. | 39 // This vector contains QUIC versions which we currently support. |
40 // This should be ordered such that the highest supported version is the first | 40 // This should be ordered such that the highest supported version is the first |
41 // element, with subsequent elements in descending order (versions can be | 41 // element, with subsequent elements in descending order (versions can be |
42 // skipped as necessary). | 42 // skipped as necessary). |
43 // | 43 // |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 QUIC_EXPORT_PRIVATE std::string QuicVersionToString(const QuicVersion version); | 81 QUIC_EXPORT_PRIVATE std::string QuicVersionToString(const QuicVersion version); |
82 | 82 |
83 // Returns comma separated list of string representations of QuicVersion enum | 83 // Returns comma separated list of string representations of QuicVersion enum |
84 // values in the supplied |versions| vector. | 84 // values in the supplied |versions| vector. |
85 QUIC_EXPORT_PRIVATE std::string QuicVersionVectorToString( | 85 QUIC_EXPORT_PRIVATE std::string QuicVersionVectorToString( |
86 const QuicVersionVector& versions); | 86 const QuicVersionVector& versions); |
87 | 87 |
88 } // namespace net | 88 } // namespace net |
89 | 89 |
90 #endif // NET_QUIC_CORE_QUIC_VERSIONS_H_ | 90 #endif // NET_QUIC_CORE_QUIC_VERSIONS_H_ |
OLD | NEW |