Index: net/quic/quic_sent_packet_manager.cc |
diff --git a/net/quic/quic_sent_packet_manager.cc b/net/quic/quic_sent_packet_manager.cc |
index e0f49377f4cab2df5fb761b812385eb792679064..1de5dac46e5ba83e16115bb73ed8147396b45bb0 100644 |
--- a/net/quic/quic_sent_packet_manager.cc |
+++ b/net/quic/quic_sent_packet_manager.cc |
@@ -310,17 +310,16 @@ bool QuicSentPacketManager::HasRetransmittableFrames( |
} |
void QuicSentPacketManager::RetransmitUnackedPackets( |
- RetransmissionType retransmission_type) { |
+ TransmissionType retransmission_type) { |
+ DCHECK(retransmission_type == ALL_UNACKED_RETRANSMISSION || |
+ retransmission_type == ALL_INITIAL_RETRANSMISSION); |
QuicPacketSequenceNumber sequence_number = unacked_packets_.GetLeastUnacked(); |
for (QuicUnackedPacketMap::const_iterator it = unacked_packets_.begin(); |
it != unacked_packets_.end(); ++it, ++sequence_number) { |
const RetransmittableFrames* frames = it->retransmittable_frames; |
- // TODO(ianswett): Consider adding a new retransmission type which removes |
- // all these old packets from unacked and retransmits them as new sequence |
- // numbers with no connection to the previous ones. |
- if (frames != NULL && (retransmission_type == ALL_PACKETS || |
+ if (frames != NULL && (retransmission_type == ALL_UNACKED_RETRANSMISSION || |
frames->encryption_level() == ENCRYPTION_INITIAL)) { |
- MarkForRetransmission(sequence_number, ALL_UNACKED_RETRANSMISSION); |
+ MarkForRetransmission(sequence_number, retransmission_type); |
} |
} |
} |