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

Side by Side Diff: net/quic/test_tools/quic_sent_packet_manager_peer.cc

Issue 2228783004: Fix memory corruption from SetMaxPacingRate by inlining PacingSender. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@129351671
Patch Set: git pull from upper stream Created 4 years, 4 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
« no previous file with comments | « net/quic/test_tools/quic_connection_peer.cc ('k') | no next file » | 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/test_tools/quic_sent_packet_manager_peer.h" 5 #include "net/quic/test_tools/quic_sent_packet_manager_peer.h"
6 6
7 #include "base/stl_util.h" 7 #include "base/stl_util.h"
8 #include "net/quic/core/congestion_control/loss_detection_interface.h" 8 #include "net/quic/core/congestion_control/loss_detection_interface.h"
9 #include "net/quic/core/congestion_control/send_algorithm_interface.h" 9 #include "net/quic/core/congestion_control/send_algorithm_interface.h"
10 #include "net/quic/core/quic_flags.h" 10 #include "net/quic/core/quic_flags.h"
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 // static 61 // static
62 SendAlgorithmInterface* QuicSentPacketManagerPeer::GetSendAlgorithm( 62 SendAlgorithmInterface* QuicSentPacketManagerPeer::GetSendAlgorithm(
63 const QuicSentPacketManager& sent_packet_manager) { 63 const QuicSentPacketManager& sent_packet_manager) {
64 return sent_packet_manager.send_algorithm_.get(); 64 return sent_packet_manager.send_algorithm_.get();
65 } 65 }
66 66
67 // static 67 // static
68 void QuicSentPacketManagerPeer::SetSendAlgorithm( 68 void QuicSentPacketManagerPeer::SetSendAlgorithm(
69 QuicSentPacketManager* sent_packet_manager, 69 QuicSentPacketManager* sent_packet_manager,
70 SendAlgorithmInterface* send_algorithm) { 70 SendAlgorithmInterface* send_algorithm) {
71 sent_packet_manager->send_algorithm_.reset(send_algorithm); 71 sent_packet_manager->SetSendAlgorithm(send_algorithm);
72 } 72 }
73 73
74 // static 74 // static
75 const LossDetectionInterface* QuicSentPacketManagerPeer::GetLossAlgorithm( 75 const LossDetectionInterface* QuicSentPacketManagerPeer::GetLossAlgorithm(
76 QuicSentPacketManager* sent_packet_manager) { 76 QuicSentPacketManager* sent_packet_manager) {
77 return sent_packet_manager->loss_algorithm_; 77 return sent_packet_manager->loss_algorithm_;
78 } 78 }
79 79
80 // static 80 // static
81 void QuicSentPacketManagerPeer::SetLossAlgorithm( 81 void QuicSentPacketManagerPeer::SetLossAlgorithm(
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 // static 202 // static
203 bool QuicSentPacketManagerPeer::HasRetransmittableFrames( 203 bool QuicSentPacketManagerPeer::HasRetransmittableFrames(
204 QuicSentPacketManager* sent_packet_manager, 204 QuicSentPacketManager* sent_packet_manager,
205 QuicPacketNumber packet_number) { 205 QuicPacketNumber packet_number) {
206 return sent_packet_manager->unacked_packets_.HasRetransmittableFrames( 206 return sent_packet_manager->unacked_packets_.HasRetransmittableFrames(
207 packet_number); 207 packet_number);
208 } 208 }
209 209
210 } // namespace test 210 } // namespace test
211 } // namespace net 211 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/test_tools/quic_connection_peer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698