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

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

Issue 23597045: Land Recent QUIC changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merged QuicPriority to RequestPriority changes Created 7 years, 3 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
« no previous file with comments | « net/net.gyp ('k') | net/quic/congestion_control/fix_rate_sender.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // Fix rate send side congestion control, used for testing. 5 // Fix rate send side congestion control, used for testing.
6 6
7 #ifndef NET_QUIC_CONGESTION_CONTROL_FIX_RATE_SENDER_H_ 7 #ifndef NET_QUIC_CONGESTION_CONTROL_FIX_RATE_SENDER_H_
8 #define NET_QUIC_CONGESTION_CONTROL_FIX_RATE_SENDER_H_ 8 #define NET_QUIC_CONGESTION_CONTROL_FIX_RATE_SENDER_H_
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 14 matching lines...) Expand all
25 25
26 // Start implementation of SendAlgorithmInterface. 26 // Start implementation of SendAlgorithmInterface.
27 virtual void OnIncomingQuicCongestionFeedbackFrame( 27 virtual void OnIncomingQuicCongestionFeedbackFrame(
28 const QuicCongestionFeedbackFrame& feedback, 28 const QuicCongestionFeedbackFrame& feedback,
29 QuicTime feedback_receive_time, 29 QuicTime feedback_receive_time,
30 const SentPacketsMap& sent_packets) OVERRIDE; 30 const SentPacketsMap& sent_packets) OVERRIDE;
31 virtual void OnIncomingAck(QuicPacketSequenceNumber acked_sequence_number, 31 virtual void OnIncomingAck(QuicPacketSequenceNumber acked_sequence_number,
32 QuicByteCount acked_bytes, 32 QuicByteCount acked_bytes,
33 QuicTime::Delta rtt) OVERRIDE; 33 QuicTime::Delta rtt) OVERRIDE;
34 virtual void OnIncomingLoss(QuicTime ack_receive_time) OVERRIDE; 34 virtual void OnIncomingLoss(QuicTime ack_receive_time) OVERRIDE;
35 virtual void SentPacket(QuicTime sent_time, 35 virtual bool SentPacket(
36 QuicPacketSequenceNumber equence_number, 36 QuicTime sent_time,
37 QuicByteCount bytes, 37 QuicPacketSequenceNumber equence_number,
38 Retransmission is_retransmission) OVERRIDE; 38 QuicByteCount bytes,
39 Retransmission is_retransmission,
40 HasRetransmittableData has_retransmittable_data) OVERRIDE;
39 virtual void AbandoningPacket(QuicPacketSequenceNumber sequence_number, 41 virtual void AbandoningPacket(QuicPacketSequenceNumber sequence_number,
40 QuicByteCount abandoned_bytes) OVERRIDE; 42 QuicByteCount abandoned_bytes) OVERRIDE;
41 virtual QuicTime::Delta TimeUntilSend( 43 virtual QuicTime::Delta TimeUntilSend(
42 QuicTime now, 44 QuicTime now,
43 Retransmission is_retransmission, 45 Retransmission is_retransmission,
44 HasRetransmittableData has_retransmittable_data, 46 HasRetransmittableData has_retransmittable_data,
45 IsHandshake handshake) OVERRIDE; 47 IsHandshake handshake) OVERRIDE;
46 virtual QuicBandwidth BandwidthEstimate() OVERRIDE; 48 virtual QuicBandwidth BandwidthEstimate() OVERRIDE;
47 virtual QuicTime::Delta SmoothedRtt() OVERRIDE; 49 virtual QuicTime::Delta SmoothedRtt() OVERRIDE;
48 virtual QuicTime::Delta RetransmissionDelay() OVERRIDE; 50 virtual QuicTime::Delta RetransmissionDelay() OVERRIDE;
49 // End implementation of SendAlgorithmInterface. 51 // End implementation of SendAlgorithmInterface.
50 52
51 private: 53 private:
52 QuicByteCount CongestionWindow(); 54 QuicByteCount CongestionWindow();
53 55
54 QuicBandwidth bitrate_; 56 QuicBandwidth bitrate_;
55 LeakyBucket fix_rate_leaky_bucket_; 57 LeakyBucket fix_rate_leaky_bucket_;
56 PacedSender paced_sender_; 58 PacedSender paced_sender_;
57 QuicByteCount data_in_flight_; 59 QuicByteCount data_in_flight_;
58 QuicTime::Delta latest_rtt_; 60 QuicTime::Delta latest_rtt_;
59 61
60 DISALLOW_COPY_AND_ASSIGN(FixRateSender); 62 DISALLOW_COPY_AND_ASSIGN(FixRateSender);
61 }; 63 };
62 64
63 } // namespace net 65 } // namespace net
64 66
65 #endif // NET_QUIC_CONGESTION_CONTROL_FIX_RATE_SENDER_H_ 67 #endif // NET_QUIC_CONGESTION_CONTROL_FIX_RATE_SENDER_H_
OLDNEW
« no previous file with comments | « net/net.gyp ('k') | net/quic/congestion_control/fix_rate_sender.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698