OLD | NEW |
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 "net/base/parse_number.h" | 10 #include "net/base/parse_number.h" |
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
328 spdy_session_ = nullptr; | 328 spdy_session_ = nullptr; |
329 } | 329 } |
330 | 330 |
331 QuicConsumedData QuicSpdyStream::WritevDataInner( | 331 QuicConsumedData QuicSpdyStream::WritevDataInner( |
332 QuicIOVector iov, | 332 QuicIOVector iov, |
333 QuicStreamOffset offset, | 333 QuicStreamOffset offset, |
334 bool fin, | 334 bool fin, |
335 QuicReferenceCountedPointer<QuicAckListenerInterface> ack_listener) { | 335 QuicReferenceCountedPointer<QuicAckListenerInterface> ack_listener) { |
336 if (spdy_session_->headers_stream() != nullptr && | 336 if (spdy_session_->headers_stream() != nullptr && |
337 spdy_session_->force_hol_blocking()) { | 337 spdy_session_->force_hol_blocking()) { |
338 return spdy_session_->headers_stream()->WritevStreamData( | 338 return spdy_session_->WritevStreamData(id(), iov, offset, fin, |
339 id(), iov, offset, fin, std::move(ack_listener)); | 339 std::move(ack_listener)); |
340 } | 340 } |
341 return QuicStream::WritevDataInner(iov, offset, fin, std::move(ack_listener)); | 341 return QuicStream::WritevDataInner(iov, offset, fin, std::move(ack_listener)); |
342 } | 342 } |
343 | 343 |
344 } // namespace net | 344 } // namespace net |
OLD | NEW |