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

Unified Diff: net/quic/quic_protocol.cc

Issue 1008593005: Add a new method to the QuicUnackedPacketMap to stop retransmitting (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Create_TcpCubicSender_88159377
Patch Set: 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_protocol.h ('k') | net/quic/quic_unacked_packet_map.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_protocol.cc
diff --git a/net/quic/quic_protocol.cc b/net/quic/quic_protocol.cc
index a034cfba7e35bf09b7337010842e1625e914775b..284586ae6029fb68730d6de744555617bd4c1a0c 100644
--- a/net/quic/quic_protocol.cc
+++ b/net/quic/quic_protocol.cc
@@ -624,6 +624,18 @@ const QuicFrame& RetransmittableFrames::AddNonStreamFrame(
return frames_.back();
}
+void RetransmittableFrames::RemoveFramesForStream(QuicStreamId stream_id) {
+ QuicFrames::iterator it = frames_.begin();
+ while (it != frames_.end()) {
+ if (it->type != STREAM_FRAME || it->stream_frame->stream_id != stream_id) {
+ ++it;
+ continue;
+ }
+ delete it->stream_frame;
+ it = frames_.erase(it);
+ }
+}
+
SerializedPacket::SerializedPacket(
QuicPacketSequenceNumber sequence_number,
QuicSequenceNumberLength sequence_number_length,
« no previous file with comments | « net/quic/quic_protocol.h ('k') | net/quic/quic_unacked_packet_map.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698