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

Side by Side Diff: net/quic/core/quic_spdy_session.cc

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 unified diff | Download patch
« no previous file with comments | « net/quic/core/quic_spdy_session.h ('k') | net/quic/core/quic_spdy_stream.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "net/quic/core/quic_spdy_session.h" 5 #include "net/quic/core/quic_spdy_session.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "net/quic/core/quic_bug_tracker.h" 9 #include "net/quic/core/quic_bug_tracker.h"
10 #include "net/quic/core/quic_headers_stream.h" 10 #include "net/quic/core/quic_headers_stream.h"
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 return; 67 return;
68 } 68 }
69 stream->OnStreamHeaderList(fin, frame_len, header_list); 69 stream->OnStreamHeaderList(fin, frame_len, header_list);
70 } 70 }
71 71
72 size_t QuicSpdySession::WriteHeaders( 72 size_t QuicSpdySession::WriteHeaders(
73 QuicStreamId id, 73 QuicStreamId id,
74 SpdyHeaderBlock headers, 74 SpdyHeaderBlock headers,
75 bool fin, 75 bool fin,
76 SpdyPriority priority, 76 SpdyPriority priority,
77 scoped_refptr<QuicAckListenerInterface> ack_notifier_delegate) { 77 QuicReferenceCountedPointer<QuicAckListenerInterface>
78 ack_notifier_delegate) {
78 return headers_stream_->WriteHeaders(id, std::move(headers), fin, priority, 79 return headers_stream_->WriteHeaders(id, std::move(headers), fin, priority,
79 std::move(ack_notifier_delegate)); 80 std::move(ack_notifier_delegate));
80 } 81 }
81 82
82 void QuicSpdySession::OnHeadersHeadOfLineBlocking(QuicTime::Delta delta) { 83 void QuicSpdySession::OnHeadersHeadOfLineBlocking(QuicTime::Delta delta) {
83 // Implemented in Chromium for stats tracking. 84 // Implemented in Chromium for stats tracking.
84 } 85 }
85 86
86 void QuicSpdySession::RegisterStreamPriority(QuicStreamId id, 87 void QuicSpdySession::RegisterStreamPriority(QuicStreamId id,
87 SpdyPriority priority) { 88 SpdyPriority priority) {
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 DVLOG(1) << "De-encapsulating DATA frame for stream " << stream_id 160 DVLOG(1) << "De-encapsulating DATA frame for stream " << stream_id
160 << " offset " << offset << " len " << len << " fin " << fin; 161 << " offset " << offset << " len " << len << " fin " << fin;
161 OnStreamFrame(frame); 162 OnStreamFrame(frame);
162 } 163 }
163 164
164 bool QuicSpdySession::ShouldReleaseHeadersStreamSequencerBuffer() { 165 bool QuicSpdySession::ShouldReleaseHeadersStreamSequencerBuffer() {
165 return false; 166 return false;
166 } 167 }
167 168
168 } // namespace net 169 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/core/quic_spdy_session.h ('k') | net/quic/core/quic_spdy_stream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698