| OLD | NEW |
| 1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2015 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 // A connection level received packet manager which manages multiple per path | 5 // A connection level received packet manager which manages multiple per path |
| 6 // received packet managers. | 6 // received packet managers. |
| 7 | 7 |
| 8 #ifndef NET_QUIC_QUIC_MULTIPATH_RECEIVED_PACKET_MANAGER_H_ | 8 #ifndef NET_QUIC_QUIC_MULTIPATH_RECEIVED_PACKET_MANAGER_H_ |
| 9 #define NET_QUIC_QUIC_MULTIPATH_RECEIVED_PACKET_MANAGER_H_ | 9 #define NET_QUIC_QUIC_MULTIPATH_RECEIVED_PACKET_MANAGER_H_ |
| 10 | 10 |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 | 33 |
| 34 // Called when path with |path_id| is closed. | 34 // Called when path with |path_id| is closed. |
| 35 void OnPathClosed(QuicPathId path_id); | 35 void OnPathClosed(QuicPathId path_id); |
| 36 | 36 |
| 37 // Records packet receipt information on path with |path_id|. | 37 // Records packet receipt information on path with |path_id|. |
| 38 void RecordPacketReceived(QuicPathId path_id, | 38 void RecordPacketReceived(QuicPathId path_id, |
| 39 QuicByteCount bytes, | 39 QuicByteCount bytes, |
| 40 const QuicPacketHeader& header, | 40 const QuicPacketHeader& header, |
| 41 QuicTime receipt_time); | 41 QuicTime receipt_time); |
| 42 | 42 |
| 43 // Called when packet with |packet_number| is revived on path with |path_id|. | |
| 44 void RecordPacketRevived(QuicPathId path_id, QuicPacketNumber packet_number); | |
| 45 | |
| 46 // Checks whether |packet_number| is missing on path with |path_id|. | 43 // Checks whether |packet_number| is missing on path with |path_id|. |
| 47 bool IsMissing(QuicPathId path_id, QuicPacketNumber packet_number); | 44 bool IsMissing(QuicPathId path_id, QuicPacketNumber packet_number); |
| 48 | 45 |
| 49 // Checks if we're still waiting for the packet with |packet_number| on path | 46 // Checks if we're still waiting for the packet with |packet_number| on path |
| 50 // with |path_id|. | 47 // with |path_id|. |
| 51 bool IsAwaitingPacket(QuicPathId path_id, QuicPacketNumber packet_number); | 48 bool IsAwaitingPacket(QuicPathId path_id, QuicPacketNumber packet_number); |
| 52 | 49 |
| 53 // If |force_all_paths| is false, populates ack information for paths whose | 50 // If |force_all_paths| is false, populates ack information for paths whose |
| 54 // ack has been updated since UpdateReceivedPacketInfo was called last time. | 51 // ack has been updated since UpdateReceivedPacketInfo was called last time. |
| 55 // Otherwise, populates ack for all paths. | 52 // Otherwise, populates ack for all paths. |
| (...skipping 14 matching lines...) Expand all Loading... |
| 70 private: | 67 private: |
| 71 friend class test::QuicMultipathReceivedPacketManagerPeer; | 68 friend class test::QuicMultipathReceivedPacketManagerPeer; |
| 72 | 69 |
| 73 // Map mapping path id to path received packet manager. | 70 // Map mapping path id to path received packet manager. |
| 74 MultipathReceivedPacketManagerMap path_managers_; | 71 MultipathReceivedPacketManagerMap path_managers_; |
| 75 }; | 72 }; |
| 76 | 73 |
| 77 } // namespace net | 74 } // namespace net |
| 78 | 75 |
| 79 #endif // NET_QUIC_QUIC_MULTIPATH_RECEIVED_PACKET_MANAGER_H_ | 76 #endif // NET_QUIC_QUIC_MULTIPATH_RECEIVED_PACKET_MANAGER_H_ |
| OLD | NEW |