| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 234 void CancelRetransmissionsForStream(QuicStreamId stream_id); | 234 void CancelRetransmissionsForStream(QuicStreamId stream_id); |
| 235 | 235 |
| 236 // Enables pacing if it has not already been enabled. | 236 // Enables pacing if it has not already been enabled. |
| 237 void EnablePacing(); | 237 void EnablePacing(); |
| 238 | 238 |
| 239 // Called when peer address changes and the connection migrates. | 239 // Called when peer address changes and the connection migrates. |
| 240 void OnConnectionMigration(PeerAddressChangeType type); | 240 void OnConnectionMigration(PeerAddressChangeType type); |
| 241 | 241 |
| 242 bool using_pacing() const { return using_pacing_; } | 242 bool using_pacing() const { return using_pacing_; } |
| 243 | 243 |
| 244 bool handshake_confirmed() const { return handshake_confirmed_; } |
| 245 |
| 244 void set_debug_delegate(DebugDelegate* debug_delegate) { | 246 void set_debug_delegate(DebugDelegate* debug_delegate) { |
| 245 debug_delegate_ = debug_delegate; | 247 debug_delegate_ = debug_delegate; |
| 246 } | 248 } |
| 247 | 249 |
| 248 QuicPacketNumber largest_observed() const { | 250 QuicPacketNumber largest_observed() const { |
| 249 return unacked_packets_.largest_observed(); | 251 return unacked_packets_.largest_observed(); |
| 250 } | 252 } |
| 251 | 253 |
| 252 QuicPacketNumber largest_sent_packet() const { | 254 QuicPacketNumber largest_sent_packet() const { |
| 253 return unacked_packets_.largest_sent_packet(); | 255 return unacked_packets_.largest_sent_packet(); |
| (...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 452 // Records bandwidth from server to client in normal operation, over periods | 454 // Records bandwidth from server to client in normal operation, over periods |
| 453 // of time with no loss events. | 455 // of time with no loss events. |
| 454 QuicSustainedBandwidthRecorder sustained_bandwidth_recorder_; | 456 QuicSustainedBandwidthRecorder sustained_bandwidth_recorder_; |
| 455 | 457 |
| 456 DISALLOW_COPY_AND_ASSIGN(QuicSentPacketManager); | 458 DISALLOW_COPY_AND_ASSIGN(QuicSentPacketManager); |
| 457 }; | 459 }; |
| 458 | 460 |
| 459 } // namespace net | 461 } // namespace net |
| 460 | 462 |
| 461 #endif // NET_QUIC_QUIC_SENT_PACKET_MANAGER_H_ | 463 #endif // NET_QUIC_QUIC_SENT_PACKET_MANAGER_H_ |
| OLD | NEW |