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