| Index: net/quic/quic_sent_packet_manager.cc
|
| diff --git a/net/quic/quic_sent_packet_manager.cc b/net/quic/quic_sent_packet_manager.cc
|
| index 5ca809d532a92d335abcaf5de7be827a7365bfd5..b5ca9fe9e51f08f7f93e6fe3aeb4ce2a9643c3d7 100644
|
| --- a/net/quic/quic_sent_packet_manager.cc
|
| +++ b/net/quic/quic_sent_packet_manager.cc
|
| @@ -155,6 +155,13 @@ void QuicSentPacketManager::OnRetransmittedPacket(
|
| unacked_packets_.OnRetransmittedPacket(old_sequence_number,
|
| new_sequence_number,
|
| transmission_type);
|
| +
|
| + if (debug_delegate_ != NULL) {
|
| + debug_delegate_->OnRetransmittedPacket(old_sequence_number,
|
| + new_sequence_number,
|
| + transmission_type,
|
| + clock_->ApproximateNow());
|
| + }
|
| }
|
|
|
| void QuicSentPacketManager::OnIncomingAck(
|
| @@ -188,6 +195,14 @@ void QuicSentPacketManager::OnIncomingAck(
|
| consecutive_tlp_count_ = 0;
|
| consecutive_crypto_retransmission_count_ = 0;
|
| }
|
| +
|
| + if (debug_delegate_ != NULL) {
|
| + debug_delegate_->OnIncomingAck(received_info,
|
| + ack_receive_time,
|
| + largest_observed_,
|
| + largest_observed_acked,
|
| + GetLeastUnackedSentPacket());
|
| + }
|
| }
|
|
|
| void QuicSentPacketManager::MaybeInvokeCongestionEvent(
|
| @@ -498,6 +513,10 @@ bool QuicSentPacketManager::OnPacketSent(
|
| has_retransmittable_data);
|
| unacked_packets_.SetSent(sequence_number, sent_time, bytes, in_flight);
|
|
|
| + if (debug_delegate_ != NULL) {
|
| + debug_delegate_->OnSentPacket(sequence_number, sent_time, bytes);
|
| + }
|
| +
|
| // Reset the retransmission timer anytime a pending packet is sent.
|
| return in_flight;
|
| }
|
|
|