| 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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 void OnStreamReset(const QuicRstStreamFrame& frame) override; | 92 void OnStreamReset(const QuicRstStreamFrame& frame) override; |
| 93 | 93 |
| 94 // Writes the headers contained in |header_block| to the dedicated | 94 // Writes the headers contained in |header_block| to the dedicated |
| 95 // headers stream. | 95 // headers stream. |
| 96 virtual size_t WriteHeaders(const SpdyHeaderBlock& header_block, | 96 virtual size_t WriteHeaders(const SpdyHeaderBlock& header_block, |
| 97 bool fin, | 97 bool fin, |
| 98 QuicAckListenerInterface* ack_notifier_delegate); | 98 QuicAckListenerInterface* ack_notifier_delegate); |
| 99 | 99 |
| 100 // Writes the trailers contained in |trailer_block| to the dedicated | 100 // Writes the trailers contained in |trailer_block| to the dedicated |
| 101 // headers stream. Trailers will always have the FIN set. | 101 // headers stream. Trailers will always have the FIN set. |
| 102 size_t WriteTrailers(SpdyHeaderBlock trailer_block, | 102 virtual size_t WriteTrailers(SpdyHeaderBlock trailer_block, |
| 103 QuicAckListenerInterface* ack_notifier_delegate); | 103 QuicAckListenerInterface* ack_notifier_delegate); |
| 104 | 104 |
| 105 // Marks |bytes_consumed| of the headers data as consumed. | 105 // Marks |bytes_consumed| of the headers data as consumed. |
| 106 void MarkHeadersConsumed(size_t bytes_consumed); | 106 void MarkHeadersConsumed(size_t bytes_consumed); |
| 107 | 107 |
| 108 // Marks |bytes_consumed| of the trailers data as consumed. | 108 // Marks |bytes_consumed| of the trailers data as consumed. |
| 109 void MarkTrailersConsumed(size_t bytes_consumed); | 109 void MarkTrailersConsumed(size_t bytes_consumed); |
| 110 | 110 |
| 111 // This block of functions wraps the sequencer's functions of the same | 111 // This block of functions wraps the sequencer's functions of the same |
| 112 // name. These methods return uncompressed data until that has | 112 // name. These methods return uncompressed data until that has |
| 113 // been fully processed. Then they simply delegate to the sequencer. | 113 // been fully processed. Then they simply delegate to the sequencer. |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 // Contains a copy of the decompressed trailers until they are consumed | 172 // Contains a copy of the decompressed trailers until they are consumed |
| 173 // via ProcessData or Readv. | 173 // via ProcessData or Readv. |
| 174 std::string decompressed_trailers_; | 174 std::string decompressed_trailers_; |
| 175 | 175 |
| 176 DISALLOW_COPY_AND_ASSIGN(QuicSpdyStream); | 176 DISALLOW_COPY_AND_ASSIGN(QuicSpdyStream); |
| 177 }; | 177 }; |
| 178 | 178 |
| 179 } // namespace net | 179 } // namespace net |
| 180 | 180 |
| 181 #endif // NET_QUIC_QUIC_SPDY_STREAM_H_ | 181 #endif // NET_QUIC_QUIC_SPDY_STREAM_H_ |
| OLD | NEW |