| 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;
|
|
|