| 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 // Manages the packet entropy calculation for both sent and received packets | 5 // Manages the packet entropy calculation for both sent and received packets |
| 6 // for a connection. | 6 // for a connection. |
| 7 | 7 |
| 8 #ifndef NET_QUIC_QUIC_RECEIVED_PACKET_MANAGER_H_ | 8 #ifndef NET_QUIC_QUIC_RECEIVED_PACKET_MANAGER_H_ |
| 9 #define NET_QUIC_QUIC_RECEIVED_PACKET_MANAGER_H_ | 9 #define NET_QUIC_QUIC_RECEIVED_PACKET_MANAGER_H_ |
| 10 | 10 |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 // QuicReceivedEntropyHashCalculatorInterface | 124 // QuicReceivedEntropyHashCalculatorInterface |
| 125 // Called by QuicFramer, when the outgoing ack gets truncated, to recalculate | 125 // Called by QuicFramer, when the outgoing ack gets truncated, to recalculate |
| 126 // the received entropy hash for the truncated ack frame. | 126 // the received entropy hash for the truncated ack frame. |
| 127 QuicPacketEntropyHash EntropyHash( | 127 QuicPacketEntropyHash EntropyHash( |
| 128 QuicPacketNumber packet_number) const override; | 128 QuicPacketNumber packet_number) const override; |
| 129 | 129 |
| 130 // Updates internal state based on |stop_waiting|. | 130 // Updates internal state based on |stop_waiting|. |
| 131 virtual void UpdatePacketInformationSentByPeer( | 131 virtual void UpdatePacketInformationSentByPeer( |
| 132 const QuicStopWaitingFrame& stop_waiting); | 132 const QuicStopWaitingFrame& stop_waiting); |
| 133 | 133 |
| 134 // Returns true if there are any missing packets. |
| 135 bool HasMissingPackets() const; |
| 136 |
| 134 // Returns true when there are new missing packets to be reported within 3 | 137 // Returns true when there are new missing packets to be reported within 3 |
| 135 // packets of the largest observed. | 138 // packets of the largest observed. |
| 136 virtual bool HasNewMissingPackets() const; | 139 virtual bool HasNewMissingPackets() const; |
| 137 | 140 |
| 138 // Returns the number of packets being tracked in the EntropyTracker. | 141 // Returns the number of packets being tracked in the EntropyTracker. |
| 139 size_t NumTrackedPackets() const; | 142 size_t NumTrackedPackets() const; |
| 140 | 143 |
| 141 QuicPacketNumber peer_least_packet_awaiting_ack() { | 144 QuicPacketNumber peer_least_packet_awaiting_ack() { |
| 142 return peer_least_packet_awaiting_ack_; | 145 return peer_least_packet_awaiting_ack_; |
| 143 } | 146 } |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 QuicTime time_largest_observed_; | 180 QuicTime time_largest_observed_; |
| 178 | 181 |
| 179 QuicConnectionStats* stats_; | 182 QuicConnectionStats* stats_; |
| 180 | 183 |
| 181 DISALLOW_COPY_AND_ASSIGN(QuicReceivedPacketManager); | 184 DISALLOW_COPY_AND_ASSIGN(QuicReceivedPacketManager); |
| 182 }; | 185 }; |
| 183 | 186 |
| 184 } // namespace net | 187 } // namespace net |
| 185 | 188 |
| 186 #endif // NET_QUIC_QUIC_RECEIVED_PACKET_MANAGER_H_ | 189 #endif // NET_QUIC_QUIC_RECEIVED_PACKET_MANAGER_H_ |
| OLD | NEW |