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

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

Issue 2607873002: QUIC - refactor in preparation for two streams per HTTP transaction. (Closed)
Patch Set: Fixed namespaces and formatting. Created 3 years, 11 months 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.cc ('k') | net/quic/core/quic_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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_stream.h" 5 #include "net/quic/core/quic_spdy_stream.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/strings/string_number_conversions.h" 10 #include "base/strings/string_number_conversions.h"
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 spdy_session_ = nullptr; 327 spdy_session_ = nullptr;
328 } 328 }
329 329
330 QuicConsumedData QuicSpdyStream::WritevDataInner( 330 QuicConsumedData QuicSpdyStream::WritevDataInner(
331 QuicIOVector iov, 331 QuicIOVector iov,
332 QuicStreamOffset offset, 332 QuicStreamOffset offset,
333 bool fin, 333 bool fin,
334 QuicReferenceCountedPointer<QuicAckListenerInterface> ack_listener) { 334 QuicReferenceCountedPointer<QuicAckListenerInterface> ack_listener) {
335 if (spdy_session_->headers_stream() != nullptr && 335 if (spdy_session_->headers_stream() != nullptr &&
336 spdy_session_->force_hol_blocking()) { 336 spdy_session_->force_hol_blocking()) {
337 return spdy_session_->headers_stream()->WritevStreamData( 337 return spdy_session_->WritevStreamData(id(), iov, offset, fin,
338 id(), iov, offset, fin, std::move(ack_listener)); 338 std::move(ack_listener));
339 } 339 }
340 return QuicStream::WritevDataInner(iov, offset, fin, std::move(ack_listener)); 340 return QuicStream::WritevDataInner(iov, offset, fin, std::move(ack_listener));
341 } 341 }
342 342
343 } // namespace net 343 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/core/quic_spdy_session.cc ('k') | net/quic/core/quic_stream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698