OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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_QUIC_SENT_PACKET_MANAGER_H_ | 5 #ifndef NET_QUIC_QUIC_SENT_PACKET_MANAGER_H_ |
6 #define NET_QUIC_QUIC_SENT_PACKET_MANAGER_H_ | 6 #define NET_QUIC_QUIC_SENT_PACKET_MANAGER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <utility> | 10 #include <utility> |
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
221 bool using_pacing() const { return using_pacing_; } | 221 bool using_pacing() const { return using_pacing_; } |
222 | 222 |
223 void set_debug_delegate(DebugDelegate* debug_delegate) { | 223 void set_debug_delegate(DebugDelegate* debug_delegate) { |
224 debug_delegate_ = debug_delegate; | 224 debug_delegate_ = debug_delegate; |
225 } | 225 } |
226 | 226 |
227 QuicPacketNumber largest_observed() const { | 227 QuicPacketNumber largest_observed() const { |
228 return unacked_packets_.largest_observed(); | 228 return unacked_packets_.largest_observed(); |
229 } | 229 } |
230 | 230 |
231 QuicPacketNumber least_packet_awaited_by_peer() { | 231 QuicPacketNumber largest_sent_packet() const { |
| 232 return unacked_packets_.largest_sent_packet(); |
| 233 } |
| 234 |
| 235 QuicPacketNumber least_packet_awaited_by_peer() const { |
232 return least_packet_awaited_by_peer_; | 236 return least_packet_awaited_by_peer_; |
233 } | 237 } |
234 | 238 |
235 void set_network_change_visitor(NetworkChangeVisitor* visitor) { | 239 void set_network_change_visitor(NetworkChangeVisitor* visitor) { |
236 DCHECK(!network_change_visitor_); | 240 DCHECK(!network_change_visitor_); |
237 DCHECK(visitor); | 241 DCHECK(visitor); |
238 network_change_visitor_ = visitor; | 242 network_change_visitor_ = visitor; |
239 } | 243 } |
240 | 244 |
241 // Used in Chromium, but not in the server. | 245 // Used in Chromium, but not in the server. |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
403 // Records bandwidth from server to client in normal operation, over periods | 407 // Records bandwidth from server to client in normal operation, over periods |
404 // of time with no loss events. | 408 // of time with no loss events. |
405 QuicSustainedBandwidthRecorder sustained_bandwidth_recorder_; | 409 QuicSustainedBandwidthRecorder sustained_bandwidth_recorder_; |
406 | 410 |
407 DISALLOW_COPY_AND_ASSIGN(QuicSentPacketManager); | 411 DISALLOW_COPY_AND_ASSIGN(QuicSentPacketManager); |
408 }; | 412 }; |
409 | 413 |
410 } // namespace net | 414 } // namespace net |
411 | 415 |
412 #endif // NET_QUIC_QUIC_SENT_PACKET_MANAGER_H_ | 416 #endif // NET_QUIC_QUIC_SENT_PACKET_MANAGER_H_ |
OLD | NEW |