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 |
(...skipping 16 matching lines...) Expand all Loading... |
27 template <> | 27 template <> |
28 struct hash<net::QuicBlockedWriterInterface*> { | 28 struct hash<net::QuicBlockedWriterInterface*> { |
29 std::size_t operator()(const net::QuicBlockedWriterInterface* ptr) const { | 29 std::size_t operator()(const net::QuicBlockedWriterInterface* ptr) const { |
30 return hash<size_t>()(reinterpret_cast<size_t>(ptr)); | 30 return hash<size_t>()(reinterpret_cast<size_t>(ptr)); |
31 } | 31 } |
32 }; | 32 }; |
33 } | 33 } |
34 #endif | 34 #endif |
35 | 35 |
36 namespace net { | 36 namespace net { |
37 | |
38 class QuicConfig; | |
39 class QuicCryptoServerConfig; | |
40 class QuicSession; | |
41 | |
42 namespace test { | 37 namespace test { |
43 class QuicDispatcherPeer; | 38 class QuicDispatcherPeer; |
44 } // namespace test | 39 } // namespace test |
45 | 40 |
46 class DeleteSessionsAlarm; | 41 class DeleteSessionsAlarm; |
| 42 class QuicConfig; |
| 43 class QuicCryptoServerConfig; |
| 44 class QuicSession; |
47 | 45 |
48 class ProcessPacketInterface { | 46 class ProcessPacketInterface { |
49 public: | 47 public: |
50 virtual ~ProcessPacketInterface() {} | 48 virtual ~ProcessPacketInterface() {} |
51 virtual void ProcessPacket(const IPEndPoint& server_address, | 49 virtual void ProcessPacket(const IPEndPoint& server_address, |
52 const IPEndPoint& client_address, | 50 const IPEndPoint& client_address, |
53 const QuicEncryptedPacket& packet) = 0; | 51 const QuicEncryptedPacket& packet) = 0; |
54 }; | 52 }; |
55 | 53 |
56 class QuicDispatcher : public QuicBlockedWriterInterface, | 54 class QuicDispatcher : public QuicBlockedWriterInterface, |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
208 | 206 |
209 QuicFramer framer_; | 207 QuicFramer framer_; |
210 scoped_ptr<QuicFramerVisitor> framer_visitor_; | 208 scoped_ptr<QuicFramerVisitor> framer_visitor_; |
211 | 209 |
212 DISALLOW_COPY_AND_ASSIGN(QuicDispatcher); | 210 DISALLOW_COPY_AND_ASSIGN(QuicDispatcher); |
213 }; | 211 }; |
214 | 212 |
215 } // namespace net | 213 } // namespace net |
216 | 214 |
217 #endif // NET_QUIC_QUIC_DISPATCHER_H_ | 215 #endif // NET_QUIC_QUIC_DISPATCHER_H_ |
OLD | NEW |