| 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 30 matching lines...) Expand all Loading... |
| 41 class NET_EXPORT_PRIVATE QuicSentPacketManager { | 41 class NET_EXPORT_PRIVATE QuicSentPacketManager { |
| 42 public: | 42 public: |
| 43 // Interface which gets callbacks from the QuicSentPacketManager at | 43 // Interface which gets callbacks from the QuicSentPacketManager at |
| 44 // interesting points. Implementations must not mutate the state of | 44 // interesting points. Implementations must not mutate the state of |
| 45 // the packet manager or connection as a result of these callbacks. | 45 // the packet manager or connection as a result of these callbacks. |
| 46 class NET_EXPORT_PRIVATE DebugDelegate { | 46 class NET_EXPORT_PRIVATE DebugDelegate { |
| 47 public: | 47 public: |
| 48 virtual ~DebugDelegate() {} | 48 virtual ~DebugDelegate() {} |
| 49 | 49 |
| 50 // Called when a spurious retransmission is detected. | 50 // Called when a spurious retransmission is detected. |
| 51 virtual void OnSpuriousPacketRetransmition( | 51 virtual void OnSpuriousPacketRetransmission( |
| 52 TransmissionType transmission_type, | 52 TransmissionType transmission_type, |
| 53 QuicByteCount byte_size) {} | 53 QuicByteCount byte_size) {} |
| 54 | 54 |
| 55 virtual void OnIncomingAck( | 55 virtual void OnIncomingAck( |
| 56 const QuicAckFrame& ack_frame, | 56 const QuicAckFrame& ack_frame, |
| 57 QuicTime ack_receive_time, | 57 QuicTime ack_receive_time, |
| 58 QuicPacketSequenceNumber largest_observed, | 58 QuicPacketSequenceNumber largest_observed, |
| 59 bool rtt_updated, | 59 bool rtt_updated, |
| 60 QuicPacketSequenceNumber least_unacked_sent_packet) {} | 60 QuicPacketSequenceNumber least_unacked_sent_packet) {} |
| 61 }; | 61 }; |
| (...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 412 // Records bandwidth from server to client in normal operation, over periods | 412 // Records bandwidth from server to client in normal operation, over periods |
| 413 // of time with no loss events. | 413 // of time with no loss events. |
| 414 QuicSustainedBandwidthRecorder sustained_bandwidth_recorder_; | 414 QuicSustainedBandwidthRecorder sustained_bandwidth_recorder_; |
| 415 | 415 |
| 416 DISALLOW_COPY_AND_ASSIGN(QuicSentPacketManager); | 416 DISALLOW_COPY_AND_ASSIGN(QuicSentPacketManager); |
| 417 }; | 417 }; |
| 418 | 418 |
| 419 } // namespace net | 419 } // namespace net |
| 420 | 420 |
| 421 #endif // NET_QUIC_QUIC_SENT_PACKET_MANAGER_H_ | 421 #endif // NET_QUIC_QUIC_SENT_PACKET_MANAGER_H_ |
| OLD | NEW |