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

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

Issue 147763009: Add the client address to the Public Reset packet. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Remove crypto_handshake_message.* from the CL; they were committed separately Created 6 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 | Annotate | Revision Log
« no previous file with comments | « net/quic/quic_sent_packet_manager.h ('k') | net/quic/quic_session_test.cc » ('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/crypto/crypto_protocol.h"
10 #include "net/quic/quic_ack_notifier_manager.h" 11 #include "net/quic/quic_ack_notifier_manager.h"
11 #include "net/quic/quic_utils_chromium.h" 12 #include "net/quic/quic_utils_chromium.h"
12 13
13 using std::make_pair; 14 using std::make_pair;
14 using std::max; 15 using std::max;
15 using std::min; 16 using std::min;
16 17
17 // TODO(rtenneti): Remove this. 18 // TODO(rtenneti): Remove this.
18 // Do not flip this flag until the flakiness of the 19 // Do not flip this flag until the flakiness of the
19 // net/tools/quic/end_to_end_test is fixed. 20 // net/tools/quic/end_to_end_test is fixed.
(...skipping 944 matching lines...) Expand 10 before | Expand all | Expand 10 after
964 } 965 }
965 previous_transmissions->erase(sequence_number); 966 previous_transmissions->erase(sequence_number);
966 if (previous_transmissions->size() == 1) { 967 if (previous_transmissions->size() == 1) {
967 QuicPacketSequenceNumber current = *previous_transmissions->begin(); 968 QuicPacketSequenceNumber current = *previous_transmissions->begin();
968 unacked_packets_[current].previous_transmissions = NULL; 969 unacked_packets_[current].previous_transmissions = NULL;
969 delete previous_transmissions; 970 delete previous_transmissions;
970 } 971 }
971 } 972 }
972 973
973 } // namespace net 974 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/quic_sent_packet_manager.h ('k') | net/quic/quic_session_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698