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

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

Issue 1009543004: Create a Perspective enum to use instead of a bool is_server to improve (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added NET_EXPORT_PRIVATE to fix compiler error Created 5 years, 9 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_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 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 // In combination with fin_sent_, used to ensure that a FIN and/or a RST is 220 // In combination with fin_sent_, used to ensure that a FIN and/or a RST is
221 // always sent before stream termination. 221 // always sent before stream termination.
222 bool rst_sent_; 222 bool rst_sent_;
223 223
224 // True if this stream has received a RST stream frame. 224 // True if this stream has received a RST stream frame.
225 bool rst_received_; 225 bool rst_received_;
226 226
227 // FEC policy to be used for this stream. 227 // FEC policy to be used for this stream.
228 FecPolicy fec_policy_; 228 FecPolicy fec_policy_;
229 229
230 // True if the session this stream is running under is a server session. 230 // Tracks if the session this stream is running under was created by a
231 bool is_server_; 231 // server or a client.
232 Perspective perspective_;
232 233
233 QuicFlowController flow_controller_; 234 QuicFlowController flow_controller_;
234 235
235 // The connection level flow controller. Not owned. 236 // The connection level flow controller. Not owned.
236 QuicFlowController* connection_flow_controller_; 237 QuicFlowController* connection_flow_controller_;
237 238
238 // Special streams, such as the crypto and headers streams, do not respect 239 // Special streams, such as the crypto and headers streams, do not respect
239 // connection level flow control limits (but are stream level flow control 240 // connection level flow control limits (but are stream level flow control
240 // limited). 241 // limited).
241 bool stream_contributes_to_connection_flow_control_; 242 bool stream_contributes_to_connection_flow_control_;
242 243
243 DISALLOW_COPY_AND_ASSIGN(ReliableQuicStream); 244 DISALLOW_COPY_AND_ASSIGN(ReliableQuicStream);
244 }; 245 };
245 246
246 } // namespace net 247 } // namespace net
247 248
248 #endif // NET_QUIC_RELIABLE_QUIC_STREAM_H_ 249 #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