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

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

Issue 2589983002: Create a QUIC wrapper around scoped_refptr. (Closed)
Patch Set: rm = nullptr 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 783f2b1c42e40aeb27797881edb875f14101d1e5..41a56742a5c802a091a65ce6bee7711a2a032a6a 100644
--- a/net/quic/core/quic_spdy_stream.h
+++ b/net/quic/core/quic_spdy_stream.h
@@ -105,19 +105,21 @@ class QUIC_EXPORT_PRIVATE QuicSpdyStream : public QuicStream {
virtual size_t WriteHeaders(
SpdyHeaderBlock header_block,
bool fin,
- scoped_refptr<QuicAckListenerInterface> ack_notifier_delegate);
+ QuicReferenceCountedPointer<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,
- scoped_refptr<QuicAckListenerInterface> ack_notifier_delegate);
+ void WriteOrBufferBody(const std::string& data,
+ bool fin,
+ QuicReferenceCountedPointer<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,
- scoped_refptr<QuicAckListenerInterface> ack_notifier_delegate);
+ QuicReferenceCountedPointer<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
@@ -201,7 +203,8 @@ class QUIC_EXPORT_PRIVATE QuicSpdyStream : public QuicStream {
QuicIOVector iov,
QuicStreamOffset offset,
bool fin,
- scoped_refptr<QuicAckListenerInterface> ack_notifier_delegate) override;
+ QuicReferenceCountedPointer<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