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

Unified Diff: net/quic/core/quic_packet_generator.h

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.cc ('k') | net/quic/core/quic_packet_generator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/core/quic_packet_generator.h
diff --git a/net/quic/core/quic_packet_generator.h b/net/quic/core/quic_packet_generator.h
index 094731eb7f56af3880a82273f9b01f78a288e476..be0215a776a3a33951986bbbd100d9f5cda9087b 100644
--- a/net/quic/core/quic_packet_generator.h
+++ b/net/quic/core/quic_packet_generator.h
@@ -93,24 +93,27 @@ class QUIC_EXPORT_PRIVATE QuicPacketGenerator {
// mode, these packets will also be sent during this call.
// |delegate| (if not nullptr) will be informed once all packets sent as a
// result of this call are ACKed by the peer.
- QuicConsumedData ConsumeData(QuicStreamId id,
- QuicIOVector iov,
- QuicStreamOffset offset,
- bool fin,
- QuicAckListenerInterface* listener);
+ QuicConsumedData ConsumeData(
+ QuicStreamId id,
+ QuicIOVector iov,
+ QuicStreamOffset offset,
+ bool fin,
+ const scoped_refptr<QuicAckListenerInterface>& listener);
// Sends as many data only packets as allowed by the send algorithm and the
// available iov.
// This path does not support FEC, padding, or bundling pending frames.
- QuicConsumedData ConsumeDataFastPath(QuicStreamId id,
- const QuicIOVector& iov,
- QuicStreamOffset offset,
- bool fin,
- QuicAckListenerInterface* listener);
+ QuicConsumedData ConsumeDataFastPath(
+ QuicStreamId id,
+ const QuicIOVector& iov,
+ QuicStreamOffset offset,
+ bool fin,
+ const scoped_refptr<QuicAckListenerInterface>& listener);
// Generates an MTU discovery packet of specified size.
- void GenerateMtuDiscoveryPacket(QuicByteCount target_mtu,
- QuicAckListenerInterface* listener);
+ void GenerateMtuDiscoveryPacket(
+ QuicByteCount target_mtu,
+ const scoped_refptr<QuicAckListenerInterface>& listener);
// Indicates whether batch mode is currently enabled.
bool InBatchMode();
« no previous file with comments | « net/quic/core/quic_packet_creator.cc ('k') | net/quic/core/quic_packet_generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698