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

Unified Diff: net/quic/core/quic_packet_creator.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_headers_stream.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 b04fb45ca47a75a01d4971219d2ca2d3d8fa18f8..2cd07cf0e0a2d3e22c606fd3cdfa97f3096af7b0 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,
- const scoped_refptr<QuicAckListenerInterface>& listener,
+ scoped_refptr<QuicAckListenerInterface> listener,
size_t* num_bytes_consumed);
// Returns true if there are frames pending to be serialized.
@@ -162,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(const scoped_refptr<QuicAckListenerInterface>& listener,
+ void AddAckListener(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.cc ('k') | net/quic/core/quic_packet_creator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698