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

Unified Diff: net/quic/core/quic_stream.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_spdy_stream.cc ('k') | net/quic/core/quic_stream.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/core/quic_stream.h
diff --git a/net/quic/core/quic_stream.h b/net/quic/core/quic_stream.h
index e74150c9de23821c44bfc01457e3e1c155afc601..2ee785eef2f6ae39076a6c594bf32df146a3f72a 100644
--- a/net/quic/core/quic_stream.h
+++ b/net/quic/core/quic_stream.h
@@ -184,10 +184,9 @@ class QUIC_EXPORT_PRIVATE QuicStream {
// and then buffers any remaining data in queued_data_.
// If fin is true: if it is immediately passed on to the session,
// write_side_closed() becomes true, otherwise fin_buffered_ becomes true.
- void WriteOrBufferData(
- base::StringPiece data,
- bool fin,
- const scoped_refptr<QuicAckListenerInterface>& ack_listener);
+ void WriteOrBufferData(base::StringPiece data,
+ bool fin,
+ scoped_refptr<QuicAckListenerInterface> ack_listener);
// Sends as many bytes in the first |count| buffers of |iov| to the connection
// as the connection will consume.
@@ -198,7 +197,7 @@ class QUIC_EXPORT_PRIVATE QuicStream {
const struct iovec* iov,
int iov_count,
bool fin,
- const scoped_refptr<QuicAckListenerInterface>& ack_listener);
+ scoped_refptr<QuicAckListenerInterface> ack_listener);
// Allows override of the session level writev, for the force HOL
// blocking experiment.
@@ -206,7 +205,7 @@ class QUIC_EXPORT_PRIVATE QuicStream {
QuicIOVector iov,
QuicStreamOffset offset,
bool fin,
- const scoped_refptr<QuicAckListenerInterface>& ack_notifier_delegate);
+ scoped_refptr<QuicAckListenerInterface> ack_notifier_delegate);
// Close the write side of the socket. Further writes will fail.
// Can be called by the subclass or internally.
« no previous file with comments | « net/quic/core/quic_spdy_stream.cc ('k') | net/quic/core/quic_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698