| 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 #include "net/quic/quic_multipath_transmissions_map.h" | 5 #include "net/quic/quic_multipath_transmissions_map.h" |
| 6 | 6 |
| 7 namespace net_quic { | 7 namespace net { |
| 8 | 8 |
| 9 QuicMultipathTransmissionsMap::QuicMultipathTransmissionsMap() {} | 9 QuicMultipathTransmissionsMap::QuicMultipathTransmissionsMap() {} |
| 10 | 10 |
| 11 QuicMultipathTransmissionsMap::~QuicMultipathTransmissionsMap() { | 11 QuicMultipathTransmissionsMap::~QuicMultipathTransmissionsMap() { |
| 12 for (std::pair<QuicPathIdPacketNumber, MultipathTransmissionsList*> | 12 for (std::pair<QuicPathIdPacketNumber, MultipathTransmissionsList*> |
| 13 packet_transmissions : transmission_map_) { | 13 packet_transmissions : transmission_map_) { |
| 14 packet_transmissions.second->pop_front(); | 14 packet_transmissions.second->pop_front(); |
| 15 if (packet_transmissions.second->empty()) { | 15 if (packet_transmissions.second->empty()) { |
| 16 delete packet_transmissions.second; | 16 delete packet_transmissions.second; |
| 17 } | 17 } |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 MultipathTransmissionsList* transmission_list = it->second; | 60 MultipathTransmissionsList* transmission_list = it->second; |
| 61 MultipathTransmissionsList::iterator transmission_it; | 61 MultipathTransmissionsList::iterator transmission_it; |
| 62 // Remove all across paths transmissions of this packet from the map. | 62 // Remove all across paths transmissions of this packet from the map. |
| 63 for (QuicPathIdPacketNumber path_id_packet_number : *transmission_list) { | 63 for (QuicPathIdPacketNumber path_id_packet_number : *transmission_list) { |
| 64 transmission_map_.erase(path_id_packet_number); | 64 transmission_map_.erase(path_id_packet_number); |
| 65 } | 65 } |
| 66 // Remove the multipath transmissions list. | 66 // Remove the multipath transmissions list. |
| 67 delete transmission_list; | 67 delete transmission_list; |
| 68 } | 68 } |
| 69 | 69 |
| 70 } // namespace net_quic | 70 } // namespace net |
| OLD | NEW |