OLD | NEW |
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 // Fix rate receive side congestion control, used for initial testing. | 5 // Fix rate receive side congestion control, used for initial testing. |
6 | 6 |
7 #ifndef NET_QUIC_CONGESTION_CONTROL_FIX_RATE_RECEIVER_H_ | 7 #ifndef NET_QUIC_CONGESTION_CONTROL_FIX_RATE_RECEIVER_H_ |
8 #define NET_QUIC_CONGESTION_CONTROL_FIX_RATE_RECEIVER_H_ | 8 #define NET_QUIC_CONGESTION_CONTROL_FIX_RATE_RECEIVER_H_ |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 13 matching lines...) Expand all Loading... |
24 FixRateReceiver(); | 24 FixRateReceiver(); |
25 | 25 |
26 // Implements ReceiveAlgorithmInterface. | 26 // Implements ReceiveAlgorithmInterface. |
27 virtual bool GenerateCongestionFeedback( | 27 virtual bool GenerateCongestionFeedback( |
28 QuicCongestionFeedbackFrame* feedback) OVERRIDE; | 28 QuicCongestionFeedbackFrame* feedback) OVERRIDE; |
29 | 29 |
30 // Implements ReceiveAlgorithmInterface. | 30 // Implements ReceiveAlgorithmInterface. |
31 virtual void RecordIncomingPacket(QuicByteCount bytes, | 31 virtual void RecordIncomingPacket(QuicByteCount bytes, |
32 QuicPacketSequenceNumber sequence_number, | 32 QuicPacketSequenceNumber sequence_number, |
33 QuicTime timestamp) OVERRIDE; | 33 QuicTime timestamp) OVERRIDE; |
| 34 |
34 private: | 35 private: |
35 friend class test::FixRateReceiverPeer; | 36 friend class test::FixRateReceiverPeer; |
36 | 37 |
37 QuicBandwidth configured_rate_; | 38 QuicBandwidth configured_rate_; |
38 | 39 |
39 DISALLOW_COPY_AND_ASSIGN(FixRateReceiver); | 40 DISALLOW_COPY_AND_ASSIGN(FixRateReceiver); |
40 }; | 41 }; |
41 | 42 |
42 } // namespace net | 43 } // namespace net |
43 #endif // NET_QUIC_CONGESTION_CONTROL_FIX_RATE_RECEIVER_H_ | 44 #endif // NET_QUIC_CONGESTION_CONTROL_FIX_RATE_RECEIVER_H_ |
OLD | NEW |