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

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

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_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 b5a708ac3baf3e05fa8bd5b556369e7fb6c77277..3798b55a1840f169b0b5f5769da9151a06a1ddea 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,
- scoped_refptr<QuicAckListenerInterface> listener,
+ QuicReferenceCountedPointer<QuicAckListenerInterface> listener,
size_t* num_bytes_consumed) {
DCHECK(queued_frames_.empty());
// Write out the packet header
@@ -465,7 +465,7 @@ bool QuicPacketCreator::AddPaddedSavedFrame(const QuicFrame& frame) {
}
void QuicPacketCreator::AddAckListener(
- scoped_refptr<QuicAckListenerInterface> listener,
+ QuicReferenceCountedPointer<QuicAckListenerInterface> listener,
QuicPacketLength length) {
DCHECK(!queued_frames_.empty());
packet_.listeners.emplace_back(std::move(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