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

Unified Diff: net/quic/core/quic_sent_packet_manager.cc

Issue 2916033003: Landing Recent QUIC changes until 03:18 AM, May 28, UTC (Closed)
Patch Set: A few more EXPORTs. Created 3 years, 7 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
« no previous file with comments | « net/quic/core/quic_sent_packet_manager.h ('k') | net/quic/core/quic_session.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/core/quic_sent_packet_manager.cc
diff --git a/net/quic/core/quic_sent_packet_manager.cc b/net/quic/core/quic_sent_packet_manager.cc
index 9b3b3dc9b9434435623297f20c30076fa30bfc60..7233e5212a2db5d031dd619a6ed0a15123ec8dcf 100644
--- a/net/quic/core/quic_sent_packet_manager.cc
+++ b/net/quic/core/quic_sent_packet_manager.cc
@@ -117,6 +117,9 @@ void QuicSentPacketManager::SetFromConfig(const QuicConfig& config) {
}
} else if (config.HasClientRequestedIndependentOption(kBYTE, perspective_)) {
SetSendAlgorithm(kCubic);
+ } else if (FLAGS_quic_reloadable_flag_quic_default_to_bbr &&
+ config.HasClientRequestedIndependentOption(kQBIC, perspective_)) {
+ SetSendAlgorithm(kCubicBytes);
} else if (FLAGS_quic_reloadable_flag_quic_enable_pcc &&
config.HasClientRequestedIndependentOption(kTPCC, perspective_)) {
SetSendAlgorithm(kPCC);
@@ -464,6 +467,7 @@ void QuicSentPacketManager::MarkPacketHandled(QuicPacketNumber packet_number,
// The AckListener needs to be notified about the most recent
// transmission, since that's the one only one it tracks.
if (newest_transmission == packet_number) {
+ unacked_packets_.NotifyStreamFramesAcked(*info, ack_delay_time);
unacked_packets_.NotifyAndClearListeners(&info->ack_listeners,
ack_delay_time);
} else {
@@ -478,6 +482,8 @@ void QuicSentPacketManager::MarkPacketHandled(QuicPacketNumber packet_number,
// only handle nullptr encrypted packets in a special way.
const QuicTransmissionInfo& newest_transmission_info =
unacked_packets_.GetTransmissionInfo(newest_transmission);
+ unacked_packets_.NotifyStreamFramesAcked(newest_transmission_info,
+ ack_delay_time);
if (HasCryptoHandshake(newest_transmission_info)) {
unacked_packets_.RemoveFromInFlight(newest_transmission);
}
@@ -962,4 +968,9 @@ const SendAlgorithmInterface* QuicSentPacketManager::GetSendAlgorithm() const {
return send_algorithm_.get();
}
+void QuicSentPacketManager::SetStreamNotifier(
+ StreamNotifierInterface* stream_notifier) {
+ unacked_packets_.SetStreamNotifier(stream_notifier);
+}
+
} // namespace net
« no previous file with comments | « net/quic/core/quic_sent_packet_manager.h ('k') | net/quic/core/quic_session.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698