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_QUIC_PROTOCOL_H_ | 5 #ifndef NET_QUIC_QUIC_PROTOCOL_H_ |
6 #define NET_QUIC_QUIC_PROTOCOL_H_ | 6 #define NET_QUIC_QUIC_PROTOCOL_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <limits> | 9 #include <limits> |
10 #include <list> | 10 #include <list> |
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
306 | 306 |
307 // This vector contains QUIC versions which we currently support. | 307 // This vector contains QUIC versions which we currently support. |
308 // This should be ordered such that the highest supported version is the first | 308 // This should be ordered such that the highest supported version is the first |
309 // element, with subsequent elements in descending order (versions can be | 309 // element, with subsequent elements in descending order (versions can be |
310 // skipped as necessary). | 310 // skipped as necessary). |
311 // | 311 // |
312 // IMPORTANT: if you are adding to this list, follow the instructions at | 312 // IMPORTANT: if you are adding to this list, follow the instructions at |
313 // http://sites/quic/adding-and-removing-versions | 313 // http://sites/quic/adding-and-removing-versions |
314 static const QuicVersion kSupportedQuicVersions[] = {QUIC_VERSION_23, | 314 static const QuicVersion kSupportedQuicVersions[] = {QUIC_VERSION_23, |
315 QUIC_VERSION_22, | 315 QUIC_VERSION_22, |
316 QUIC_VERSION_21, | |
317 QUIC_VERSION_19}; | 316 QUIC_VERSION_19}; |
318 | 317 |
319 typedef std::vector<QuicVersion> QuicVersionVector; | 318 typedef std::vector<QuicVersion> QuicVersionVector; |
320 | 319 |
321 // Returns a vector of QUIC versions in kSupportedQuicVersions. | 320 // Returns a vector of QUIC versions in kSupportedQuicVersions. |
322 NET_EXPORT_PRIVATE QuicVersionVector QuicSupportedVersions(); | 321 NET_EXPORT_PRIVATE QuicVersionVector QuicSupportedVersions(); |
323 | 322 |
324 // QuicTag is written to and read from the wire, but we prefer to use | 323 // QuicTag is written to and read from the wire, but we prefer to use |
325 // the more readable QuicVersion at other levels. | 324 // the more readable QuicVersion at other levels. |
326 // Helper function which translates from a QuicVersion to a QuicTag. Returns 0 | 325 // Helper function which translates from a QuicVersion to a QuicTag. Returns 0 |
(...skipping 754 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1081 SequenceNumberList* all_transmissions; | 1080 SequenceNumberList* all_transmissions; |
1082 // In flight packets have not been abandoned or lost. | 1081 // In flight packets have not been abandoned or lost. |
1083 bool in_flight; | 1082 bool in_flight; |
1084 // True if the packet can never be acked, so it can be removed. | 1083 // True if the packet can never be acked, so it can be removed. |
1085 bool is_unackable; | 1084 bool is_unackable; |
1086 }; | 1085 }; |
1087 | 1086 |
1088 } // namespace net | 1087 } // namespace net |
1089 | 1088 |
1090 #endif // NET_QUIC_QUIC_PROTOCOL_H_ | 1089 #endif // NET_QUIC_QUIC_PROTOCOL_H_ |
OLD | NEW |