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

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

Issue 2589983002: Create a QUIC wrapper around scoped_refptr. (Closed)
Patch Set: rm = nullptr 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 2cd07cf0e0a2d3e22c606fd3cdfa97f3096af7b0..b04aa0f179a34e1b64c51eb5021c9cb7bf56cc40 100644
--- a/net/quic/core/quic_packet_creator.h
+++ b/net/quic/core/quic_packet_creator.h
@@ -125,7 +125,7 @@ class QUIC_EXPORT_PRIVATE QuicPacketCreator {
QuicStreamOffset iov_offset,
QuicStreamOffset stream_offset,
bool fin,
- scoped_refptr<QuicAckListenerInterface> listener,
+ QuicReferenceCountedPointer<QuicAckListenerInterface> listener,
size_t* num_bytes_consumed);
// Returns true if there are frames pending to be serialized.
@@ -160,10 +160,11 @@ class QUIC_EXPORT_PRIVATE QuicPacketCreator {
// Identical to AddSavedFrame, but allows the frame to be padded.
bool AddPaddedSavedFrame(const QuicFrame& frame);
- // Adds |listener| to the next serialized packet and notifies the
- // std::listener with |length| as the number of acked bytes.
- void AddAckListener(scoped_refptr<QuicAckListenerInterface> listener,
- QuicPacketLength length);
+ // Adds |listener| to the next serialized packet and notifies the listener
+ // with |length| as the number of acked bytes.
+ void AddAckListener(
+ QuicReferenceCountedPointer<QuicAckListenerInterface> listener,
+ QuicPacketLength length);
// Creates a version negotiation packet which supports |supported_versions|.
std::unique_ptr<QuicEncryptedPacket> SerializeVersionNegotiationPacket(
« 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