Index: net/quic/quic_sent_packet_manager.h |
diff --git a/net/quic/quic_sent_packet_manager.h b/net/quic/quic_sent_packet_manager.h |
index 89a3b6d26a93e6ce344ab6d1fb1254cdaf3fef11..af400726f0ca5fa172c5357ae8cf3505a9634f84 100644 |
--- a/net/quic/quic_sent_packet_manager.h |
+++ b/net/quic/quic_sent_packet_manager.h |
@@ -52,6 +52,24 @@ class NET_EXPORT_PRIVATE QuicSentPacketManager { |
virtual void OnSpuriousPacketRetransmition( |
TransmissionType transmission_type, |
QuicByteCount byte_size) {} |
+ |
+ virtual void OnSentPacket( |
+ QuicPacketSequenceNumber sequence_number, |
+ QuicTime sent_time, |
+ QuicByteCount bytes) {} |
+ |
+ virtual void OnRetransmittedPacket( |
+ QuicPacketSequenceNumber old_sequence_number, |
+ QuicPacketSequenceNumber new_sequence_number, |
+ TransmissionType transmission_type, |
+ QuicTime time) {} |
+ |
+ virtual void OnIncomingAck( |
+ const ReceivedPacketInfo& received_info, |
+ QuicTime ack_receive_time, |
+ QuicPacketSequenceNumber largest_observed, |
+ bool largest_observed_acked, |
+ QuicPacketSequenceNumber least_unacked_sent_packet) {} |
}; |
// Struct to store the pending retransmission information. |
@@ -173,6 +191,11 @@ class NET_EXPORT_PRIVATE QuicSentPacketManager { |
// window and will return 0. |
QuicByteCount GetCongestionWindow() const; |
+ // Returns the size of the slow start congestion window in bytes, |
+ // aka ssthresh. Some send algorithms do not define a slow start |
+ // threshold and will return 0. |
+ QuicByteCount GetSlowStartThreshold() const; |
+ |
// Enables pacing if it has not already been enabled, and if |
// FLAGS_enable_quic_pacing is set. |
void MaybeEnablePacing(); |