| 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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 // returned object. | 106 // returned object. |
| 107 virtual QuicPacketWriter* CreateWriter(int fd); | 107 virtual QuicPacketWriter* CreateWriter(int fd); |
| 108 | 108 |
| 109 virtual QuicSession* CreateQuicSession(QuicConnectionId connection_id, | 109 virtual QuicSession* CreateQuicSession(QuicConnectionId connection_id, |
| 110 const IPEndPoint& server_address, | 110 const IPEndPoint& server_address, |
| 111 const IPEndPoint& client_address); | 111 const IPEndPoint& client_address); |
| 112 | 112 |
| 113 virtual QuicConnection* CreateQuicConnection( | 113 virtual QuicConnection* CreateQuicConnection( |
| 114 QuicConnectionId connection_id, | 114 QuicConnectionId connection_id, |
| 115 const IPEndPoint& server_address, | 115 const IPEndPoint& server_address, |
| 116 const IPEndPoint& client_address, | 116 const IPEndPoint& client_address); |
| 117 uint32 initial_flow_control_window); | |
| 118 | 117 |
| 119 // Called by |framer_visitor_| when the public header has been parsed. | 118 // Called by |framer_visitor_| when the public header has been parsed. |
| 120 virtual bool OnUnauthenticatedPublicHeader( | 119 virtual bool OnUnauthenticatedPublicHeader( |
| 121 const QuicPacketPublicHeader& header); | 120 const QuicPacketPublicHeader& header); |
| 122 | 121 |
| 123 // Create and return the time wait list manager for this dispatcher, which | 122 // Create and return the time wait list manager for this dispatcher, which |
| 124 // will be owned by the dispatcher as time_wait_list_manager_ | 123 // will be owned by the dispatcher as time_wait_list_manager_ |
| 125 virtual QuicTimeWaitListManager* CreateQuicTimeWaitListManager(); | 124 virtual QuicTimeWaitListManager* CreateQuicTimeWaitListManager(); |
| 126 | 125 |
| 127 // Replaces the packet writer with |writer|. Takes ownership of |writer|. | 126 // Replaces the packet writer with |writer|. Takes ownership of |writer|. |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 244 // connections. | 243 // connections. |
| 245 const uint32 initial_flow_control_window_bytes_; | 244 const uint32 initial_flow_control_window_bytes_; |
| 246 | 245 |
| 247 DISALLOW_COPY_AND_ASSIGN(QuicDispatcher); | 246 DISALLOW_COPY_AND_ASSIGN(QuicDispatcher); |
| 248 }; | 247 }; |
| 249 | 248 |
| 250 } // namespace tools | 249 } // namespace tools |
| 251 } // namespace net | 250 } // namespace net |
| 252 | 251 |
| 253 #endif // NET_TOOLS_QUIC_QUIC_DISPATCHER_H_ | 252 #endif // NET_TOOLS_QUIC_QUIC_DISPATCHER_H_ |
| OLD | NEW |