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 // 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_TOOLS_QUIC_QUIC_DISPATCHER_H_ | 8 #ifndef NET_TOOLS_QUIC_QUIC_DISPATCHER_H_ |
9 #define NET_TOOLS_QUIC_QUIC_DISPATCHER_H_ | 9 #define NET_TOOLS_QUIC_QUIC_DISPATCHER_H_ |
10 | 10 |
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
220 // This is used to construct new QuicConnections when flow control is disabled | 220 // This is used to construct new QuicConnections when flow control is disabled |
221 // via flag. | 221 // via flag. |
222 // TODO(rjshade): Remove this when | 222 // TODO(rjshade): Remove this when |
223 // FLAGS_enable_quic_stream_flow_control_2 is removed. | 223 // FLAGS_enable_quic_stream_flow_control_2 is removed. |
224 QuicVersionVector supported_versions_no_flow_control_; | 224 QuicVersionVector supported_versions_no_flow_control_; |
225 // Versions which do not support *connection* flow control (introduced in | 225 // Versions which do not support *connection* flow control (introduced in |
226 // QUIC_VERSION_19). | 226 // QUIC_VERSION_19). |
227 // This is used to construct new QuicConnections when connection flow control | 227 // This is used to construct new QuicConnections when connection flow control |
228 // is disabled via flag. | 228 // is disabled via flag. |
229 // TODO(rjshade): Remove this when | 229 // TODO(rjshade): Remove this when |
230 // FLAGS_enable_quic_connection_flow_control is removed. | 230 // FLAGS_enable_quic_connection_flow_control_2 is removed. |
231 QuicVersionVector supported_versions_no_connection_flow_control_; | 231 QuicVersionVector supported_versions_no_connection_flow_control_; |
232 | 232 |
233 // Information about the packet currently being handled. | 233 // Information about the packet currently being handled. |
234 IPEndPoint current_client_address_; | 234 IPEndPoint current_client_address_; |
235 IPEndPoint current_server_address_; | 235 IPEndPoint current_server_address_; |
236 const QuicEncryptedPacket* current_packet_; | 236 const QuicEncryptedPacket* current_packet_; |
237 | 237 |
238 QuicFramer framer_; | 238 QuicFramer framer_; |
239 scoped_ptr<QuicFramerVisitor> framer_visitor_; | 239 scoped_ptr<QuicFramerVisitor> framer_visitor_; |
240 | 240 |
241 // Initial flow control window size to advertize to peer on newly created | 241 // Initial flow control window size to advertize to peer on newly created |
242 // connections. | 242 // connections. |
243 const uint32 initial_flow_control_window_bytes_; | 243 const uint32 initial_flow_control_window_bytes_; |
244 | 244 |
245 DISALLOW_COPY_AND_ASSIGN(QuicDispatcher); | 245 DISALLOW_COPY_AND_ASSIGN(QuicDispatcher); |
246 }; | 246 }; |
247 | 247 |
248 } // namespace tools | 248 } // namespace tools |
249 } // namespace net | 249 } // namespace net |
250 | 250 |
251 #endif // NET_TOOLS_QUIC_QUIC_DISPATCHER_H_ | 251 #endif // NET_TOOLS_QUIC_QUIC_DISPATCHER_H_ |
OLD | NEW |