| 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 map manages packets which are transmitted across multiple paths. | 5 // A map manages packets which are transmitted across multiple paths. |
| 6 // For example, a packet is originally transmitted on path 1 with packet number | 6 // For example, a packet is originally transmitted on path 1 with packet number |
| 7 // 1. Then this packet is retransmitted on path 2 with packet number 1. (1, 1) | 7 // 1. Then this packet is retransmitted on path 2 with packet number 1. (1, 1) |
| 8 // and (2, 1) are inserted into this map. Suppose (2, 1) is detected lost and | 8 // and (2, 1) are inserted into this map. Suppose (2, 1) is detected lost and |
| 9 // gets retransmitted on path 2 with packet 2. (2, 2) will not be inserted | 9 // gets retransmitted on path 2 with packet 2. (2, 2) will not be inserted |
| 10 // because this transmission does not "across" path compared to (2, 1). | 10 // because this transmission does not "across" path compared to (2, 1). |
| 11 | 11 |
| 12 #ifndef NET_QUIC_QUIC_MULTIPATH_TRANSMISSIONS_MAP_H_ | 12 #ifndef NET_QUIC_CORE_QUIC_MULTIPATH_TRANSMISSIONS_MAP_H_ |
| 13 #define NET_QUIC_QUIC_MULTIPATH_TRANSMISSIONS_MAP_H_ | 13 #define NET_QUIC_CORE_QUIC_MULTIPATH_TRANSMISSIONS_MAP_H_ |
| 14 | 14 |
| 15 #include <deque> | 15 #include <deque> |
| 16 #include <unordered_map> | 16 #include <unordered_map> |
| 17 | 17 |
| 18 #include "base/macros.h" | 18 #include "base/macros.h" |
| 19 #include "net/base/net_export.h" | 19 #include "net/base/net_export.h" |
| 20 #include "net/quic/core/quic_packets.h" | 20 #include "net/quic/core/quic_packets.h" |
| 21 #include "net/quic/core/quic_utils.h" | 21 #include "net/quic/core/quic_utils.h" |
| 22 | 22 |
| 23 namespace net { | 23 namespace net { |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 // lists of multipath transmissions of the same packet. For example, if a | 64 // lists of multipath transmissions of the same packet. For example, if a |
| 65 // packet has been transmitted as (1, 1) and (2, 1), two entries are added | 65 // packet has been transmitted as (1, 1) and (2, 1), two entries are added |
| 66 // to this map and both values point to the same list: {(1, 1), (2, 1)}. | 66 // to this map and both values point to the same list: {(1, 1), (2, 1)}. |
| 67 // The MultipathTransmissionsList is owned by the transmission which is | 67 // The MultipathTransmissionsList is owned by the transmission which is |
| 68 // received first (on any path). | 68 // received first (on any path). |
| 69 MultipathTransmissionsMap transmission_map_; | 69 MultipathTransmissionsMap transmission_map_; |
| 70 }; | 70 }; |
| 71 | 71 |
| 72 } // namespace net | 72 } // namespace net |
| 73 | 73 |
| 74 #endif // NET_QUIC_QUIC_MULTIPATH_TRANSMISSIONS_MAP_H_ | 74 #endif // NET_QUIC_CORE_QUIC_MULTIPATH_TRANSMISSIONS_MAP_H_ |
| OLD | NEW |