Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(406)

Side by Side Diff: net/tools/quic/quic_simple_dispatcher.h

Issue 2460163002: Refactor QuicServerSessionBase::Visitor (Closed)
Patch Set: Updated patchset dependency Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/tools/quic/quic_dispatcher.h ('k') | net/tools/quic/quic_simple_server_session.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_
OLDNEW
« no previous file with comments | « net/tools/quic/quic_dispatcher.h ('k') | net/tools/quic/quic_simple_server_session.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698