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

Side by Side Diff: net/quic/core/quic_headers_stream.h

Issue 2414193002: QUIC - bugfix for forced head of line blocking experiment. Guarded by ENABLED --FLAGS_quic_bugfix_f… (Closed)
Patch Set: Created 4 years, 2 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/core/quic_flags_list.h ('k') | net/quic/core/quic_headers_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 #ifndef NET_QUIC_QUIC_HEADERS_STREAM_H_ 5 #ifndef NET_QUIC_QUIC_HEADERS_STREAM_H_
6 #define NET_QUIC_QUIC_HEADERS_STREAM_H_ 6 #define NET_QUIC_QUIC_HEADERS_STREAM_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 const char* header_data, 129 const char* header_data,
130 size_t len); 130 size_t len);
131 131
132 // Called when the complete list of headers is available. 132 // Called when the complete list of headers is available.
133 void OnHeaderList(const QuicHeaderList& header_list); 133 void OnHeaderList(const QuicHeaderList& header_list);
134 134
135 // Called when the size of the compressed frame payload is available. 135 // Called when the size of the compressed frame payload is available.
136 void OnCompressedFrameSize(size_t frame_len); 136 void OnCompressedFrameSize(size_t frame_len);
137 137
138 // For force HOL blocking, where stream frames from all streams are 138 // For force HOL blocking, where stream frames from all streams are
139 // plumbed through headers stream as HTTP/2 data frames. Return false 139 // plumbed through headers stream as HTTP/2 data frames.
140 // if force_hol_blocking_ is false; 140 // The following two return false if force_hol_blocking_ is false.
141 bool OnDataFrameHeader(QuicStreamId stream_id, size_t length, bool fin); 141 bool OnDataFrameHeader(QuicStreamId stream_id, size_t length, bool fin);
142 bool OnStreamFrameData(QuicStreamId stream_id, const char* data, size_t len); 142 bool OnStreamFrameData(QuicStreamId stream_id, const char* data, size_t len);
143 // Helper for |WritevStreamData()|.
144 void WriteDataFrame(QuicStreamId stream_id,
145 base::StringPiece data,
146 bool fin,
147 QuicAckListenerInterface* ack_notifier_delegate);
143 148
144 // Returns true if the session is still connected. 149 // Returns true if the session is still connected.
145 bool IsConnected(); 150 bool IsConnected();
146 151
147 QuicSpdySession* spdy_session_; 152 QuicSpdySession* spdy_session_;
148 153
149 // Data about the stream whose headers are being processed. 154 // Data about the stream whose headers are being processed.
150 QuicStreamId stream_id_; 155 QuicStreamId stream_id_;
151 QuicStreamId promised_stream_id_; 156 QuicStreamId promised_stream_id_;
152 bool fin_; 157 bool fin_;
(...skipping 13 matching lines...) Expand all
166 171
167 SpdyFramer spdy_framer_; 172 SpdyFramer spdy_framer_;
168 std::unique_ptr<SpdyFramerVisitor> spdy_framer_visitor_; 173 std::unique_ptr<SpdyFramerVisitor> spdy_framer_visitor_;
169 174
170 DISALLOW_COPY_AND_ASSIGN(QuicHeadersStream); 175 DISALLOW_COPY_AND_ASSIGN(QuicHeadersStream);
171 }; 176 };
172 177
173 } // namespace net 178 } // namespace net
174 179
175 #endif // NET_QUIC_QUIC_HEADERS_STREAM_H_ 180 #endif // NET_QUIC_QUIC_HEADERS_STREAM_H_
OLDNEW
« no previous file with comments | « net/quic/core/quic_flags_list.h ('k') | net/quic/core/quic_headers_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698