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

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

Issue 1997863002: Revert of Avoids the "re-encode HPACK as SPDY3" step. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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
« no previous file with comments | « net/quic/quic_headers_stream_test.cc ('k') | net/quic/quic_spdy_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 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
133 // headers stream. Trailers will always have the FIN set. 133 // headers stream. Trailers will always have the FIN set.
134 virtual size_t WriteTrailers(const SpdyHeaderBlock& trailer_block, 134 virtual size_t WriteTrailers(const SpdyHeaderBlock& trailer_block,
135 QuicAckListenerInterface* ack_notifier_delegate); 135 QuicAckListenerInterface* ack_notifier_delegate);
136 136
137 // Marks |bytes_consumed| of the headers data as consumed. 137 // Marks |bytes_consumed| of the headers data as consumed.
138 void MarkHeadersConsumed(size_t bytes_consumed); 138 void MarkHeadersConsumed(size_t bytes_consumed);
139 139
140 // Marks |bytes_consumed| of the trailers data as consumed. 140 // Marks |bytes_consumed| of the trailers data as consumed.
141 void MarkTrailersConsumed(size_t bytes_consumed); 141 void MarkTrailersConsumed(size_t bytes_consumed);
142 142
143 // Marks the trailers as consumed.
144 void MarkTrailersDelivered();
145
146 // Clears |header_list_|. 143 // Clears |header_list_|.
147 void ConsumeHeaderList(); 144 void ConsumeHeaderList();
148 145
149 // This block of functions wraps the sequencer's functions of the same 146 // This block of functions wraps the sequencer's functions of the same
150 // name. These methods return uncompressed data until that has 147 // name. These methods return uncompressed data until that has
151 // been fully processed. Then they simply delegate to the sequencer. 148 // been fully processed. Then they simply delegate to the sequencer.
152 virtual size_t Readv(const struct iovec* iov, size_t iov_len); 149 virtual size_t Readv(const struct iovec* iov, size_t iov_len);
153 virtual int GetReadableRegions(iovec* iov, size_t iov_len) const; 150 virtual int GetReadableRegions(iovec* iov, size_t iov_len) const;
154 void MarkConsumed(size_t num_bytes); 151 void MarkConsumed(size_t num_bytes);
155 152
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 SpdyPriority priority_; 226 SpdyPriority priority_;
230 // Contains a copy of the decompressed headers until they are consumed 227 // Contains a copy of the decompressed headers until they are consumed
231 // via ProcessData or Readv. 228 // via ProcessData or Readv.
232 std::string decompressed_headers_; 229 std::string decompressed_headers_;
233 // Contains a copy of the decompressed header (name, value) pairs until they 230 // Contains a copy of the decompressed header (name, value) pairs until they
234 // are consumed via Readv. 231 // are consumed via Readv.
235 QuicHeaderList header_list_; 232 QuicHeaderList header_list_;
236 233
237 // True if the trailers have been completely decompressed. 234 // True if the trailers have been completely decompressed.
238 bool trailers_decompressed_; 235 bool trailers_decompressed_;
239 // True if the trailers have been consumed.
240 bool trailers_delivered_;
241 // Contains a copy of the decompressed trailers until they are consumed 236 // Contains a copy of the decompressed trailers until they are consumed
242 // via ProcessData or Readv. 237 // via ProcessData or Readv.
243 std::string decompressed_trailers_; 238 std::string decompressed_trailers_;
244 // The parsed trailers received from the peer. 239 // The parsed trailers received from the peer.
245 SpdyHeaderBlock received_trailers_; 240 SpdyHeaderBlock received_trailers_;
246 241
247 bool avoid_empty_nonfin_writes_; 242 bool avoid_empty_nonfin_writes_;
248 243
249 DISALLOW_COPY_AND_ASSIGN(QuicSpdyStream); 244 DISALLOW_COPY_AND_ASSIGN(QuicSpdyStream);
250 }; 245 };
251 246
252 } // namespace net 247 } // namespace net
253 248
254 #endif // NET_QUIC_QUIC_SPDY_STREAM_H_ 249 #endif // NET_QUIC_QUIC_SPDY_STREAM_H_
OLDNEW
« no previous file with comments | « net/quic/quic_headers_stream_test.cc ('k') | net/quic/quic_spdy_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698