| 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 |
| 11 #include <deque> | 11 #include <deque> |
| 12 | 12 |
| 13 #include "net/quic/congestion_control/receive_algorithm_interface.h" | |
| 14 #include "net/quic/quic_config.h" | 13 #include "net/quic/quic_config.h" |
| 15 #include "net/quic/quic_framer.h" | 14 #include "net/quic/quic_framer.h" |
| 16 #include "net/quic/quic_protocol.h" | 15 #include "net/quic/quic_protocol.h" |
| 17 | 16 |
| 18 namespace net { | 17 namespace net { |
| 19 | 18 |
| 20 namespace test { | 19 namespace test { |
| 21 class EntropyTrackerPeer; | 20 class EntropyTrackerPeer; |
| 22 class QuicConnectionPeer; | 21 class QuicConnectionPeer; |
| 23 class QuicReceivedPacketManagerPeer; | 22 class QuicReceivedPacketManagerPeer; |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 QuicPacketSequenceNumber peer_least_packet_awaiting_ack_; | 158 QuicPacketSequenceNumber peer_least_packet_awaiting_ack_; |
| 160 | 159 |
| 161 // Received packet information used to produce acks. | 160 // Received packet information used to produce acks. |
| 162 QuicAckFrame ack_frame_; | 161 QuicAckFrame ack_frame_; |
| 163 | 162 |
| 164 // The time we received the largest_observed sequence number, or zero if | 163 // The time we received the largest_observed sequence number, or zero if |
| 165 // no sequence numbers have been received since UpdateReceivedPacketInfo. | 164 // no sequence numbers have been received since UpdateReceivedPacketInfo. |
| 166 // Needed for calculating delta_time_largest_observed. | 165 // Needed for calculating delta_time_largest_observed. |
| 167 QuicTime time_largest_observed_; | 166 QuicTime time_largest_observed_; |
| 168 | 167 |
| 169 scoped_ptr<ReceiveAlgorithmInterface> receive_algorithm_; | |
| 170 | |
| 171 QuicConnectionStats* stats_; | 168 QuicConnectionStats* stats_; |
| 172 | 169 |
| 173 PacketTimeList received_packet_times_; | 170 PacketTimeList received_packet_times_; |
| 174 | 171 |
| 175 DISALLOW_COPY_AND_ASSIGN(QuicReceivedPacketManager); | 172 DISALLOW_COPY_AND_ASSIGN(QuicReceivedPacketManager); |
| 176 }; | 173 }; |
| 177 | 174 |
| 178 } // namespace net | 175 } // namespace net |
| 179 | 176 |
| 180 #endif // NET_QUIC_QUIC_RECEIVED_PACKET_MANAGER_H_ | 177 #endif // NET_QUIC_QUIC_RECEIVED_PACKET_MANAGER_H_ |
| OLD | NEW |