Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(90)

Unified Diff: net/quic/congestion_control/send_algorithm_interface.h

Issue 12334063: Land recent QUIC changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more EXPECT_FALSE Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: net/quic/congestion_control/send_algorithm_interface.h
diff --git a/net/quic/congestion_control/send_algorithm_interface.h b/net/quic/congestion_control/send_algorithm_interface.h
index efcc17287822b244527e43e6044a5fe8b4e9519a..9478bb4f2a686e8b6a5c5a4934785b7a79fd8e6c 100644
--- a/net/quic/congestion_control/send_algorithm_interface.h
+++ b/net/quic/congestion_control/send_algorithm_interface.h
@@ -42,6 +42,8 @@ class NET_EXPORT_PRIVATE SendAlgorithmInterface {
// Called when we receive congestion feedback from remote peer.
virtual void OnIncomingQuicCongestionFeedbackFrame(
const QuicCongestionFeedbackFrame& feedback,
+ QuicTime feedback_receive_time,
+ QuicBandwidth sent_bandwidth,
const SentPacketsMap& sent_packets) = 0;
// Called for each received ACK, with sequence number from remote peer.
@@ -49,18 +51,18 @@ class NET_EXPORT_PRIVATE SendAlgorithmInterface {
QuicByteCount acked_bytes,
QuicTime::Delta rtt) = 0;
- virtual void OnIncomingLoss(int number_of_lost_packets) = 0;
+ virtual void OnIncomingLoss(QuicTime ack_receive_time) = 0;
// Inform that we sent x bytes to the wire, and if that was a retransmission.
// Note: this function must be called for every packet sent to the wire.
- virtual void SentPacket(QuicPacketSequenceNumber sequence_number,
+ virtual void SentPacket(QuicTime sent_time,
+ QuicPacketSequenceNumber sequence_number,
QuicByteCount bytes,
bool is_retransmission) = 0;
// Calculate the time until we can send the next packet.
- // Usage: When this returns 0, CongestionWindow returns the number of bytes
- // of the congestion window.
- virtual QuicTime::Delta TimeUntilSend(bool is_retransmission) = 0;
+ virtual QuicTime::Delta TimeUntilSend(QuicTime now,
+ bool is_retransmission) = 0;
// What's the current estimated bandwidth in bytes per second.
// Returns 0 when it does not have an estimate.
« no previous file with comments | « net/quic/congestion_control/quic_congestion_manager.cc ('k') | net/quic/congestion_control/tcp_cubic_sender.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698