| 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 21 matching lines...) Expand all Loading... |
| 32 QUIC_VERSION_39 = 39, // Integers and floating numbers are written in big | 32 QUIC_VERSION_39 = 39, // Integers and floating numbers are written in big |
| 33 // endian. Dot not ack acks. Send a connection level | 33 // endian. Dot not ack acks. Send a connection level |
| 34 // WINDOW_UPDATE every 20 sent packets which do not | 34 // WINDOW_UPDATE every 20 sent packets which do not |
| 35 // contain retransmittable frames. | 35 // contain retransmittable frames. |
| 36 QUIC_VERSION_40 = 40, // Initial packet number is randomly chosen from | 36 QUIC_VERSION_40 = 40, // Initial packet number is randomly chosen from |
| 37 // [0:2^31], WINDOW_UPDATE for connection flow control | 37 // [0:2^31], WINDOW_UPDATE for connection flow control |
| 38 // advertises value in 1024-byte units, WINDOW_UPDATE | 38 // advertises value in 1024-byte units, WINDOW_UPDATE |
| 39 // splits into MAX_DATA and MAX_STREAM_DATA, BLOCKED | 39 // splits into MAX_DATA and MAX_STREAM_DATA, BLOCKED |
| 40 // frame split into BLOCKED and STREAM_BLOCKED frames | 40 // frame split into BLOCKED and STREAM_BLOCKED frames |
| 41 | 41 |
| 42 QUIC_VERSION_DEFAULT = QUIC_VERSION_37, // Default version enabled in |
| 43 // HttpNetworkSessions. |
| 44 |
| 42 // IMPORTANT: if you are adding to this list, follow the instructions at | 45 // IMPORTANT: if you are adding to this list, follow the instructions at |
| 43 // http://sites/quic/adding-and-removing-versions | 46 // http://sites/quic/adding-and-removing-versions |
| 44 }; | 47 }; |
| 45 | 48 |
| 46 // This vector contains QUIC versions which we currently support. | 49 // This vector contains QUIC versions which we currently support. |
| 47 // This should be ordered such that the highest supported version is the first | 50 // This should be ordered such that the highest supported version is the first |
| 48 // element, with subsequent elements in descending order (versions can be | 51 // element, with subsequent elements in descending order (versions can be |
| 49 // skipped as necessary). | 52 // skipped as necessary). |
| 50 // | 53 // |
| 51 // IMPORTANT: if you are adding to this list, follow the instructions at | 54 // IMPORTANT: if you are adding to this list, follow the instructions at |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 QUIC_EXPORT_PRIVATE std::string QuicVersionToString(const QuicVersion version); | 91 QUIC_EXPORT_PRIVATE std::string QuicVersionToString(const QuicVersion version); |
| 89 | 92 |
| 90 // Returns comma separated list of string representations of QuicVersion enum | 93 // Returns comma separated list of string representations of QuicVersion enum |
| 91 // values in the supplied |versions| vector. | 94 // values in the supplied |versions| vector. |
| 92 QUIC_EXPORT_PRIVATE std::string QuicVersionVectorToString( | 95 QUIC_EXPORT_PRIVATE std::string QuicVersionVectorToString( |
| 93 const QuicVersionVector& versions); | 96 const QuicVersionVector& versions); |
| 94 | 97 |
| 95 } // namespace net | 98 } // namespace net |
| 96 | 99 |
| 97 #endif // NET_QUIC_CORE_QUIC_VERSIONS_H_ | 100 #endif // NET_QUIC_CORE_QUIC_VERSIONS_H_ |
| OLD | NEW |