| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |