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/quic_spdy_stream.h" | 5 #include "net/quic/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 384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
395 } | 395 } |
396 | 396 |
397 SpdyPriority QuicSpdyStream::priority() const { | 397 SpdyPriority QuicSpdyStream::priority() const { |
398 return priority_; | 398 return priority_; |
399 } | 399 } |
400 | 400 |
401 void QuicSpdyStream::ClearSession() { | 401 void QuicSpdyStream::ClearSession() { |
402 spdy_session_ = nullptr; | 402 spdy_session_ = nullptr; |
403 } | 403 } |
404 | 404 |
| 405 QuicConsumedData QuicSpdyStream::WritevDataInner( |
| 406 QuicIOVector iov, |
| 407 QuicStreamOffset offset, |
| 408 bool fin, |
| 409 QuicAckListenerInterface* ack_notifier_delegate) { |
| 410 if (spdy_session_->headers_stream() != nullptr && |
| 411 spdy_session_->force_hol_blocking()) { |
| 412 return spdy_session_->headers_stream()->WritevStreamData( |
| 413 id(), iov, offset, fin, ack_notifier_delegate); |
| 414 } |
| 415 return ReliableQuicStream::WritevDataInner(iov, offset, fin, |
| 416 ack_notifier_delegate); |
| 417 } |
| 418 |
405 } // namespace net | 419 } // namespace net |
OLD | NEW |