Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(161)

Side by Side Diff: net/quic/congestion_control/tcp_receiver.cc

Issue 862133002: Update from https://crrev.com/312398 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/basictypes.h" 5 #include "base/basictypes.h"
6 #include "net/quic/congestion_control/tcp_receiver.h" 6 #include "net/quic/congestion_control/tcp_receiver.h"
7 7
8 namespace net { 8 namespace net {
9 9
10 // Originally 64K bytes, but increased it to 256K to support higher bitrates. 10 // Originally 64K bytes, but increased it to 256K to support higher bitrates.
11 // static 11 // static
12 const QuicByteCount TcpReceiver::kReceiveWindowTCP = 256000; 12 const QuicByteCount TcpReceiver::kReceiveWindowTCP = 256000;
13 13
14 TcpReceiver::TcpReceiver() 14 TcpReceiver::TcpReceiver()
15 : receive_window_(kReceiveWindowTCP) { 15 : receive_window_(kReceiveWindowTCP) {
16 } 16 }
17 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, 18 void TcpReceiver::RecordIncomingPacket(QuicByteCount bytes,
26 QuicPacketSequenceNumber sequence_number, 19 QuicPacketSequenceNumber sequence_number,
27 QuicTime timestamp) { 20 QuicTime timestamp) {
28 } 21 }
29 22
30 } // namespace net 23 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698