OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 // A server side dispatcher which dispatches a given client's data to their | 5 // A server side dispatcher which dispatches a given client's data to their |
6 // stream. | 6 // stream. |
7 | 7 |
8 #ifndef NET_QUIC_QUIC_DISPATCHER_H_ | 8 #ifndef NET_QUIC_QUIC_DISPATCHER_H_ |
9 #define NET_QUIC_QUIC_DISPATCHER_H_ | 9 #define NET_QUIC_QUIC_DISPATCHER_H_ |
10 | 10 |
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 // This is used to construct new QuicConnections when flow control is disabled | 209 // This is used to construct new QuicConnections when flow control is disabled |
210 // via flag. | 210 // via flag. |
211 // TODO(rjshade): Remove this when | 211 // TODO(rjshade): Remove this when |
212 // FLAGS_enable_quic_stream_flow_control_2 is removed. | 212 // FLAGS_enable_quic_stream_flow_control_2 is removed. |
213 QuicVersionVector supported_versions_no_flow_control_; | 213 QuicVersionVector supported_versions_no_flow_control_; |
214 // Versions which do not support *connection* flow control (introduced in | 214 // Versions which do not support *connection* flow control (introduced in |
215 // QUIC_VERSION_19). | 215 // QUIC_VERSION_19). |
216 // This is used to construct new QuicConnections when connection flow control | 216 // This is used to construct new QuicConnections when connection flow control |
217 // is disabled via flag. | 217 // is disabled via flag. |
218 // TODO(rjshade): Remove this when | 218 // TODO(rjshade): Remove this when |
219 // FLAGS_enable_quic_connection_flow_control is removed. | 219 // FLAGS_enable_quic_connection_flow_control_2 is removed. |
220 QuicVersionVector supported_versions_no_connection_flow_control_; | 220 QuicVersionVector supported_versions_no_connection_flow_control_; |
221 | 221 |
222 // Information about the packet currently being handled. | 222 // Information about the packet currently being handled. |
223 IPEndPoint current_client_address_; | 223 IPEndPoint current_client_address_; |
224 IPEndPoint current_server_address_; | 224 IPEndPoint current_server_address_; |
225 const QuicEncryptedPacket* current_packet_; | 225 const QuicEncryptedPacket* current_packet_; |
226 | 226 |
227 QuicFramer framer_; | 227 QuicFramer framer_; |
228 scoped_ptr<QuicFramerVisitor> framer_visitor_; | 228 scoped_ptr<QuicFramerVisitor> framer_visitor_; |
229 | 229 |
230 // Initial flow control window size to advertize to peer on newly created | 230 // Initial flow control window size to advertize to peer on newly created |
231 // connections. | 231 // connections. |
232 const uint32 initial_flow_control_window_bytes_; | 232 const uint32 initial_flow_control_window_bytes_; |
233 | 233 |
234 DISALLOW_COPY_AND_ASSIGN(QuicDispatcher); | 234 DISALLOW_COPY_AND_ASSIGN(QuicDispatcher); |
235 }; | 235 }; |
236 | 236 |
237 } // namespace net | 237 } // namespace net |
238 | 238 |
239 #endif // NET_QUIC_QUIC_DISPATCHER_H_ | 239 #endif // NET_QUIC_QUIC_DISPATCHER_H_ |
OLD | NEW |