| 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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 QuicPacketSequenceNumber sequence_number; | 86 QuicPacketSequenceNumber sequence_number; |
| 87 TransmissionType transmission_type; | 87 TransmissionType transmission_type; |
| 88 const RetransmittableFrames& retransmittable_frames; | 88 const RetransmittableFrames& retransmittable_frames; |
| 89 QuicSequenceNumberLength sequence_number_length; | 89 QuicSequenceNumberLength sequence_number_length; |
| 90 }; | 90 }; |
| 91 | 91 |
| 92 QuicSentPacketManager(bool is_server, | 92 QuicSentPacketManager(bool is_server, |
| 93 const QuicClock* clock, | 93 const QuicClock* clock, |
| 94 QuicConnectionStats* stats, | 94 QuicConnectionStats* stats, |
| 95 CongestionControlType congestion_control_type, | 95 CongestionControlType congestion_control_type, |
| 96 LossDetectionType loss_type); | 96 LossDetectionType loss_type, |
| 97 bool is_secure); |
| 97 virtual ~QuicSentPacketManager(); | 98 virtual ~QuicSentPacketManager(); |
| 98 | 99 |
| 99 virtual void SetFromConfig(const QuicConfig& config); | 100 virtual void SetFromConfig(const QuicConfig& config); |
| 100 | 101 |
| 101 void SetNumOpenStreams(size_t num_streams); | 102 void SetNumOpenStreams(size_t num_streams); |
| 102 | 103 |
| 103 void SetHandshakeConfirmed() { handshake_confirmed_ = true; } | 104 void SetHandshakeConfirmed() { handshake_confirmed_ = true; } |
| 104 | 105 |
| 105 // Processes the incoming ack. | 106 // Processes the incoming ack. |
| 106 void OnIncomingAck(const QuicAckFrame& ack_frame, | 107 void OnIncomingAck(const QuicAckFrame& ack_frame, |
| (...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 344 | 345 |
| 345 // An AckNotifier can register to be informed when ACKs have been received for | 346 // An AckNotifier can register to be informed when ACKs have been received for |
| 346 // all packets that a given block of data was sent in. The AckNotifierManager | 347 // all packets that a given block of data was sent in. The AckNotifierManager |
| 347 // maintains the currently active notifiers. | 348 // maintains the currently active notifiers. |
| 348 AckNotifierManager ack_notifier_manager_; | 349 AckNotifierManager ack_notifier_manager_; |
| 349 | 350 |
| 350 const QuicClock* clock_; | 351 const QuicClock* clock_; |
| 351 QuicConnectionStats* stats_; | 352 QuicConnectionStats* stats_; |
| 352 DebugDelegate* debug_delegate_; | 353 DebugDelegate* debug_delegate_; |
| 353 NetworkChangeVisitor* network_change_visitor_; | 354 NetworkChangeVisitor* network_change_visitor_; |
| 355 const QuicPacketCount initial_congestion_window_; |
| 354 RttStats rtt_stats_; | 356 RttStats rtt_stats_; |
| 355 scoped_ptr<SendAlgorithmInterface> send_algorithm_; | 357 scoped_ptr<SendAlgorithmInterface> send_algorithm_; |
| 356 scoped_ptr<LossDetectionInterface> loss_algorithm_; | 358 scoped_ptr<LossDetectionInterface> loss_algorithm_; |
| 357 bool n_connection_simulation_; | 359 bool n_connection_simulation_; |
| 358 | 360 |
| 359 // Receiver side buffer in bytes. | 361 // Receiver side buffer in bytes. |
| 360 QuicByteCount receive_buffer_bytes_; | 362 QuicByteCount receive_buffer_bytes_; |
| 361 | 363 |
| 362 // Least sequence number which the peer is still waiting for. | 364 // Least sequence number which the peer is still waiting for. |
| 363 QuicPacketSequenceNumber least_packet_awaited_by_peer_; | 365 QuicPacketSequenceNumber least_packet_awaited_by_peer_; |
| (...skipping 26 matching lines...) Expand all Loading... |
| 390 // Records bandwidth from server to client in normal operation, over periods | 392 // Records bandwidth from server to client in normal operation, over periods |
| 391 // of time with no loss events. | 393 // of time with no loss events. |
| 392 QuicSustainedBandwidthRecorder sustained_bandwidth_recorder_; | 394 QuicSustainedBandwidthRecorder sustained_bandwidth_recorder_; |
| 393 | 395 |
| 394 DISALLOW_COPY_AND_ASSIGN(QuicSentPacketManager); | 396 DISALLOW_COPY_AND_ASSIGN(QuicSentPacketManager); |
| 395 }; | 397 }; |
| 396 | 398 |
| 397 } // namespace net | 399 } // namespace net |
| 398 | 400 |
| 399 #endif // NET_QUIC_QUIC_SENT_PACKET_MANAGER_H_ | 401 #endif // NET_QUIC_QUIC_SENT_PACKET_MANAGER_H_ |
| OLD | NEW |