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 #ifndef NET_TOOLS_QUIC_QUIC_SIMPLE_DISPATCHER_H_ | 5 #ifndef NET_TOOLS_QUIC_QUIC_SIMPLE_DISPATCHER_H_ |
6 #define NET_TOOLS_QUIC_QUIC_SIMPLE_DISPATCHER_H_ | 6 #define NET_TOOLS_QUIC_QUIC_SIMPLE_DISPATCHER_H_ |
7 | 7 |
| 8 #include "net/quic/core/quic_server_session_base.h" |
8 #include "net/tools/quic/quic_dispatcher.h" | 9 #include "net/tools/quic/quic_dispatcher.h" |
9 | 10 |
10 namespace net { | 11 namespace net { |
11 | 12 |
12 class QuicSimpleDispatcher : public QuicDispatcher { | 13 class QuicSimpleDispatcher : public QuicDispatcher { |
13 public: | 14 public: |
14 QuicSimpleDispatcher( | 15 QuicSimpleDispatcher( |
15 const QuicConfig& config, | 16 const QuicConfig& config, |
16 const QuicCryptoServerConfig* crypto_config, | 17 const QuicCryptoServerConfig* crypto_config, |
17 QuicVersionManager* version_manager, | 18 QuicVersionManager* version_manager, |
18 std::unique_ptr<QuicConnectionHelperInterface> helper, | 19 std::unique_ptr<QuicConnectionHelperInterface> helper, |
19 std::unique_ptr<QuicCryptoServerStream::Helper> session_helper, | 20 std::unique_ptr<QuicCryptoServerStream::Helper> session_helper, |
20 std::unique_ptr<QuicAlarmFactory> alarm_factory); | 21 std::unique_ptr<QuicAlarmFactory> alarm_factory); |
21 | 22 |
22 ~QuicSimpleDispatcher() override; | 23 ~QuicSimpleDispatcher() override; |
23 | 24 |
24 protected: | 25 protected: |
25 QuicServerSessionBase* CreateQuicSession( | 26 QuicServerSessionBase* CreateQuicSession( |
26 QuicConnectionId connection_id, | 27 QuicConnectionId connection_id, |
27 const IPEndPoint& client_address) override; | 28 const IPEndPoint& client_address) override; |
28 }; | 29 }; |
29 | 30 |
30 } // namespace net | 31 } // namespace net |
31 | 32 |
32 #endif // NET_TOOLS_QUIC_QUIC_SIMPLE_DISPATCHER_H_ | 33 #endif // NET_TOOLS_QUIC_QUIC_SIMPLE_DISPATCHER_H_ |
OLD | NEW |