| 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 <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 952 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 963 | 963 |
| 964 // Time elapsed since largest_observed was received until this Ack frame was | 964 // Time elapsed since largest_observed was received until this Ack frame was |
| 965 // sent. | 965 // sent. |
| 966 QuicTime::Delta ack_delay_time; | 966 QuicTime::Delta ack_delay_time; |
| 967 | 967 |
| 968 // Vector of <packet_number, time> for when packets arrived. | 968 // Vector of <packet_number, time> for when packets arrived. |
| 969 PacketTimeVector received_packet_times; | 969 PacketTimeVector received_packet_times; |
| 970 | 970 |
| 971 // The set of packets which we're expecting and have not received. | 971 // The set of packets which we're expecting and have not received. |
| 972 PacketNumberQueue missing_packets; | 972 PacketNumberQueue missing_packets; |
| 973 | |
| 974 // Packet most recently revived via FEC, 0 if no packet was revived by FEC. | |
| 975 // If non-zero, must be present in missing_packets. | |
| 976 QuicPacketNumber latest_revived_packet; | |
| 977 }; | 973 }; |
| 978 | 974 |
| 979 // True if the packet number is greater than largest_observed or is listed | 975 // True if the packet number is greater than largest_observed or is listed |
| 980 // as missing. | 976 // as missing. |
| 981 // Always returns false for packet numbers less than least_unacked. | 977 // Always returns false for packet numbers less than least_unacked. |
| 982 bool NET_EXPORT_PRIVATE IsAwaitingPacket(const QuicAckFrame& ack_frame, | 978 bool NET_EXPORT_PRIVATE IsAwaitingPacket(const QuicAckFrame& ack_frame, |
| 983 QuicPacketNumber packet_number); | 979 QuicPacketNumber packet_number); |
| 984 | 980 |
| 985 // Defines for all types of congestion control algorithms that can be used in | 981 // Defines for all types of congestion control algorithms that can be used in |
| 986 // QUIC. Note that this is separate from the congestion feedback type - | 982 // QUIC. Note that this is separate from the congestion feedback type - |
| (...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1389 : iov(iov), iov_count(iov_count), total_length(total_length) {} | 1385 : iov(iov), iov_count(iov_count), total_length(total_length) {} |
| 1390 | 1386 |
| 1391 const struct iovec* iov; | 1387 const struct iovec* iov; |
| 1392 const int iov_count; | 1388 const int iov_count; |
| 1393 const size_t total_length; | 1389 const size_t total_length; |
| 1394 }; | 1390 }; |
| 1395 | 1391 |
| 1396 } // namespace net | 1392 } // namespace net |
| 1397 | 1393 |
| 1398 #endif // NET_QUIC_QUIC_PROTOCOL_H_ | 1394 #endif // NET_QUIC_QUIC_PROTOCOL_H_ |
| OLD | NEW |