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

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

Issue 15937012: Land Recent QUIC changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Small bug fixes Created 7 years, 6 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 // TCP cubic send side congestion algorithm, emulates the behaviour of 5 // TCP cubic send side congestion algorithm, emulates the behaviour of
6 // TCP cubic. 6 // TCP cubic.
7 7
8 #ifndef NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_SENDER_H_ 8 #ifndef NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_SENDER_H_
9 #define NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_SENDER_H_ 9 #define NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_SENDER_H_
10 10
(...skipping 15 matching lines...) Expand all
26 26
27 class NET_EXPORT_PRIVATE TcpCubicSender : public SendAlgorithmInterface { 27 class NET_EXPORT_PRIVATE TcpCubicSender : public SendAlgorithmInterface {
28 public: 28 public:
29 // Reno option provided for testing. 29 // Reno option provided for testing.
30 TcpCubicSender(const QuicClock* clock, bool reno); 30 TcpCubicSender(const QuicClock* clock, bool reno);
31 31
32 // Start implementation of SendAlgorithmInterface. 32 // Start implementation of SendAlgorithmInterface.
33 virtual void OnIncomingQuicCongestionFeedbackFrame( 33 virtual void OnIncomingQuicCongestionFeedbackFrame(
34 const QuicCongestionFeedbackFrame& feedback, 34 const QuicCongestionFeedbackFrame& feedback,
35 QuicTime feedback_receive_time, 35 QuicTime feedback_receive_time,
36 QuicBandwidth sent_bandwidth,
37 const SentPacketsMap& sent_packets) OVERRIDE; 36 const SentPacketsMap& sent_packets) OVERRIDE;
38 virtual void OnIncomingAck(QuicPacketSequenceNumber acked_sequence_number, 37 virtual void OnIncomingAck(QuicPacketSequenceNumber acked_sequence_number,
39 QuicByteCount acked_bytes, 38 QuicByteCount acked_bytes,
40 QuicTime::Delta rtt) OVERRIDE; 39 QuicTime::Delta rtt) OVERRIDE;
41 virtual void OnIncomingLoss(QuicTime ack_receive_time) OVERRIDE; 40 virtual void OnIncomingLoss(QuicTime ack_receive_time) OVERRIDE;
42 virtual void SentPacket(QuicTime sent_time, 41 virtual void SentPacket(QuicTime sent_time,
43 QuicPacketSequenceNumber sequence_number, 42 QuicPacketSequenceNumber sequence_number,
44 QuicByteCount bytes, 43 QuicByteCount bytes,
45 Retransmission is_retransmission) OVERRIDE; 44 Retransmission is_retransmission) OVERRIDE;
46 virtual void AbandoningPacket(QuicPacketSequenceNumber sequence_number, 45 virtual void AbandoningPacket(QuicPacketSequenceNumber sequence_number,
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 93
95 // Min RTT during this session. 94 // Min RTT during this session.
96 QuicTime::Delta delay_min_; 95 QuicTime::Delta delay_min_;
97 96
98 DISALLOW_COPY_AND_ASSIGN(TcpCubicSender); 97 DISALLOW_COPY_AND_ASSIGN(TcpCubicSender);
99 }; 98 };
100 99
101 } // namespace net 100 } // namespace net
102 101
103 #endif // NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_SENDER_H_ 102 #endif // NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_SENDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698