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

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

Issue 1910483004: Fixes QuicSpdyStream::ConsumeHeaderList to prod the sequencer when (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@119557380
Patch Set: Rebase Created 4 years, 8 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 | « no previous file | 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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 size_t WriteTrailers(SpdyHeaderBlock trailer_block, 129 size_t WriteTrailers(SpdyHeaderBlock trailer_block,
130 QuicAckListenerInterface* ack_notifier_delegate); 130 QuicAckListenerInterface* ack_notifier_delegate);
131 131
132 // Marks |bytes_consumed| of the headers data as consumed. 132 // Marks |bytes_consumed| of the headers data as consumed.
133 void MarkHeadersConsumed(size_t bytes_consumed); 133 void MarkHeadersConsumed(size_t bytes_consumed);
134 134
135 // Marks |bytes_consumed| of the trailers data as consumed. 135 // Marks |bytes_consumed| of the trailers data as consumed.
136 void MarkTrailersConsumed(size_t bytes_consumed); 136 void MarkTrailersConsumed(size_t bytes_consumed);
137 137
138 // Clears |header_list_|. 138 // Clears |header_list_|.
139 void ConsumeHeaderList() { header_list_.Clear(); } 139 void ConsumeHeaderList();
140 140
141 // This block of functions wraps the sequencer's functions of the same 141 // This block of functions wraps the sequencer's functions of the same
142 // name. These methods return uncompressed data until that has 142 // name. These methods return uncompressed data until that has
143 // been fully processed. Then they simply delegate to the sequencer. 143 // been fully processed. Then they simply delegate to the sequencer.
144 virtual size_t Readv(const struct iovec* iov, size_t iov_len); 144 virtual size_t Readv(const struct iovec* iov, size_t iov_len);
145 virtual int GetReadableRegions(iovec* iov, size_t iov_len) const; 145 virtual int GetReadableRegions(iovec* iov, size_t iov_len) const;
146 void MarkConsumed(size_t num_bytes); 146 void MarkConsumed(size_t num_bytes);
147 147
148 // Returns true if header contains a valid 3-digit status and parse the status 148 // Returns true if header contains a valid 3-digit status and parse the status
149 // code to |status_code|. 149 // code to |status_code|.
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 std::string decompressed_trailers_; 226 std::string decompressed_trailers_;
227 // The parsed trailers received from the peer. 227 // The parsed trailers received from the peer.
228 SpdyHeaderBlock received_trailers_; 228 SpdyHeaderBlock received_trailers_;
229 229
230 DISALLOW_COPY_AND_ASSIGN(QuicSpdyStream); 230 DISALLOW_COPY_AND_ASSIGN(QuicSpdyStream);
231 }; 231 };
232 232
233 } // namespace net 233 } // namespace net
234 234
235 #endif // NET_QUIC_QUIC_SPDY_STREAM_H_ 235 #endif // NET_QUIC_QUIC_SPDY_STREAM_H_
OLDNEW
« no previous file with comments | « no previous file | net/quic/quic_spdy_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698