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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 const QuicClock* clock, | 94 const QuicClock* clock, |
95 QuicConnectionStats* stats, | 95 QuicConnectionStats* stats, |
96 CongestionControlType congestion_control_type, | 96 CongestionControlType congestion_control_type, |
97 LossDetectionType loss_type, | 97 LossDetectionType loss_type, |
98 bool is_secure); | 98 bool is_secure); |
99 virtual ~QuicSentPacketManager(); | 99 virtual ~QuicSentPacketManager(); |
100 | 100 |
101 virtual void SetFromConfig(const QuicConfig& config); | 101 virtual void SetFromConfig(const QuicConfig& config); |
102 | 102 |
103 // Pass the CachedNetworkParameters to the send algorithm. | 103 // Pass the CachedNetworkParameters to the send algorithm. |
104 void ResumeConnectionState( | 104 // Returns true if this changes the initial connection state. |
| 105 bool ResumeConnectionState( |
105 const CachedNetworkParameters& cached_network_params); | 106 const CachedNetworkParameters& cached_network_params); |
106 | 107 |
107 void SetNumOpenStreams(size_t num_streams); | 108 void SetNumOpenStreams(size_t num_streams); |
108 | 109 |
109 void SetHandshakeConfirmed() { handshake_confirmed_ = true; } | 110 void SetHandshakeConfirmed() { handshake_confirmed_ = true; } |
110 | 111 |
111 // Processes the incoming ack. | 112 // Processes the incoming ack. |
112 void OnIncomingAck(const QuicAckFrame& ack_frame, | 113 void OnIncomingAck(const QuicAckFrame& ack_frame, |
113 QuicTime ack_receive_time); | 114 QuicTime ack_receive_time); |
114 | 115 |
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
404 // Records bandwidth from server to client in normal operation, over periods | 405 // Records bandwidth from server to client in normal operation, over periods |
405 // of time with no loss events. | 406 // of time with no loss events. |
406 QuicSustainedBandwidthRecorder sustained_bandwidth_recorder_; | 407 QuicSustainedBandwidthRecorder sustained_bandwidth_recorder_; |
407 | 408 |
408 DISALLOW_COPY_AND_ASSIGN(QuicSentPacketManager); | 409 DISALLOW_COPY_AND_ASSIGN(QuicSentPacketManager); |
409 }; | 410 }; |
410 | 411 |
411 } // namespace net | 412 } // namespace net |
412 | 413 |
413 #endif // NET_QUIC_QUIC_SENT_PACKET_MANAGER_H_ | 414 #endif // NET_QUIC_QUIC_SENT_PACKET_MANAGER_H_ |
OLD | NEW |