| 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 <map> | 10 #include <map> |
| (...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 271 // The available versions of QUIC. Guaranteed that the integer value of the enum | 271 // The available versions of QUIC. Guaranteed that the integer value of the enum |
| 272 // will match the version number. | 272 // will match the version number. |
| 273 // When adding a new version to this enum you should add it to | 273 // When adding a new version to this enum you should add it to |
| 274 // kSupportedQuicVersions (if appropriate), and also add a new case to the | 274 // kSupportedQuicVersions (if appropriate), and also add a new case to the |
| 275 // helper methods QuicVersionToQuicTag, QuicTagToQuicVersion, and | 275 // helper methods QuicVersionToQuicTag, QuicTagToQuicVersion, and |
| 276 // QuicVersionToString. | 276 // QuicVersionToString. |
| 277 enum QuicVersion { | 277 enum QuicVersion { |
| 278 // Special case to indicate unknown/unsupported QUIC version. | 278 // Special case to indicate unknown/unsupported QUIC version. |
| 279 QUIC_VERSION_UNSUPPORTED = 0, | 279 QUIC_VERSION_UNSUPPORTED = 0, |
| 280 | 280 |
| 281 QUIC_VERSION_15 = 15, | 281 QUIC_VERSION_15 = 15, // Revived packets in ReceivedPacketInfo. |
| 282 QUIC_VERSION_16 = 16, | 282 QUIC_VERSION_16 = 16, // STOP_WAITING frame. |
| 283 QUIC_VERSION_18 = 18, | 283 QUIC_VERSION_18 = 18, // PING frame. |
| 284 QUIC_VERSION_19 = 19, | 284 QUIC_VERSION_19 = 19, // Session level flow control. |
| 285 QUIC_VERSION_20 = 20, | 285 QUIC_VERSION_20 = 20, // Independent stream/session flow control windows. |
| 286 QUIC_VERSION_21 = 21, // Current version. | 286 QUIC_VERSION_21 = 21, // Headers/crypto streams are flow controlled. |
| 287 }; | 287 }; |
| 288 | 288 |
| 289 // This vector contains QUIC versions which we currently support. | 289 // This vector contains QUIC versions which we currently support. |
| 290 // This should be ordered such that the highest supported version is the first | 290 // This should be ordered such that the highest supported version is the first |
| 291 // element, with subsequent elements in descending order (versions can be | 291 // element, with subsequent elements in descending order (versions can be |
| 292 // skipped as necessary). | 292 // skipped as necessary). |
| 293 // | 293 // |
| 294 // IMPORTANT: if you are addding to this list, follow the instructions at | 294 // IMPORTANT: if you are addding to this list, follow the instructions at |
| 295 // http://sites/quic/adding-and-removing-versions | 295 // http://sites/quic/adding-and-removing-versions |
| 296 static const QuicVersion kSupportedQuicVersions[] = {QUIC_VERSION_21, | 296 static const QuicVersion kSupportedQuicVersions[] = {QUIC_VERSION_21, |
| (...skipping 770 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1067 // Stores the sequence numbers of all transmissions of this packet. | 1067 // Stores the sequence numbers of all transmissions of this packet. |
| 1068 // Can never be null. | 1068 // Can never be null. |
| 1069 SequenceNumberSet* all_transmissions; | 1069 SequenceNumberSet* all_transmissions; |
| 1070 // In flight packets have not been abandoned or lost. | 1070 // In flight packets have not been abandoned or lost. |
| 1071 bool in_flight; | 1071 bool in_flight; |
| 1072 }; | 1072 }; |
| 1073 | 1073 |
| 1074 } // namespace net | 1074 } // namespace net |
| 1075 | 1075 |
| 1076 #endif // NET_QUIC_QUIC_PROTOCOL_H_ | 1076 #endif // NET_QUIC_QUIC_PROTOCOL_H_ |
| OLD | NEW |