| 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 <deque> | 8 #include <deque> |
| 9 #include <list> | 9 #include <list> |
| 10 #include <map> | 10 #include <map> |
| (...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 284 AckNotifierManager ack_notifier_manager_; | 284 AckNotifierManager ack_notifier_manager_; |
| 285 | 285 |
| 286 const QuicClock* clock_; | 286 const QuicClock* clock_; |
| 287 QuicConnectionStats* stats_; | 287 QuicConnectionStats* stats_; |
| 288 DebugDelegate* debug_delegate_; | 288 DebugDelegate* debug_delegate_; |
| 289 RttStats rtt_stats_; | 289 RttStats rtt_stats_; |
| 290 scoped_ptr<SendAlgorithmInterface> send_algorithm_; | 290 scoped_ptr<SendAlgorithmInterface> send_algorithm_; |
| 291 scoped_ptr<LossDetectionInterface> loss_algorithm_; | 291 scoped_ptr<LossDetectionInterface> loss_algorithm_; |
| 292 | 292 |
| 293 QuicPacketSequenceNumber largest_observed_; // From the most recent ACK. | 293 QuicPacketSequenceNumber largest_observed_; // From the most recent ACK. |
| 294 // Tracks the first RTO packet. If any packet before that packet gets acked, |
| 295 // it indicates the RTO was spurious and should be reversed(F-RTO). |
| 296 QuicPacketSequenceNumber first_rto_transmission_; |
| 294 // Number of times the RTO timer has fired in a row without receiving an ack. | 297 // Number of times the RTO timer has fired in a row without receiving an ack. |
| 295 size_t consecutive_rto_count_; | 298 size_t consecutive_rto_count_; |
| 296 // Number of times the tail loss probe has been sent. | 299 // Number of times the tail loss probe has been sent. |
| 297 size_t consecutive_tlp_count_; | 300 size_t consecutive_tlp_count_; |
| 298 // Number of times the crypto handshake has been retransmitted. | 301 // Number of times the crypto handshake has been retransmitted. |
| 299 size_t consecutive_crypto_retransmission_count_; | 302 size_t consecutive_crypto_retransmission_count_; |
| 300 // Whether a tlp packet can be sent even if the send algorithm says not to. | 303 // Whether a tlp packet can be sent even if the send algorithm says not to. |
| 301 bool pending_tlp_transmission_; | 304 bool pending_tlp_transmission_; |
| 302 // Maximum number of tail loss probes to send before firing an RTO. | 305 // Maximum number of tail loss probes to send before firing an RTO. |
| 303 size_t max_tail_loss_probes_; | 306 size_t max_tail_loss_probes_; |
| 304 bool using_pacing_; | 307 bool using_pacing_; |
| 305 | 308 |
| 306 // Sets of packets acked and lost as a result of the last congestion event. | 309 // Sets of packets acked and lost as a result of the last congestion event. |
| 307 SendAlgorithmInterface::CongestionMap packets_acked_; | 310 SendAlgorithmInterface::CongestionMap packets_acked_; |
| 308 SendAlgorithmInterface::CongestionMap packets_lost_; | 311 SendAlgorithmInterface::CongestionMap packets_lost_; |
| 309 | 312 |
| 310 DISALLOW_COPY_AND_ASSIGN(QuicSentPacketManager); | 313 DISALLOW_COPY_AND_ASSIGN(QuicSentPacketManager); |
| 311 }; | 314 }; |
| 312 | 315 |
| 313 } // namespace net | 316 } // namespace net |
| 314 | 317 |
| 315 #endif // NET_QUIC_QUIC_SENT_PACKET_MANAGER_H_ | 318 #endif // NET_QUIC_QUIC_SENT_PACKET_MANAGER_H_ |
| OLD | NEW |