| 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 11 matching lines...) Expand all Loading... |
| 22 | 22 |
| 23 namespace net { | 23 namespace net { |
| 24 | 24 |
| 25 class EpollServer; | 25 class EpollServer; |
| 26 class QuicConfig; | 26 class QuicConfig; |
| 27 class QuicCryptoServerConfig; | 27 class QuicCryptoServerConfig; |
| 28 class QuicSession; | 28 class QuicSession; |
| 29 | 29 |
| 30 namespace tools { | 30 namespace tools { |
| 31 | 31 |
| 32 class DeleteSessionsAlarm; |
| 33 class QuicEpollConnectionHelper; |
| 32 class QuicPacketWriterWrapper; | 34 class QuicPacketWriterWrapper; |
| 33 | 35 |
| 34 namespace test { | 36 namespace test { |
| 35 class QuicDispatcherPeer; | 37 class QuicDispatcherPeer; |
| 36 } // namespace test | 38 } // namespace test |
| 37 | 39 |
| 38 class DeleteSessionsAlarm; | |
| 39 class QuicEpollConnectionHelper; | |
| 40 | |
| 41 class ProcessPacketInterface { | 40 class ProcessPacketInterface { |
| 42 public: | 41 public: |
| 43 virtual ~ProcessPacketInterface() {} | 42 virtual ~ProcessPacketInterface() {} |
| 44 virtual void ProcessPacket(const IPEndPoint& server_address, | 43 virtual void ProcessPacket(const IPEndPoint& server_address, |
| 45 const IPEndPoint& client_address, | 44 const IPEndPoint& client_address, |
| 46 const QuicEncryptedPacket& packet) = 0; | 45 const QuicEncryptedPacket& packet) = 0; |
| 47 }; | 46 }; |
| 48 | 47 |
| 49 class QuicDispatcher : public QuicServerSessionVisitor, | 48 class QuicDispatcher : public QuicServerSessionVisitor, |
| 50 public ProcessPacketInterface { | 49 public ProcessPacketInterface { |
| (...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 256 QuicFramer framer_; | 255 QuicFramer framer_; |
| 257 scoped_ptr<QuicFramerVisitor> framer_visitor_; | 256 scoped_ptr<QuicFramerVisitor> framer_visitor_; |
| 258 | 257 |
| 259 DISALLOW_COPY_AND_ASSIGN(QuicDispatcher); | 258 DISALLOW_COPY_AND_ASSIGN(QuicDispatcher); |
| 260 }; | 259 }; |
| 261 | 260 |
| 262 } // namespace tools | 261 } // namespace tools |
| 263 } // namespace net | 262 } // namespace net |
| 264 | 263 |
| 265 #endif // NET_TOOLS_QUIC_QUIC_DISPATCHER_H_ | 264 #endif // NET_TOOLS_QUIC_QUIC_DISPATCHER_H_ |
| OLD | NEW |