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

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

Issue 2588043002: Pass value and use std::move instead of const reference for ack listeners. (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 be0215a776a3a33951986bbbd100d9f5cda9087b..ff5c319423b7d75328fb896ee5346a10f1424524 100644
--- a/net/quic/core/quic_packet_generator.h
+++ b/net/quic/core/quic_packet_generator.h
@@ -98,7 +98,7 @@ class QUIC_EXPORT_PRIVATE QuicPacketGenerator {
QuicIOVector iov,
QuicStreamOffset offset,
bool fin,
- const scoped_refptr<QuicAckListenerInterface>& listener);
+ scoped_refptr<QuicAckListenerInterface> listener);
// Sends as many data only packets as allowed by the send algorithm and the
// available iov.
@@ -108,12 +108,12 @@ class QUIC_EXPORT_PRIVATE QuicPacketGenerator {
const QuicIOVector& iov,
QuicStreamOffset offset,
bool fin,
- const scoped_refptr<QuicAckListenerInterface>& listener);
+ scoped_refptr<QuicAckListenerInterface> listener);
// Generates an MTU discovery packet of specified size.
void GenerateMtuDiscoveryPacket(
QuicByteCount target_mtu,
- const scoped_refptr<QuicAckListenerInterface>& listener);
+ 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