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

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

Issue 47283002: Land Recent QUIC changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix compilation error Created 7 years, 1 month 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 #ifndef NET_QUIC_CONGESTION_CONTROL_INTER_ARRIVAL_SENDER_H_ 5 #ifndef NET_QUIC_CONGESTION_CONTROL_INTER_ARRIVAL_SENDER_H_
6 #define NET_QUIC_CONGESTION_CONTROL_INTER_ARRIVAL_SENDER_H_ 6 #define NET_QUIC_CONGESTION_CONTROL_INTER_ARRIVAL_SENDER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "net/base/net_export.h" 10 #include "net/base/net_export.h"
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 55
56 virtual QuicTime::Delta TimeUntilSend( 56 virtual QuicTime::Delta TimeUntilSend(
57 QuicTime now, 57 QuicTime now,
58 TransmissionType transmission_type, 58 TransmissionType transmission_type,
59 HasRetransmittableData has_retransmittable_data, 59 HasRetransmittableData has_retransmittable_data,
60 IsHandshake handshake) OVERRIDE; 60 IsHandshake handshake) OVERRIDE;
61 61
62 virtual QuicBandwidth BandwidthEstimate() OVERRIDE; 62 virtual QuicBandwidth BandwidthEstimate() OVERRIDE;
63 virtual QuicTime::Delta SmoothedRtt() OVERRIDE; 63 virtual QuicTime::Delta SmoothedRtt() OVERRIDE;
64 virtual QuicTime::Delta RetransmissionDelay() OVERRIDE; 64 virtual QuicTime::Delta RetransmissionDelay() OVERRIDE;
65 virtual QuicByteCount GetCongestionWindow() OVERRIDE;
66 virtual void SetCongestionWindow(QuicByteCount window) OVERRIDE;
65 // End implementation of SendAlgorithmInterface. 67 // End implementation of SendAlgorithmInterface.
66 68
67 private: 69 private:
68 void EstimateDelayBandwidth(QuicTime feedback_receive_time, 70 void EstimateDelayBandwidth(QuicTime feedback_receive_time,
69 QuicBandwidth sent_bandwidth); 71 QuicBandwidth sent_bandwidth);
70 void EstimateNewBandwidth(QuicTime feedback_receive_time, 72 void EstimateNewBandwidth(QuicTime feedback_receive_time,
71 QuicBandwidth sent_bandwidth); 73 QuicBandwidth sent_bandwidth);
72 void EstimateNewBandwidthAfterDraining( 74 void EstimateNewBandwidthAfterDraining(
73 QuicTime feedback_receive_time, 75 QuicTime feedback_receive_time,
74 QuicTime::Delta estimated_congestion_delay); 76 QuicTime::Delta estimated_congestion_delay);
(...skipping 18 matching lines...) Expand all
93 BandwidthUsage bandwidth_usage_state_; 95 BandwidthUsage bandwidth_usage_state_;
94 QuicTime back_down_time_; // Time when we decided to back down. 96 QuicTime back_down_time_; // Time when we decided to back down.
95 QuicBandwidth back_down_bandwidth_; // Bandwidth before backing down. 97 QuicBandwidth back_down_bandwidth_; // Bandwidth before backing down.
96 QuicTime::Delta back_down_congestion_delay_; // Delay when backing down. 98 QuicTime::Delta back_down_congestion_delay_; // Delay when backing down.
97 99
98 DISALLOW_COPY_AND_ASSIGN(InterArrivalSender); 100 DISALLOW_COPY_AND_ASSIGN(InterArrivalSender);
99 }; 101 };
100 102
101 } // namespace net 103 } // namespace net
102 #endif // NET_QUIC_CONGESTION_CONTROL_INTER_ARRIVAL_SENDER_H_ 104 #endif // NET_QUIC_CONGESTION_CONTROL_INTER_ARRIVAL_SENDER_H_
OLDNEW
« no previous file with comments | « net/quic/congestion_control/fix_rate_sender.cc ('k') | net/quic/congestion_control/inter_arrival_sender.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698