Index: net/tools/quic/quic_dispatcher.h |
diff --git a/net/tools/quic/quic_dispatcher.h b/net/tools/quic/quic_dispatcher.h |
index 6142e8b327127e71b8a179a55192ad38e19a2220..b6836775e8a4e614ec6c0327f44700f58b46ba4a 100644 |
--- a/net/tools/quic/quic_dispatcher.h |
+++ b/net/tools/quic/quic_dispatcher.h |
@@ -36,9 +36,12 @@ namespace gfe2 { |
class EpollServer; |
} |
+namespace net { |
+ |
+class QuicConfig; |
+class QuicCryptoServerConfig; |
class QuicSession; |
-namespace net { |
namespace tools { |
namespace test { |
@@ -46,14 +49,16 @@ class QuicDispatcherPeer; |
} // namespace test |
class DeleteSessionsAlarm; |
- |
class QuicDispatcher : public QuicPacketWriter, public QuicSessionOwner { |
public: |
typedef BlockedList<QuicBlockedWriterInterface*> WriteBlockedList; |
// Due to the way delete_sessions_closure_ is registered, the Dispatcher |
// must live until epoll_server Shutdown. |
- QuicDispatcher(int fd, EpollServer* epoll_server); |
+ QuicDispatcher(const QuicConfig& config, |
+ const QuicCryptoServerConfig& crypto_config, |
+ int fd, |
+ EpollServer* epoll_server); |
virtual ~QuicDispatcher(); |
// QuicPacketWriter |
@@ -98,6 +103,10 @@ class QuicDispatcher : public QuicPacketWriter, public QuicSessionOwner { |
WriteBlockedList* write_blocked_list() { return &write_blocked_list_; } |
+ protected: |
+ const QuicConfig& config_; |
+ const QuicCryptoServerConfig& crypto_config_; |
+ |
private: |
friend class net::tools::test::QuicDispatcherPeer; |