| 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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 size_t WriteTrailers(SpdyHeaderBlock trailer_block, | 133 size_t WriteTrailers(SpdyHeaderBlock trailer_block, |
| 134 QuicAckListenerInterface* ack_notifier_delegate); | 134 QuicAckListenerInterface* ack_notifier_delegate); |
| 135 | 135 |
| 136 // Marks |bytes_consumed| of the headers data as consumed. | 136 // Marks |bytes_consumed| of the headers data as consumed. |
| 137 void MarkHeadersConsumed(size_t bytes_consumed); | 137 void MarkHeadersConsumed(size_t bytes_consumed); |
| 138 | 138 |
| 139 // Marks |bytes_consumed| of the trailers data as consumed. | 139 // Marks |bytes_consumed| of the trailers data as consumed. |
| 140 void MarkTrailersConsumed(size_t bytes_consumed); | 140 void MarkTrailersConsumed(size_t bytes_consumed); |
| 141 | 141 |
| 142 // Clears |header_list_|. | 142 // Clears |header_list_|. |
| 143 void ConsumeHeaderList() { header_list_.Clear(); } | 143 void ConsumeHeaderList(); |
| 144 | 144 |
| 145 // This block of functions wraps the sequencer's functions of the same | 145 // This block of functions wraps the sequencer's functions of the same |
| 146 // name. These methods return uncompressed data until that has | 146 // name. These methods return uncompressed data until that has |
| 147 // been fully processed. Then they simply delegate to the sequencer. | 147 // been fully processed. Then they simply delegate to the sequencer. |
| 148 virtual size_t Readv(const struct iovec* iov, size_t iov_len); | 148 virtual size_t Readv(const struct iovec* iov, size_t iov_len); |
| 149 virtual int GetReadableRegions(iovec* iov, size_t iov_len) const; | 149 virtual int GetReadableRegions(iovec* iov, size_t iov_len) const; |
| 150 void MarkConsumed(size_t num_bytes); | 150 void MarkConsumed(size_t num_bytes); |
| 151 | 151 |
| 152 // Returns true if header contains a valid 3-digit status and parse the status | 152 // Returns true if header contains a valid 3-digit status and parse the status |
| 153 // code to |status_code|. | 153 // code to |status_code|. |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 230 std::string decompressed_trailers_; | 230 std::string decompressed_trailers_; |
| 231 // The parsed trailers received from the peer. | 231 // The parsed trailers received from the peer. |
| 232 SpdyHeaderBlock received_trailers_; | 232 SpdyHeaderBlock received_trailers_; |
| 233 | 233 |
| 234 DISALLOW_COPY_AND_ASSIGN(QuicSpdyStream); | 234 DISALLOW_COPY_AND_ASSIGN(QuicSpdyStream); |
| 235 }; | 235 }; |
| 236 | 236 |
| 237 } // namespace net | 237 } // namespace net |
| 238 | 238 |
| 239 #endif // NET_QUIC_QUIC_SPDY_STREAM_H_ | 239 #endif // NET_QUIC_QUIC_SPDY_STREAM_H_ |
| OLD | NEW |