| 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 // The base class for streams which deliver data to/from an application. | 5 // The base class for streams which deliver data to/from an application. |
| 6 // In each direction, the data on such a stream first contains compressed | 6 // In each direction, the data on such a stream first contains compressed |
| 7 // headers then body data. | 7 // headers then body data. |
| 8 | 8 |
| 9 #ifndef NET_QUIC_CORE_QUIC_SPDY_STREAM_H_ | 9 #ifndef NET_QUIC_CORE_QUIC_SPDY_STREAM_H_ |
| 10 #define NET_QUIC_CORE_QUIC_SPDY_STREAM_H_ | 10 #define NET_QUIC_CORE_QUIC_SPDY_STREAM_H_ |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 void ClearSession(); | 174 void ClearSession(); |
| 175 | 175 |
| 176 // Returns true if the sequencer has delivered the FIN, and no more body bytes | 176 // Returns true if the sequencer has delivered the FIN, and no more body bytes |
| 177 // will be available. | 177 // will be available. |
| 178 bool IsClosed() { return sequencer()->IsClosed(); } | 178 bool IsClosed() { return sequencer()->IsClosed(); } |
| 179 | 179 |
| 180 void set_allow_bidirectional_data(bool value) { | 180 void set_allow_bidirectional_data(bool value) { |
| 181 allow_bidirectional_data_ = value; | 181 allow_bidirectional_data_ = value; |
| 182 } | 182 } |
| 183 | 183 |
| 184 bool allow_bidirectional_data() const { return allow_bidirectional_data_; } | 184 bool allow_bidirectional_data() const { |
| 185 return FLAGS_quic_reloadable_flag_quic_always_enable_bidi_streaming || |
| 186 allow_bidirectional_data_; |
| 187 } |
| 185 | 188 |
| 186 using QuicStream::CloseWriteSide; | 189 using QuicStream::CloseWriteSide; |
| 187 | 190 |
| 188 protected: | 191 protected: |
| 189 virtual void OnInitialHeadersComplete(bool fin, | 192 virtual void OnInitialHeadersComplete(bool fin, |
| 190 size_t frame_len, | 193 size_t frame_len, |
| 191 const QuicHeaderList& header_list); | 194 const QuicHeaderList& header_list); |
| 192 virtual void OnTrailingHeadersComplete(bool fin, | 195 virtual void OnTrailingHeadersComplete(bool fin, |
| 193 size_t frame_len, | 196 size_t frame_len, |
| 194 const QuicHeaderList& header_list); | 197 const QuicHeaderList& header_list); |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 231 bool trailers_consumed_; | 234 bool trailers_consumed_; |
| 232 // The parsed trailers received from the peer. | 235 // The parsed trailers received from the peer. |
| 233 SpdyHeaderBlock received_trailers_; | 236 SpdyHeaderBlock received_trailers_; |
| 234 | 237 |
| 235 DISALLOW_COPY_AND_ASSIGN(QuicSpdyStream); | 238 DISALLOW_COPY_AND_ASSIGN(QuicSpdyStream); |
| 236 }; | 239 }; |
| 237 | 240 |
| 238 } // namespace net | 241 } // namespace net |
| 239 | 242 |
| 240 #endif // NET_QUIC_CORE_QUIC_SPDY_STREAM_H_ | 243 #endif // NET_QUIC_CORE_QUIC_SPDY_STREAM_H_ |
| OLD | NEW |