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 19 matching lines...) Expand all Loading... |
30 ~QuicMultipathReceivedPacketManager(); | 30 ~QuicMultipathReceivedPacketManager(); |
31 | 31 |
32 // Called when a new path with |path_id| is created. | 32 // Called when a new path with |path_id| is created. |
33 void OnPathCreated(QuicPathId path_id, QuicConnectionStats* stats); | 33 void OnPathCreated(QuicPathId path_id, QuicConnectionStats* stats); |
34 | 34 |
35 // Called when path with |path_id| is closed. | 35 // Called when path with |path_id| is closed. |
36 void OnPathClosed(QuicPathId path_id); | 36 void OnPathClosed(QuicPathId path_id); |
37 | 37 |
38 // Records packet receipt information on path with |path_id|. | 38 // Records packet receipt information on path with |path_id|. |
39 void RecordPacketReceived(QuicPathId path_id, | 39 void RecordPacketReceived(QuicPathId path_id, |
40 QuicByteCount bytes, | |
41 const QuicPacketHeader& header, | 40 const QuicPacketHeader& header, |
42 QuicTime receipt_time); | 41 QuicTime receipt_time); |
43 | 42 |
44 // Checks whether |packet_number| is missing on path with |path_id|. | 43 // Checks whether |packet_number| is missing on path with |path_id|. |
45 bool IsMissing(QuicPathId path_id, QuicPacketNumber packet_number); | 44 bool IsMissing(QuicPathId path_id, QuicPacketNumber packet_number); |
46 | 45 |
47 // 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 |
48 // with |path_id|. | 47 // with |path_id|. |
49 bool IsAwaitingPacket(QuicPathId path_id, QuicPacketNumber packet_number); | 48 bool IsAwaitingPacket(QuicPathId path_id, QuicPacketNumber packet_number); |
50 | 49 |
(...skipping 17 matching lines...) Expand all Loading... |
68 private: | 67 private: |
69 friend class test::QuicMultipathReceivedPacketManagerPeer; | 68 friend class test::QuicMultipathReceivedPacketManagerPeer; |
70 | 69 |
71 // Map mapping path id to path received packet manager. | 70 // Map mapping path id to path received packet manager. |
72 MultipathReceivedPacketManagerMap path_managers_; | 71 MultipathReceivedPacketManagerMap path_managers_; |
73 }; | 72 }; |
74 | 73 |
75 } // namespace net | 74 } // namespace net |
76 | 75 |
77 #endif // NET_QUIC_QUIC_MULTIPATH_RECEIVED_PACKET_MANAGER_H_ | 76 #endif // NET_QUIC_QUIC_MULTIPATH_RECEIVED_PACKET_MANAGER_H_ |
OLD | NEW |