| Index: net/quic/quic_connection.h
|
| diff --git a/net/quic/quic_connection.h b/net/quic/quic_connection.h
|
| index 51604db7880012c4dcedb01e0c6f35ce81aabe1b..5a13a61bd7f3676515153152933ddc3c8e5b805d 100644
|
| --- a/net/quic/quic_connection.h
|
| +++ b/net/quic/quic_connection.h
|
| @@ -186,14 +186,16 @@ class NET_EXPORT_PRIVATE QuicConnection : public QuicFramerVisitorInterface {
|
| bool ShouldSimulateLostPacket();
|
|
|
| protected:
|
| - // Send a packet to the peer. If resend is true, this packet contains data,
|
| - // and will be resent if we don't get an ack. If force is true, then the
|
| - // packet will be sent immediately and the send scheduler will not be
|
| - // consulted.
|
| + // Send a packet to the peer. If should_resend is true, this packet contains
|
| + // data, and contents will be resent with a new sequence number if we don't
|
| + // get an ack. If force is true, then the packet will be sent immediately and
|
| + // the send scheduler will not be consulted. If is_retransmit is true, this
|
| + // packet is being retransmitted with a new sequence number.
|
| virtual bool SendPacket(QuicPacketSequenceNumber number,
|
| QuicPacket* packet,
|
| - bool resend,
|
| - bool force);
|
| + bool should_resend,
|
| + bool force,
|
| + bool is_retransmit);
|
|
|
| // Make sure an ack we got from our peer is sane.
|
| bool ValidateAckFrame(const QuicAckFrame& incoming_ack);
|
| @@ -260,13 +262,16 @@ class NET_EXPORT_PRIVATE QuicConnection : public QuicFramerVisitorInterface {
|
| QuicPacketSequenceNumber sequence_number;
|
| QuicPacket* packet;
|
| bool resend;
|
| + bool retransmit;
|
|
|
| QueuedPacket(QuicPacketSequenceNumber sequence_number,
|
| QuicPacket* packet,
|
| - bool resend) {
|
| + bool resend,
|
| + bool retransmit) {
|
| this->sequence_number = sequence_number;
|
| this->packet = packet;
|
| this->resend = resend;
|
| + this->retransmit = retransmit;
|
| }
|
| };
|
| typedef std::list<QueuedPacket> QueuedPacketList;
|
|
|