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

Unified Diff: net/quic/core/quic_packet_creator.cc

Issue 2580393003: Replace QuicAckListenerInterface* with scoped_refptr<QuicAckListenerInterface>. (Closed)
Patch Set: Created 4 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/quic/core/quic_packet_creator.h ('k') | net/quic/core/quic_packet_generator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/core/quic_packet_creator.cc
diff --git a/net/quic/core/quic_packet_creator.cc b/net/quic/core/quic_packet_creator.cc
index 9049c24c6496a22afcc9f1a654a6b9111659df06..d4bf8ece7256fbd8475128d6251e9690d014b77e 100644
--- a/net/quic/core/quic_packet_creator.cc
+++ b/net/quic/core/quic_packet_creator.cc
@@ -353,7 +353,7 @@ void QuicPacketCreator::CreateAndSerializeStreamFrame(
QuicStreamOffset iov_offset,
QuicStreamOffset stream_offset,
bool fin,
- QuicAckListenerInterface* listener,
+ const scoped_refptr<QuicAckListenerInterface>& listener,
size_t* num_bytes_consumed) {
DCHECK(queued_frames_.empty());
// Write out the packet header
@@ -464,8 +464,9 @@ bool QuicPacketCreator::AddPaddedSavedFrame(const QuicFrame& frame) {
return false;
}
-void QuicPacketCreator::AddAckListener(QuicAckListenerInterface* listener,
- QuicPacketLength length) {
+void QuicPacketCreator::AddAckListener(
+ const scoped_refptr<QuicAckListenerInterface>& listener,
+ QuicPacketLength length) {
DCHECK(!queued_frames_.empty());
packet_.listeners.emplace_back(listener, length);
}
« no previous file with comments | « net/quic/core/quic_packet_creator.h ('k') | net/quic/core/quic_packet_generator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698