OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_SENT_PACKET_MANAGER_H_ | 5 #ifndef NET_QUIC_QUIC_SENT_PACKET_MANAGER_H_ |
6 #define NET_QUIC_QUIC_SENT_PACKET_MANAGER_H_ | 6 #define NET_QUIC_QUIC_SENT_PACKET_MANAGER_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
384 bool use_new_rto_; | 384 bool use_new_rto_; |
385 // If true, cancel pending retransmissions if they're larger than | 385 // If true, cancel pending retransmissions if they're larger than |
386 // largest_newly_acked. | 386 // largest_newly_acked. |
387 bool undo_pending_retransmits_; | 387 bool undo_pending_retransmits_; |
388 | 388 |
389 // Vectors packets acked and lost as a result of the last congestion event. | 389 // Vectors packets acked and lost as a result of the last congestion event. |
390 SendAlgorithmInterface::CongestionVector packets_acked_; | 390 SendAlgorithmInterface::CongestionVector packets_acked_; |
391 SendAlgorithmInterface::CongestionVector packets_lost_; | 391 SendAlgorithmInterface::CongestionVector packets_lost_; |
392 // Largest newly acknowledged packet. | 392 // Largest newly acknowledged packet. |
393 QuicPacketNumber largest_newly_acked_; | 393 QuicPacketNumber largest_newly_acked_; |
| 394 // Largest packet in bytes ever acknowledged. |
| 395 QuicPacketLength largest_mtu_acked_; |
394 | 396 |
395 // Set to true after the crypto handshake has successfully completed. After | 397 // Set to true after the crypto handshake has successfully completed. After |
396 // this is true we no longer use HANDSHAKE_MODE, and further frames sent on | 398 // this is true we no longer use HANDSHAKE_MODE, and further frames sent on |
397 // the crypto stream (i.e. SCUP messages) are treated like normal | 399 // the crypto stream (i.e. SCUP messages) are treated like normal |
398 // retransmittable frames. | 400 // retransmittable frames. |
399 bool handshake_confirmed_; | 401 bool handshake_confirmed_; |
400 | 402 |
401 // Records bandwidth from server to client in normal operation, over periods | 403 // Records bandwidth from server to client in normal operation, over periods |
402 // of time with no loss events. | 404 // of time with no loss events. |
403 QuicSustainedBandwidthRecorder sustained_bandwidth_recorder_; | 405 QuicSustainedBandwidthRecorder sustained_bandwidth_recorder_; |
404 | 406 |
405 DISALLOW_COPY_AND_ASSIGN(QuicSentPacketManager); | 407 DISALLOW_COPY_AND_ASSIGN(QuicSentPacketManager); |
406 }; | 408 }; |
407 | 409 |
408 } // namespace net | 410 } // namespace net |
409 | 411 |
410 #endif // NET_QUIC_QUIC_SENT_PACKET_MANAGER_H_ | 412 #endif // NET_QUIC_QUIC_SENT_PACKET_MANAGER_H_ |
OLD | NEW |