Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / net / quic / congestion_control / tcp_receiver.cc
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.
4
5 #include "base/basictypes.h"
6 #include "net/quic/congestion_control/tcp_receiver.h"
7
8 namespace net {
9
10 // Originally 64K bytes, but increased it to 256K to support higher bitrates.
11 // static
12 const QuicByteCount TcpReceiver::kReceiveWindowTCP = 256000;
13
14 TcpReceiver::TcpReceiver()
15     : receive_window_(kReceiveWindowTCP) {
16 }
17
18 bool TcpReceiver::GenerateCongestionFeedback(
19     QuicCongestionFeedbackFrame* feedback) {
20   feedback->type = kTCP;
21   feedback->tcp.receive_window = receive_window_;
22   return true;
23 }
24
25 void TcpReceiver::RecordIncomingPacket(QuicByteCount bytes,
26                                        QuicPacketSequenceNumber sequence_number,
27                                        QuicTime timestamp) {
28 }
29
30 }  // namespace net