1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "base/basictypes.h"
6 #include "net/quic/congestion_control/tcp_receiver.h"
10 // Originally 64K bytes, but increased it to 256K to support higher bitrates.
12 const QuicByteCount
TcpReceiver::kReceiveWindowTCP
= 256000;
14 TcpReceiver::TcpReceiver()
15 : receive_window_(kReceiveWindowTCP
) {
18 bool TcpReceiver::GenerateCongestionFeedback(
19 QuicCongestionFeedbackFrame
* feedback
) {
20 feedback
->type
= kTCP
;
21 feedback
->tcp
.receive_window
= receive_window_
;
25 void TcpReceiver::RecordIncomingPacket(QuicByteCount bytes
,
26 QuicPacketSequenceNumber sequence_number
,