Index: net/quic/quic_connection.h |
diff --git a/net/quic/quic_connection.h b/net/quic/quic_connection.h |
index c7b34b759a7d9e664d26ec0ab1087156d2589a1c..136a96e7174b82ef8a8339cbea8ab61d48306494 100644 |
--- a/net/quic/quic_connection.h |
+++ b/net/quic/quic_connection.h |
@@ -578,13 +578,16 @@ class NET_EXPORT_PRIVATE QuicConnection |
// Update the |sent_info| for an outgoing ack. |
void UpdateSentPacketInfo(SentPacketInfo* sent_info); |
+ // Queues an ack or sets the ack alarm when an incoming packet arrives that |
+ // should be acked. |
+ void MaybeQueueAck(); |
+ |
// Checks if the last packet should instigate an ack. |
bool ShouldLastPacketInstigateAck(); |
// Sends any packets which are a response to the last packet, including both |
// acks and pending writes if an ack opened the congestion window. |
- void MaybeSendInResponseToPacket(bool send_ack_immediately, |
- bool last_packet_should_instigate_ack); |
+ void MaybeSendInResponseToPacket(); |
// Get the FEC group associate with the last processed packet or NULL, if the |
// group has already been deleted. |
@@ -647,6 +650,9 @@ class NET_EXPORT_PRIVATE QuicConnection |
QuicReceivedPacketManager received_packet_manager_; |
QuicSentEntropyManager sent_entropy_manager_; |
+ // Indicates whether an ack should be sent the next time we try to write. |
+ bool ack_queued_; |
+ |
// An alarm that fires when an ACK should be sent to the peer. |
scoped_ptr<QuicAlarm> ack_alarm_; |
// An alarm that fires when a packet needs to be retransmitted. |