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

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

Issue 2580393003: Replace QuicAckListenerInterface* with scoped_refptr<QuicAckListenerInterface>. (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_session.cc ('k') | net/quic/core/quic_spdy_stream.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/core/quic_spdy_stream.h
diff --git a/net/quic/core/quic_spdy_stream.h b/net/quic/core/quic_spdy_stream.h
index 147d85c024a7b9b18163aadedf019fccda4131f0..27d3de68831ebc7fbf89e8ff47efe32217a55e35 100644
--- a/net/quic/core/quic_spdy_stream.h
+++ b/net/quic/core/quic_spdy_stream.h
@@ -102,19 +102,22 @@ class QUIC_EXPORT_PRIVATE QuicSpdyStream : public QuicStream {
// Writes the headers contained in |header_block| to the dedicated
// headers stream.
- virtual size_t WriteHeaders(SpdyHeaderBlock header_block,
- bool fin,
- QuicAckListenerInterface* ack_notifier_delegate);
+ virtual size_t WriteHeaders(
+ SpdyHeaderBlock header_block,
+ bool fin,
+ const scoped_refptr<QuicAckListenerInterface>& ack_notifier_delegate);
// Sends |data| to the peer, or buffers if it can't be sent immediately.
- void WriteOrBufferBody(const std::string& data,
- bool fin,
- QuicAckListenerInterface* ack_notifier_delegate);
+ void WriteOrBufferBody(
+ const std::string& data,
+ bool fin,
+ const scoped_refptr<QuicAckListenerInterface>& ack_notifier_delegate);
// Writes the trailers contained in |trailer_block| to the dedicated
// headers stream. Trailers will always have the FIN set.
- virtual size_t WriteTrailers(SpdyHeaderBlock trailer_block,
- QuicAckListenerInterface* ack_notifier_delegate);
+ virtual size_t WriteTrailers(
+ SpdyHeaderBlock trailer_block,
+ const scoped_refptr<QuicAckListenerInterface>& ack_notifier_delegate);
// Marks the trailers as consumed. This applies to the case where this object
// receives headers and trailers as QuicHeaderLists via calls to
@@ -198,7 +201,8 @@ class QUIC_EXPORT_PRIVATE QuicSpdyStream : public QuicStream {
QuicIOVector iov,
QuicStreamOffset offset,
bool fin,
- QuicAckListenerInterface* ack_notifier_delegate) override;
+ const scoped_refptr<QuicAckListenerInterface>& ack_notifier_delegate)
+ override;
private:
friend class test::QuicSpdyStreamPeer;
« no previous file with comments | « net/quic/core/quic_spdy_session.cc ('k') | net/quic/core/quic_spdy_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698