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_QUIC_SPDY_STREAM_H_ | 9 #ifndef NET_QUIC_QUIC_SPDY_STREAM_H_ |
10 #define NET_QUIC_QUIC_SPDY_STREAM_H_ | 10 #define NET_QUIC_QUIC_SPDY_STREAM_H_ |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
186 } | 186 } |
187 | 187 |
188 // Returns whatever trailers have been received for this stream. | 188 // Returns whatever trailers have been received for this stream. |
189 const SpdyHeaderBlock& received_trailers() const { | 189 const SpdyHeaderBlock& received_trailers() const { |
190 return received_trailers_; | 190 return received_trailers_; |
191 } | 191 } |
192 | 192 |
193 // Returns true if headers have been fully read and consumed. | 193 // Returns true if headers have been fully read and consumed. |
194 bool FinishedReadingHeaders() const; | 194 bool FinishedReadingHeaders() const; |
195 | 195 |
196 // Returns true if trailers have been fully read and consumed. | 196 // Returns true if trailers have been fully read and consumed, or FIN has |
| 197 // been received and there are no trailers. |
197 bool FinishedReadingTrailers() const; | 198 bool FinishedReadingTrailers() const; |
198 | 199 |
199 virtual SpdyPriority priority() const; | 200 virtual SpdyPriority priority() const; |
200 | 201 |
201 // Sets priority_ to priority. This should only be called before bytes are | 202 // Sets priority_ to priority. This should only be called before bytes are |
202 // written to the server. | 203 // written to the server. |
203 void SetPriority(SpdyPriority priority); | 204 void SetPriority(SpdyPriority priority); |
204 | 205 |
205 // Called when owning session is getting deleted to avoid subsequent | 206 // Called when owning session is getting deleted to avoid subsequent |
206 // use of the spdy_session_ member. | 207 // use of the spdy_session_ member. |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
260 std::string decompressed_trailers_; | 261 std::string decompressed_trailers_; |
261 // The parsed trailers received from the peer. | 262 // The parsed trailers received from the peer. |
262 SpdyHeaderBlock received_trailers_; | 263 SpdyHeaderBlock received_trailers_; |
263 | 264 |
264 DISALLOW_COPY_AND_ASSIGN(QuicSpdyStream); | 265 DISALLOW_COPY_AND_ASSIGN(QuicSpdyStream); |
265 }; | 266 }; |
266 | 267 |
267 } // namespace net | 268 } // namespace net |
268 | 269 |
269 #endif // NET_QUIC_QUIC_SPDY_STREAM_H_ | 270 #endif // NET_QUIC_QUIC_SPDY_STREAM_H_ |
OLD | NEW |