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

Unified Diff: net/quic/core/quic_packet_generator.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_generator.h ('k') | net/quic/core/quic_packets.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/core/quic_packet_generator.cc
diff --git a/net/quic/core/quic_packet_generator.cc b/net/quic/core/quic_packet_generator.cc
index baabe5f49ef1dd54e3407e8d6c1b4e408cb10ceb..a51463bacb0d28e5d1da9b022ab6e1090968e588 100644
--- a/net/quic/core/quic_packet_generator.cc
+++ b/net/quic/core/quic_packet_generator.cc
@@ -53,7 +53,7 @@ QuicConsumedData QuicPacketGenerator::ConsumeData(
QuicIOVector iov,
QuicStreamOffset offset,
bool fin,
- scoped_refptr<QuicAckListenerInterface> listener) {
+ QuicReferenceCountedPointer<QuicAckListenerInterface> listener) {
bool has_handshake = (id == kCryptoStreamId);
QUIC_BUG_IF(has_handshake && fin)
<< "Handshake packets should never send a fin";
@@ -125,7 +125,7 @@ QuicConsumedData QuicPacketGenerator::ConsumeDataFastPath(
const QuicIOVector& iov,
QuicStreamOffset offset,
bool fin,
- scoped_refptr<QuicAckListenerInterface> listener) {
+ QuicReferenceCountedPointer<QuicAckListenerInterface> listener) {
DCHECK_NE(id, kCryptoStreamId);
size_t total_bytes_consumed = 0;
while (total_bytes_consumed < iov.total_length &&
@@ -145,7 +145,7 @@ QuicConsumedData QuicPacketGenerator::ConsumeDataFastPath(
void QuicPacketGenerator::GenerateMtuDiscoveryPacket(
QuicByteCount target_mtu,
- scoped_refptr<QuicAckListenerInterface> listener) {
+ QuicReferenceCountedPointer<QuicAckListenerInterface> listener) {
// MTU discovery frames must be sent by themselves.
if (!packet_creator_.CanSetMaxPacketLength()) {
QUIC_BUG << "MTU discovery packets should only be sent when no other "
« no previous file with comments | « net/quic/core/quic_packet_generator.h ('k') | net/quic/core/quic_packets.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698