| 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 |
| 11 #include <list> | 11 #include <list> |
| 12 | 12 |
| 13 #include "base/basictypes.h" | 13 #include "base/basictypes.h" |
| 14 #include "base/containers/hash_tables.h" | 14 #include "base/containers/hash_tables.h" |
| 15 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
| 16 #include "net/base/ip_endpoint.h" | 16 #include "net/base/ip_endpoint.h" |
| 17 #include "net/base/linked_hash_map.h" | 17 #include "net/base/linked_hash_map.h" |
| 18 #include "net/quic/quic_blocked_writer_interface.h" | 18 #include "net/quic/quic_blocked_writer_interface.h" |
| 19 #include "net/quic/quic_connection_helper.h" | 19 #include "net/quic/quic_connection_helper.h" |
| 20 #include "net/quic/quic_protocol.h" | 20 #include "net/quic/quic_protocol.h" |
| 21 #include "net/quic/quic_server_packet_writer.h" | 21 #include "net/quic/quic_server_packet_writer.h" |
| 22 #include "net/quic/quic_server_session.h" | 22 #include "net/quic/quic_server_session.h" |
| 23 #include "net/quic/quic_time_wait_list_manager.h" | 23 #include "net/quic/quic_time_wait_list_manager.h" |
| 24 | 24 |
| 25 namespace net { | 25 namespace net { |
| 26 | |
| 27 class QuicConfig; | |
| 28 class QuicCryptoServerConfig; | |
| 29 class QuicSession; | |
| 30 | |
| 31 namespace test { | 26 namespace test { |
| 32 class QuicDispatcherPeer; | 27 class QuicDispatcherPeer; |
| 33 } // namespace test | 28 } // namespace test |
| 34 | 29 |
| 35 class DeleteSessionsAlarm; | 30 class DeleteSessionsAlarm; |
| 31 class QuicConfig; |
| 32 class QuicCryptoServerConfig; |
| 33 class QuicSession; |
| 36 | 34 |
| 37 class ProcessPacketInterface { | 35 class ProcessPacketInterface { |
| 38 public: | 36 public: |
| 39 virtual ~ProcessPacketInterface() {} | 37 virtual ~ProcessPacketInterface() {} |
| 40 virtual void ProcessPacket(const IPEndPoint& server_address, | 38 virtual void ProcessPacket(const IPEndPoint& server_address, |
| 41 const IPEndPoint& client_address, | 39 const IPEndPoint& client_address, |
| 42 const QuicEncryptedPacket& packet) = 0; | 40 const QuicEncryptedPacket& packet) = 0; |
| 43 }; | 41 }; |
| 44 | 42 |
| 45 class QuicDispatcher : public QuicBlockedWriterInterface, | 43 class QuicDispatcher : public QuicBlockedWriterInterface, |
| (...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 246 | 244 |
| 247 QuicFramer framer_; | 245 QuicFramer framer_; |
| 248 scoped_ptr<QuicFramerVisitor> framer_visitor_; | 246 scoped_ptr<QuicFramerVisitor> framer_visitor_; |
| 249 | 247 |
| 250 DISALLOW_COPY_AND_ASSIGN(QuicDispatcher); | 248 DISALLOW_COPY_AND_ASSIGN(QuicDispatcher); |
| 251 }; | 249 }; |
| 252 | 250 |
| 253 } // namespace net | 251 } // namespace net |
| 254 | 252 |
| 255 #endif // NET_QUIC_QUIC_DISPATCHER_H_ | 253 #endif // NET_QUIC_QUIC_DISPATCHER_H_ |
| OLD | NEW |