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 1062 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1073 RetransmittableFrames* retransmittable_frames; | 1073 RetransmittableFrames* retransmittable_frames; |
1074 QuicSequenceNumberLength sequence_number_length; | 1074 QuicSequenceNumberLength sequence_number_length; |
1075 // Zero when the packet is serialized, non-zero once it's sent. | 1075 // Zero when the packet is serialized, non-zero once it's sent. |
1076 QuicTime sent_time; | 1076 QuicTime sent_time; |
1077 // Zero when the packet is serialized, non-zero once it's sent. | 1077 // Zero when the packet is serialized, non-zero once it's sent. |
1078 QuicByteCount bytes_sent; | 1078 QuicByteCount bytes_sent; |
1079 size_t nack_count; | 1079 size_t nack_count; |
1080 // Reason why this packet was transmitted. | 1080 // Reason why this packet was transmitted. |
1081 TransmissionType transmission_type; | 1081 TransmissionType transmission_type; |
1082 // Stores the sequence numbers of all transmissions of this packet. | 1082 // Stores the sequence numbers of all transmissions of this packet. |
1083 // Must always be NULL or have multiple elements. | 1083 // Must always be nullptr or have multiple elements. |
1084 SequenceNumberList* all_transmissions; | 1084 SequenceNumberList* all_transmissions; |
1085 // In flight packets have not been abandoned or lost. | 1085 // In flight packets have not been abandoned or lost. |
1086 bool in_flight; | 1086 bool in_flight; |
1087 // True if the packet can never be acked, so it can be removed. | 1087 // True if the packet can never be acked, so it can be removed. |
1088 bool is_unackable; | 1088 bool is_unackable; |
1089 }; | 1089 }; |
1090 | 1090 |
1091 } // namespace net | 1091 } // namespace net |
1092 | 1092 |
1093 #endif // NET_QUIC_QUIC_PROTOCOL_H_ | 1093 #endif // NET_QUIC_QUIC_PROTOCOL_H_ |
OLD | NEW |