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

Unified Diff: net/quic/core/quic_packet_creator.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_headers_stream_test.cc ('k') | net/quic/core/quic_packet_creator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/core/quic_packet_creator.h
diff --git a/net/quic/core/quic_packet_creator.h b/net/quic/core/quic_packet_creator.h
index e02a3359703f95b31e988c80f6f672d814d709c1..b04fb45ca47a75a01d4971219d2ca2d3d8fa18f8 100644
--- a/net/quic/core/quic_packet_creator.h
+++ b/net/quic/core/quic_packet_creator.h
@@ -119,13 +119,14 @@ class QUIC_EXPORT_PRIVATE QuicPacketCreator {
// QuicStreamFrame to the returned SerializedPacket. Sets
// |num_bytes_consumed| to the number of bytes consumed to create the
// QuicStreamFrame.
- void CreateAndSerializeStreamFrame(QuicStreamId id,
- const QuicIOVector& iov,
- QuicStreamOffset iov_offset,
- QuicStreamOffset stream_offset,
- bool fin,
- QuicAckListenerInterface* listener,
- size_t* num_bytes_consumed);
+ void CreateAndSerializeStreamFrame(
+ QuicStreamId id,
+ const QuicIOVector& iov,
+ QuicStreamOffset iov_offset,
+ QuicStreamOffset stream_offset,
+ bool fin,
+ const scoped_refptr<QuicAckListenerInterface>& listener,
+ size_t* num_bytes_consumed);
// Returns true if there are frames pending to be serialized.
bool HasPendingFrames() const;
@@ -161,7 +162,7 @@ class QUIC_EXPORT_PRIVATE QuicPacketCreator {
// Adds |listener| to the next serialized packet and notifies the
// std::listener with |length| as the number of acked bytes.
- void AddAckListener(QuicAckListenerInterface* listener,
+ void AddAckListener(const scoped_refptr<QuicAckListenerInterface>& listener,
QuicPacketLength length);
// Creates a version negotiation packet which supports |supported_versions|.
« no previous file with comments | « net/quic/core/quic_headers_stream_test.cc ('k') | net/quic/core/quic_packet_creator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698