Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(42)

Side by Side Diff: net/quic/quic_multipath_transmissions_map.cc

Issue 1660593004: Landing Recent QUIC changes until 01/28/2016 18:41 UTC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Final_0202
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « net/quic/quic_multipath_transmissions_map.h ('k') | net/quic/quic_multipath_transmissions_map_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698