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

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

Issue 266243004: Clang format slam. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 | Annotate | Revision Log
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() : receive_window_(kReceiveWindowTCP) {
15 : receive_window_(kReceiveWindowTCP) {
16 } 15 }
17 16
18 bool TcpReceiver::GenerateCongestionFeedback( 17 bool TcpReceiver::GenerateCongestionFeedback(
19 QuicCongestionFeedbackFrame* feedback) { 18 QuicCongestionFeedbackFrame* feedback) {
20 feedback->type = kTCP; 19 feedback->type = kTCP;
21 feedback->tcp.receive_window = receive_window_; 20 feedback->tcp.receive_window = receive_window_;
22 return true; 21 return true;
23 } 22 }
24 23
25 void TcpReceiver::RecordIncomingPacket(QuicByteCount bytes, 24 void TcpReceiver::RecordIncomingPacket(QuicByteCount bytes,
26 QuicPacketSequenceNumber sequence_number, 25 QuicPacketSequenceNumber sequence_number,
27 QuicTime timestamp) { 26 QuicTime timestamp) {
28 } 27 }
29 28
30 } // namespace net 29 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698