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_DATA_STREAM_H_ | 9 #ifndef NET_QUIC_QUIC_DATA_STREAM_H_ |
10 #define NET_QUIC_QUIC_DATA_STREAM_H_ | 10 #define NET_QUIC_QUIC_DATA_STREAM_H_ |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 bool FinishedReadingHeaders(); | 128 bool FinishedReadingHeaders(); |
129 | 129 |
130 Visitor* visitor_; | 130 Visitor* visitor_; |
131 // True if the headers have been completely decompresssed. | 131 // True if the headers have been completely decompresssed. |
132 bool headers_decompressed_; | 132 bool headers_decompressed_; |
133 // The priority of the stream, once parsed. | 133 // The priority of the stream, once parsed. |
134 QuicPriority priority_; | 134 QuicPriority priority_; |
135 // Contains a copy of the decompressed headers until they are consumed | 135 // Contains a copy of the decompressed headers until they are consumed |
136 // via ProcessData or Readv. | 136 // via ProcessData or Readv. |
137 std::string decompressed_headers_; | 137 std::string decompressed_headers_; |
138 // True if an error was encountered during decompression. | |
139 bool decompression_failed_; | |
140 // True if the priority has been read, false otherwise. | |
141 bool priority_parsed_; | |
142 | 138 |
143 DISALLOW_COPY_AND_ASSIGN(QuicDataStream); | 139 DISALLOW_COPY_AND_ASSIGN(QuicDataStream); |
144 }; | 140 }; |
145 | 141 |
146 } // namespace net | 142 } // namespace net |
147 | 143 |
148 #endif // NET_QUIC_QUIC_DATA_STREAM_H_ | 144 #endif // NET_QUIC_QUIC_DATA_STREAM_H_ |
OLD | NEW |