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

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

Issue 140253014: QUIC - Moved FindOrNull and FindOrDie to a separate files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Used similarity to upload Created 6 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « net/net.gyp ('k') | net/quic/quic_utils.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_sent_packet_manager.h" 5 #include "net/quic/quic_sent_packet_manager.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/stl_util.h" 8 #include "base/stl_util.h"
9 #include "net/quic/congestion_control/pacing_sender.h" 9 #include "net/quic/congestion_control/pacing_sender.h"
10 #include "net/quic/quic_ack_notifier_manager.h" 10 #include "net/quic/quic_ack_notifier_manager.h"
11 #include "net/quic/quic_utils_chromium.h"
11 12
12 using std::make_pair; 13 using std::make_pair;
13 using std::max; 14 using std::max;
14 using std::min; 15 using std::min;
15 16
16 // TODO(rtenneti): Remove this. 17 // TODO(rtenneti): Remove this.
17 // Do not flip this flag until the flakiness of the 18 // Do not flip this flag until the flakiness of the
18 // net/tools/quic/end_to_end_test is fixed. 19 // net/tools/quic/end_to_end_test is fixed.
19 // If true, then QUIC connections will track the retransmission history of a 20 // If true, then QUIC connections will track the retransmission history of a
20 // packet so that an ack of a previous transmission will ack the data of all 21 // packet so that an ack of a previous transmission will ack the data of all
(...skipping 957 matching lines...) Expand 10 before | Expand all | Expand 10 after
978 } 979 }
979 previous_transmissions->erase(sequence_number); 980 previous_transmissions->erase(sequence_number);
980 if (previous_transmissions->size() == 1) { 981 if (previous_transmissions->size() == 1) {
981 QuicPacketSequenceNumber current = *previous_transmissions->begin(); 982 QuicPacketSequenceNumber current = *previous_transmissions->begin();
982 unacked_packets_[current].previous_transmissions = NULL; 983 unacked_packets_[current].previous_transmissions = NULL;
983 delete previous_transmissions; 984 delete previous_transmissions;
984 } 985 }
985 } 986 }
986 987
987 } // namespace net 988 } // namespace net
OLDNEW
« no previous file with comments | « net/net.gyp ('k') | net/quic/quic_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698