| Index: net/quic/quic_connection.h
|
| diff --git a/net/quic/quic_connection.h b/net/quic/quic_connection.h
|
| index 72f0272173680a77dd7838e47cd5090735f22359..fa17503223d0c167d29881e76fd0274390719c74 100644
|
| --- a/net/quic/quic_connection.h
|
| +++ b/net/quic/quic_connection.h
|
| @@ -414,6 +414,10 @@ class NET_EXPORT_PRIVATE QuicConnection
|
| // If the socket is not blocked, writes queued packets.
|
| void WriteIfNotBlocked();
|
|
|
| + // If the socket is not blocked, writes queued packets and bundles any pending
|
| + // ACKs.
|
| + void WriteAndBundleAcksIfNotBlocked();
|
| +
|
| // Set the packet writer.
|
| void SetQuicPacketWriter(QuicPacketWriter* writer, bool owns_writer) {
|
| DCHECK(writer != nullptr);
|
| @@ -713,6 +717,13 @@ class NET_EXPORT_PRIVATE QuicConnection
|
| per_packet_options_ = options;
|
| }
|
|
|
| + // If |defer| is true, configures the connection to defer sending packets in
|
| + // response to an ACK to the SendAlarm. If |defer| is false, packets may be
|
| + // sent immediately after receiving an ACK.
|
| + void set_defer_send_in_response_to_packets(bool defer) {
|
| + defer_send_in_response_to_packets_ = defer;
|
| + }
|
| +
|
| private:
|
| friend class test::QuicConnectionPeer;
|
| friend class test::PacketSavingConnection;
|
| @@ -937,6 +948,10 @@ class NET_EXPORT_PRIVATE QuicConnection
|
| // Indicates the retransmission alarm needs to be set.
|
| bool pending_retransmission_alarm_;
|
|
|
| + // If true, defer sending data in response to received packets to the
|
| + // SendAlarm.
|
| + bool defer_send_in_response_to_packets_;
|
| +
|
| // Arena to store class implementations within the QuicConnection.
|
| QuicConnectionArena arena_;
|
|
|
|
|