| 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 <deque> | 8 #include <deque> |
| 9 #include <list> | 9 #include <list> |
| 10 #include <map> | 10 #include <map> |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 QuicPacketSequenceNumber new_sequence_number, | 64 QuicPacketSequenceNumber new_sequence_number, |
| 65 TransmissionType transmission_type, | 65 TransmissionType transmission_type, |
| 66 QuicTime time) {} | 66 QuicTime time) {} |
| 67 | 67 |
| 68 virtual void OnIncomingAck( | 68 virtual void OnIncomingAck( |
| 69 const QuicAckFrame& ack_frame, | 69 const QuicAckFrame& ack_frame, |
| 70 QuicTime ack_receive_time, | 70 QuicTime ack_receive_time, |
| 71 QuicPacketSequenceNumber largest_observed, | 71 QuicPacketSequenceNumber largest_observed, |
| 72 bool largest_observed_acked, | 72 bool largest_observed_acked, |
| 73 QuicPacketSequenceNumber least_unacked_sent_packet) {} | 73 QuicPacketSequenceNumber least_unacked_sent_packet) {} |
| 74 |
| 75 virtual void OnSerializedPacket( |
| 76 const SerializedPacket& packet) {} |
| 74 }; | 77 }; |
| 75 | 78 |
| 76 // Interface which gets callbacks from the QuicSentPacketManager when | 79 // Interface which gets callbacks from the QuicSentPacketManager when |
| 77 // network-related state changes. Implementations must not mutate the | 80 // network-related state changes. Implementations must not mutate the |
| 78 // state of the packet manager as a result of these callbacks. | 81 // state of the packet manager as a result of these callbacks. |
| 79 class NET_EXPORT_PRIVATE NetworkChangeVisitor { | 82 class NET_EXPORT_PRIVATE NetworkChangeVisitor { |
| 80 public: | 83 public: |
| 81 virtual ~NetworkChangeVisitor() {} | 84 virtual ~NetworkChangeVisitor() {} |
| 82 | 85 |
| 83 // Called when congestion window may have changed. | 86 // Called when congestion window may have changed. |
| (...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 389 // Records bandwidth from server to client in normal operation, over periods | 392 // Records bandwidth from server to client in normal operation, over periods |
| 390 // of time with no loss events. | 393 // of time with no loss events. |
| 391 QuicSustainedBandwidthRecorder sustained_bandwidth_recorder_; | 394 QuicSustainedBandwidthRecorder sustained_bandwidth_recorder_; |
| 392 | 395 |
| 393 DISALLOW_COPY_AND_ASSIGN(QuicSentPacketManager); | 396 DISALLOW_COPY_AND_ASSIGN(QuicSentPacketManager); |
| 394 }; | 397 }; |
| 395 | 398 |
| 396 } // namespace net | 399 } // namespace net |
| 397 | 400 |
| 398 #endif // NET_QUIC_QUIC_SENT_PACKET_MANAGER_H_ | 401 #endif // NET_QUIC_QUIC_SENT_PACKET_MANAGER_H_ |
| OLD | NEW |