Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(76)

Side by Side Diff: net/quic/reliable_quic_stream.h

Issue 20227003: Land Recent QUIC changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Land Recent QUIC changes Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « net/quic/quic_stream_sequencer_test.cc ('k') | net/quic/reliable_quic_stream.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 client/server reliable streams. 5 // The base class for client/server reliable streams.
6 6
7 #ifndef NET_QUIC_RELIABLE_QUIC_STREAM_H_ 7 #ifndef NET_QUIC_RELIABLE_QUIC_STREAM_H_
8 #define NET_QUIC_RELIABLE_QUIC_STREAM_H_ 8 #define NET_QUIC_RELIABLE_QUIC_STREAM_H_
9 9
10 #include <sys/types.h> 10 #include <sys/types.h>
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 // True if the headers have been completely decompresssed. 165 // True if the headers have been completely decompresssed.
166 bool headers_decompressed_; 166 bool headers_decompressed_;
167 // ID of the header block sent by the peer, once parsed. 167 // ID of the header block sent by the peer, once parsed.
168 QuicHeaderId headers_id_; 168 QuicHeaderId headers_id_;
169 // Buffer into which we write bytes from the headers_id_ 169 // Buffer into which we write bytes from the headers_id_
170 // until it is fully parsed. 170 // until it is fully parsed.
171 string headers_id_buffer_; 171 string headers_id_buffer_;
172 // Contains a copy of the decompressed headers_ until they are consumed 172 // Contains a copy of the decompressed headers_ until they are consumed
173 // via ProcessData or Readv. 173 // via ProcessData or Readv.
174 string decompressed_headers_; 174 string decompressed_headers_;
175 // True if an error was encountered during decompression.
176 bool decompression_failed_;
175 177
176 // Stream error code received from a RstStreamFrame or error code sent by the 178 // Stream error code received from a RstStreamFrame or error code sent by the
177 // visitor or sequencer in the RstStreamFrame. 179 // visitor or sequencer in the RstStreamFrame.
178 QuicRstStreamErrorCode stream_error_; 180 QuicRstStreamErrorCode stream_error_;
179 // Connection error code due to which the stream was closed. |stream_error_| 181 // Connection error code due to which the stream was closed. |stream_error_|
180 // is set to |QUIC_STREAM_CONNECTION_ERROR| when this happens and consumers 182 // is set to |QUIC_STREAM_CONNECTION_ERROR| when this happens and consumers
181 // should check |connection_error_|. 183 // should check |connection_error_|.
182 QuicErrorCode connection_error_; 184 QuicErrorCode connection_error_;
183 185
184 // True if the read side is closed and further frames should be rejected. 186 // True if the read side is closed and further frames should be rejected.
185 bool read_side_closed_; 187 bool read_side_closed_;
186 // True if the write side is closed, and further writes should fail. 188 // True if the write side is closed, and further writes should fail.
187 bool write_side_closed_; 189 bool write_side_closed_;
188 190
189 bool fin_buffered_; 191 bool fin_buffered_;
190 bool fin_sent_; 192 bool fin_sent_;
191 }; 193 };
192 194
193 } // namespace net 195 } // namespace net
194 196
195 #endif // NET_QUIC_RELIABLE_QUIC_STREAM_H_ 197 #endif // NET_QUIC_RELIABLE_QUIC_STREAM_H_
OLDNEW
« no previous file with comments | « net/quic/quic_stream_sequencer_test.cc ('k') | net/quic/reliable_quic_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698