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

Unified Diff: net/quic/quic_unacked_packet_map.cc

Issue 1014433002: Land Recent QUIC Changes until 03/09/2015. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@replaces_Perspective_enun_88006458
Patch Set: Rebase - added NET_EXPORT_PRIVATE to fix compiler error Created 5 years, 9 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/quic_unacked_packet_map.h ('k') | net/quic/quic_unacked_packet_map_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_unacked_packet_map.cc
diff --git a/net/quic/quic_unacked_packet_map.cc b/net/quic/quic_unacked_packet_map.cc
index 194443bfadcf871068637040fbf229dec68de3a1..0ada9f62c521c8c5119eb8e6b082db2cb3a33058 100644
--- a/net/quic/quic_unacked_packet_map.cc
+++ b/net/quic/quic_unacked_packet_map.cc
@@ -300,6 +300,25 @@ void QuicUnackedPacketMap::RemoveFromInFlight(
}
}
+void QuicUnackedPacketMap::StopRetransmissionForStream(QuicStreamId stream_id) {
+ if (stream_id == kCryptoStreamId || stream_id == kHeadersStreamId) {
+ LOG(DFATAL) << "Special streams must always retransmit data: " << stream_id;
+ return;
+ }
+ QuicPacketSequenceNumber sequence_number = least_unacked_;
+ for (UnackedPacketMap::const_iterator it = unacked_packets_.begin();
+ it != unacked_packets_.end(); ++it, ++sequence_number) {
+ RetransmittableFrames* retransmittable_frames = it->retransmittable_frames;
+ if (!retransmittable_frames) {
+ continue;
+ }
+ retransmittable_frames->RemoveFramesForStream(stream_id);
+ if (retransmittable_frames->frames().empty()) {
+ RemoveRetransmittability(sequence_number);
+ }
+ }
+}
+
bool QuicUnackedPacketMap::HasUnackedPackets() const {
return !unacked_packets_.empty();
}
« no previous file with comments | « net/quic/quic_unacked_packet_map.h ('k') | net/quic/quic_unacked_packet_map_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698