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

Unified Diff: net/quic/core/quic_headers_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_connection_test.cc ('k') | net/quic/core/quic_headers_stream.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/core/quic_headers_stream.h
diff --git a/net/quic/core/quic_headers_stream.h b/net/quic/core/quic_headers_stream.h
index 2c2b6dcd8a3e7e79398ea9fd65ef411f29fec4af..7ca6e9dbd69d59d14865f66da5b6aceabd94e5ae 100644
--- a/net/quic/core/quic_headers_stream.h
+++ b/net/quic/core/quic_headers_stream.h
@@ -56,7 +56,7 @@ class QUIC_EXPORT_PRIVATE QuicHeadersStream : public QuicStream {
SpdyHeaderBlock headers,
bool fin,
SpdyPriority priority,
- const scoped_refptr<QuicAckListenerInterface>& ack_listener);
+ scoped_refptr<QuicAckListenerInterface> ack_listener);
// Write |headers| for |promised_stream_id| on |original_stream_id| in a
// PUSH_PROMISE frame to peer.
@@ -72,7 +72,7 @@ class QUIC_EXPORT_PRIVATE QuicHeadersStream : public QuicStream {
QuicIOVector iov,
QuicStreamOffset offset,
bool fin,
- const scoped_refptr<QuicAckListenerInterface>& ack_notifier_delegate);
+ scoped_refptr<QuicAckListenerInterface> ack_notifier_delegate);
// QuicStream implementation
void OnDataAvailable() override;
@@ -145,7 +145,7 @@ class QUIC_EXPORT_PRIVATE QuicHeadersStream : public QuicStream {
QuicStreamId stream_id,
base::StringPiece data,
bool fin,
- const scoped_refptr<QuicAckListenerInterface>& ack_notifier_delegate);
+ scoped_refptr<QuicAckListenerInterface> ack_notifier_delegate);
// Returns true if the session is still connected.
bool IsConnected();
« no previous file with comments | « net/quic/core/quic_connection_test.cc ('k') | net/quic/core/quic_headers_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698