| Index: net/quic/quic_connection.cc
|
| diff --git a/net/quic/quic_connection.cc b/net/quic/quic_connection.cc
|
| index e5bcbb98371b137dfd9a9a74a000982a73fb4da4..8ddf4555e1446e02f21153ba5e03014000602f1d 100644
|
| --- a/net/quic/quic_connection.cc
|
| +++ b/net/quic/quic_connection.cc
|
| @@ -969,6 +969,20 @@ void QuicConnection::SendRstStream(QuicStreamId id,
|
| QuicFrame(new QuicRstStreamFrame(id, error, bytes_written)));
|
| }
|
|
|
| +void QuicConnection::SendWindowUpdate(QuicStreamId id,
|
| + QuicStreamOffset byte_offset) {
|
| + // Opportunistically bundle an ack with this outgoing packet.
|
| + ScopedPacketBundler ack_bundler(this, BUNDLE_PENDING_ACK);
|
| + packet_generator_.AddControlFrame(
|
| + QuicFrame(new QuicWindowUpdateFrame(id, byte_offset)));
|
| +}
|
| +
|
| +void QuicConnection::SendBlocked(QuicStreamId id) {
|
| + // Opportunistically bundle an ack with this outgoing packet.
|
| + ScopedPacketBundler ack_bundler(this, BUNDLE_PENDING_ACK);
|
| + packet_generator_.AddControlFrame(QuicFrame(new QuicBlockedFrame(id)));
|
| +}
|
| +
|
| const QuicConnectionStats& QuicConnection::GetStats() {
|
| // Update rtt and estimated bandwidth.
|
| stats_.rtt = sent_packet_manager_.SmoothedRtt().ToMicroseconds();
|
|
|