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 23 matching lines...) Expand all Loading... |
34 | 34 |
35 namespace net { | 35 namespace net { |
36 | 36 |
37 class EpollServer; | 37 class EpollServer; |
38 class QuicConfig; | 38 class QuicConfig; |
39 class QuicCryptoServerConfig; | 39 class QuicCryptoServerConfig; |
40 class QuicSession; | 40 class QuicSession; |
41 | 41 |
42 namespace tools { | 42 namespace tools { |
43 | 43 |
| 44 class DeleteSessionsAlarm; |
| 45 class QuicEpollConnectionHelper; |
44 class QuicPacketWriterWrapper; | 46 class QuicPacketWriterWrapper; |
45 | 47 |
46 namespace test { | 48 namespace test { |
47 class QuicDispatcherPeer; | 49 class QuicDispatcherPeer; |
48 } // namespace test | 50 } // namespace test |
49 | 51 |
50 class DeleteSessionsAlarm; | |
51 class QuicEpollConnectionHelper; | |
52 | |
53 class ProcessPacketInterface { | 52 class ProcessPacketInterface { |
54 public: | 53 public: |
55 virtual ~ProcessPacketInterface() {} | 54 virtual ~ProcessPacketInterface() {} |
56 virtual void ProcessPacket(const IPEndPoint& server_address, | 55 virtual void ProcessPacket(const IPEndPoint& server_address, |
57 const IPEndPoint& client_address, | 56 const IPEndPoint& client_address, |
58 const QuicEncryptedPacket& packet) = 0; | 57 const QuicEncryptedPacket& packet) = 0; |
59 }; | 58 }; |
60 | 59 |
61 class QuicDispatcher : public QuicServerSessionVisitor, | 60 class QuicDispatcher : public QuicServerSessionVisitor, |
62 public ProcessPacketInterface { | 61 public ProcessPacketInterface { |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 QuicFramer framer_; | 217 QuicFramer framer_; |
219 scoped_ptr<QuicFramerVisitor> framer_visitor_; | 218 scoped_ptr<QuicFramerVisitor> framer_visitor_; |
220 | 219 |
221 DISALLOW_COPY_AND_ASSIGN(QuicDispatcher); | 220 DISALLOW_COPY_AND_ASSIGN(QuicDispatcher); |
222 }; | 221 }; |
223 | 222 |
224 } // namespace tools | 223 } // namespace tools |
225 } // namespace net | 224 } // namespace net |
226 | 225 |
227 #endif // NET_TOOLS_QUIC_QUIC_DISPATCHER_H_ | 226 #endif // NET_TOOLS_QUIC_QUIC_DISPATCHER_H_ |
OLD | NEW |