| 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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 CongestionControlType congestion_control_type, | 99 CongestionControlType congestion_control_type, |
| 100 LossDetectionType loss_type, | 100 LossDetectionType loss_type, |
| 101 bool is_secure); | 101 bool is_secure); |
| 102 virtual ~QuicSentPacketManager(); | 102 virtual ~QuicSentPacketManager(); |
| 103 | 103 |
| 104 virtual void SetFromConfig(const QuicConfig& config); | 104 virtual void SetFromConfig(const QuicConfig& config); |
| 105 | 105 |
| 106 // Pass the CachedNetworkParameters to the send algorithm. | 106 // Pass the CachedNetworkParameters to the send algorithm. |
| 107 // Returns true if this changes the initial connection state. | 107 // Returns true if this changes the initial connection state. |
| 108 bool ResumeConnectionState( | 108 bool ResumeConnectionState( |
| 109 const CachedNetworkParameters& cached_network_params); | 109 const CachedNetworkParameters& cached_network_params, |
| 110 bool max_bandwidth_resumption); |
| 110 | 111 |
| 111 void SetNumOpenStreams(size_t num_streams); | 112 void SetNumOpenStreams(size_t num_streams); |
| 112 | 113 |
| 113 void SetHandshakeConfirmed() { handshake_confirmed_ = true; } | 114 void SetHandshakeConfirmed() { handshake_confirmed_ = true; } |
| 114 | 115 |
| 115 // Processes the incoming ack. | 116 // Processes the incoming ack. |
| 116 void OnIncomingAck(const QuicAckFrame& ack_frame, | 117 void OnIncomingAck(const QuicAckFrame& ack_frame, |
| 117 QuicTime ack_receive_time); | 118 QuicTime ack_receive_time); |
| 118 | 119 |
| 119 // Returns true if the non-FEC packet |sequence_number| is unacked. | 120 // Returns true if the non-FEC packet |sequence_number| is unacked. |
| (...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 410 // Records bandwidth from server to client in normal operation, over periods | 411 // Records bandwidth from server to client in normal operation, over periods |
| 411 // of time with no loss events. | 412 // of time with no loss events. |
| 412 QuicSustainedBandwidthRecorder sustained_bandwidth_recorder_; | 413 QuicSustainedBandwidthRecorder sustained_bandwidth_recorder_; |
| 413 | 414 |
| 414 DISALLOW_COPY_AND_ASSIGN(QuicSentPacketManager); | 415 DISALLOW_COPY_AND_ASSIGN(QuicSentPacketManager); |
| 415 }; | 416 }; |
| 416 | 417 |
| 417 } // namespace net | 418 } // namespace net |
| 418 | 419 |
| 419 #endif // NET_QUIC_QUIC_SENT_PACKET_MANAGER_H_ | 420 #endif // NET_QUIC_QUIC_SENT_PACKET_MANAGER_H_ |
| OLD | NEW |