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

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

Issue 2718603002: Enable bidi streaming in QUIC by default. Protected by FLAGS_quic_reloadable_flag_quic_always_enabl… (Closed)
Patch Set: Created 3 years, 10 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/tools/quic/end_to_end_test.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_CORE_QUIC_SPDY_STREAM_H_ 9 #ifndef NET_QUIC_CORE_QUIC_SPDY_STREAM_H_
10 #define NET_QUIC_CORE_QUIC_SPDY_STREAM_H_ 10 #define NET_QUIC_CORE_QUIC_SPDY_STREAM_H_
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 void ClearSession(); 174 void ClearSession();
175 175
176 // Returns true if the sequencer has delivered the FIN, and no more body bytes 176 // Returns true if the sequencer has delivered the FIN, and no more body bytes
177 // will be available. 177 // will be available.
178 bool IsClosed() { return sequencer()->IsClosed(); } 178 bool IsClosed() { return sequencer()->IsClosed(); }
179 179
180 void set_allow_bidirectional_data(bool value) { 180 void set_allow_bidirectional_data(bool value) {
181 allow_bidirectional_data_ = value; 181 allow_bidirectional_data_ = value;
182 } 182 }
183 183
184 bool allow_bidirectional_data() const { return allow_bidirectional_data_; } 184 bool allow_bidirectional_data() const {
185 return FLAGS_quic_reloadable_flag_quic_always_enable_bidi_streaming ||
186 allow_bidirectional_data_;
187 }
185 188
186 using QuicStream::CloseWriteSide; 189 using QuicStream::CloseWriteSide;
187 190
188 protected: 191 protected:
189 virtual void OnInitialHeadersComplete(bool fin, 192 virtual void OnInitialHeadersComplete(bool fin,
190 size_t frame_len, 193 size_t frame_len,
191 const QuicHeaderList& header_list); 194 const QuicHeaderList& header_list);
192 virtual void OnTrailingHeadersComplete(bool fin, 195 virtual void OnTrailingHeadersComplete(bool fin,
193 size_t frame_len, 196 size_t frame_len,
194 const QuicHeaderList& header_list); 197 const QuicHeaderList& header_list);
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 bool trailers_consumed_; 234 bool trailers_consumed_;
232 // The parsed trailers received from the peer. 235 // The parsed trailers received from the peer.
233 SpdyHeaderBlock received_trailers_; 236 SpdyHeaderBlock received_trailers_;
234 237
235 DISALLOW_COPY_AND_ASSIGN(QuicSpdyStream); 238 DISALLOW_COPY_AND_ASSIGN(QuicSpdyStream);
236 }; 239 };
237 240
238 } // namespace net 241 } // namespace net
239 242
240 #endif // NET_QUIC_CORE_QUIC_SPDY_STREAM_H_ 243 #endif // NET_QUIC_CORE_QUIC_SPDY_STREAM_H_
OLDNEW
« no previous file with comments | « net/quic/core/quic_flags_list.h ('k') | net/tools/quic/end_to_end_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698