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

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

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_stream.h ('k') | net/quic/core/quic_stream.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/core/quic_spdy_stream.cc
diff --git a/net/quic/core/quic_spdy_stream.cc b/net/quic/core/quic_spdy_stream.cc
index 6c9335b76e87d82693766893cee84f3e312401ce..8db10432601ae60e8e4d9ae3c5b5f0c637c6b87d 100644
--- a/net/quic/core/quic_spdy_stream.cc
+++ b/net/quic/core/quic_spdy_stream.cc
@@ -61,7 +61,7 @@ void QuicSpdyStream::StopReading() {
size_t QuicSpdyStream::WriteHeaders(
SpdyHeaderBlock header_block,
bool fin,
- QuicAckListenerInterface* ack_notifier_delegate) {
+ const scoped_refptr<QuicAckListenerInterface>& ack_notifier_delegate) {
size_t bytes_written = spdy_session_->WriteHeaders(
id(), std::move(header_block), fin, priority_, ack_notifier_delegate);
if (fin) {
@@ -75,13 +75,13 @@ size_t QuicSpdyStream::WriteHeaders(
void QuicSpdyStream::WriteOrBufferBody(
const string& data,
bool fin,
- QuicAckListenerInterface* ack_notifier_delegate) {
+ const scoped_refptr<QuicAckListenerInterface>& ack_notifier_delegate) {
WriteOrBufferData(data, fin, ack_notifier_delegate);
}
size_t QuicSpdyStream::WriteTrailers(
SpdyHeaderBlock trailer_block,
- QuicAckListenerInterface* ack_notifier_delegate) {
+ const scoped_refptr<QuicAckListenerInterface>& ack_notifier_delegate) {
if (fin_sent()) {
QUIC_BUG << "Trailers cannot be sent after a FIN.";
return 0;
@@ -330,7 +330,7 @@ QuicConsumedData QuicSpdyStream::WritevDataInner(
QuicIOVector iov,
QuicStreamOffset offset,
bool fin,
- QuicAckListenerInterface* ack_notifier_delegate) {
+ const scoped_refptr<QuicAckListenerInterface>& ack_notifier_delegate) {
if (spdy_session_->headers_stream() != nullptr &&
spdy_session_->force_hol_blocking()) {
return spdy_session_->headers_stream()->WritevStreamData(
« no previous file with comments | « net/quic/core/quic_spdy_stream.h ('k') | net/quic/core/quic_stream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698