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

Side by Side Diff: net/quic/congestion_control/quic_congestion_manager.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) 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 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 5 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
6 // Use of this source code is governed by a BSD-style license that can be 6 // Use of this source code is governed by a BSD-style license that can be
7 // found in the LICENSE file. 7 // found in the LICENSE file.
8 // 8 //
9 // This is the interface from the QuicConnection into the QUIC 9 // This is the interface from the QuicConnection into the QUIC
10 // congestion control code. It wraps the SendAlgorithmInterface and 10 // congestion control code. It wraps the SendAlgorithmInterface and
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 QuicBandwidth BandwidthEstimate(); 95 QuicBandwidth BandwidthEstimate();
96 96
97 private: 97 private:
98 friend class test::QuicConnectionPeer; 98 friend class test::QuicConnectionPeer;
99 friend class test::QuicCongestionManagerPeer; 99 friend class test::QuicCongestionManagerPeer;
100 typedef std::map<QuicPacketSequenceNumber, size_t> PendingPacketsMap; 100 typedef std::map<QuicPacketSequenceNumber, size_t> PendingPacketsMap;
101 101
102 // Get the current(last) rtt. Infinite is returned if invalid. 102 // Get the current(last) rtt. Infinite is returned if invalid.
103 const QuicTime::Delta rtt(); 103 const QuicTime::Delta rtt();
104 104
105 QuicBandwidth SentBandwidth(QuicTime feedback_receive_time) const;
106 void CleanupPacketHistory(); 105 void CleanupPacketHistory();
107 106
108 const QuicClock* clock_; 107 const QuicClock* clock_;
109 scoped_ptr<ReceiveAlgorithmInterface> receive_algorithm_; 108 scoped_ptr<ReceiveAlgorithmInterface> receive_algorithm_;
110 scoped_ptr<SendAlgorithmInterface> send_algorithm_; 109 scoped_ptr<SendAlgorithmInterface> send_algorithm_;
111 SendAlgorithmInterface::SentPacketsMap packet_history_map_; 110 SendAlgorithmInterface::SentPacketsMap packet_history_map_;
112 PendingPacketsMap pending_packets_; 111 PendingPacketsMap pending_packets_;
113 QuicPacketSequenceNumber largest_missing_; 112 QuicPacketSequenceNumber largest_missing_;
114 QuicTime::Delta current_rtt_; 113 QuicTime::Delta current_rtt_;
115 114
116 DISALLOW_COPY_AND_ASSIGN(QuicCongestionManager); 115 DISALLOW_COPY_AND_ASSIGN(QuicCongestionManager);
117 }; 116 };
118 117
119 } // namespace net 118 } // namespace net
120 119
121 #endif // NET_QUIC_CONGESTION_CONTROL_QUIC_CONGESTION_MANAGER_H_ 120 #endif // NET_QUIC_CONGESTION_CONTROL_QUIC_CONGESTION_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698