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

Unified Diff: net/quic/core/quic_headers_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_crypto_stream.h ('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 7ca6e9dbd69d59d14865f66da5b6aceabd94e5ae..f517e2dd382ddba568050946a142aa6958004143 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,
- scoped_refptr<QuicAckListenerInterface> ack_listener);
+ QuicReferenceCountedPointer<QuicAckListenerInterface> ack_listener);
// Write |headers| for |promised_stream_id| on |original_stream_id| in a
// PUSH_PROMISE frame to peer.
@@ -72,7 +72,8 @@ class QUIC_EXPORT_PRIVATE QuicHeadersStream : public QuicStream {
QuicIOVector iov,
QuicStreamOffset offset,
bool fin,
- scoped_refptr<QuicAckListenerInterface> ack_notifier_delegate);
+ QuicReferenceCountedPointer<QuicAckListenerInterface>
+ ack_notifier_delegate);
// QuicStream implementation
void OnDataAvailable() override;
@@ -141,11 +142,11 @@ class QUIC_EXPORT_PRIVATE QuicHeadersStream : public QuicStream {
bool OnDataFrameHeader(QuicStreamId stream_id, size_t length, bool fin);
bool OnStreamFrameData(QuicStreamId stream_id, const char* data, size_t len);
// Helper for |WritevStreamData()|.
- void WriteDataFrame(
- QuicStreamId stream_id,
- base::StringPiece data,
- bool fin,
- scoped_refptr<QuicAckListenerInterface> ack_notifier_delegate);
+ void WriteDataFrame(QuicStreamId stream_id,
+ base::StringPiece data,
+ bool fin,
+ QuicReferenceCountedPointer<QuicAckListenerInterface>
+ ack_notifier_delegate);
// Returns true if the session is still connected.
bool IsConnected();
« no previous file with comments | « net/quic/core/quic_crypto_stream.h ('k') | net/quic/core/quic_headers_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698