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

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

Issue 935333002: Update from https://crrev.com/316786 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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
(Empty)
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 // TCP receiver side congestion algorithm, emulates the behaviour of TCP.
6
7 #ifndef NET_QUIC_CONGESTION_CONTROL_TCP_RECEIVER_H_
8 #define NET_QUIC_CONGESTION_CONTROL_TCP_RECEIVER_H_
9
10 #include "base/basictypes.h"
11 #include "base/compiler_specific.h"
12 #include "net/base/net_export.h"
13 #include "net/quic/congestion_control/receive_algorithm_interface.h"
14 #include "net/quic/quic_clock.h"
15 #include "net/quic/quic_protocol.h"
16
17 namespace net {
18
19 class NET_EXPORT_PRIVATE TcpReceiver : public ReceiveAlgorithmInterface {
20 public:
21 TcpReceiver();
22
23 // Size of the (currently fixed) receive window.
24 static const QuicByteCount kReceiveWindowTCP;
25
26 void RecordIncomingPacket(QuicByteCount bytes,
27 QuicPacketSequenceNumber sequence_number,
28 QuicTime timestamp) override;
29
30 private:
31 QuicByteCount receive_window_;
32
33 DISALLOW_COPY_AND_ASSIGN(TcpReceiver);
34 };
35
36 } // namespace net
37 #endif // NET_QUIC_CONGESTION_CONTROL_TCP_RECEIVER_H_
OLDNEW
« no previous file with comments | « net/quic/congestion_control/tcp_loss_algorithm_test.cc ('k') | net/quic/congestion_control/tcp_receiver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698