1 // Copyright (c) 2019 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #ifndef QUICHE_QUIC_TOOLS_EPOLL_CLIENT_FACTORY_H_
6 #define QUICHE_QUIC_TOOLS_EPOLL_CLIENT_FACTORY_H_
7 
8 #include "net/third_party/quiche/src/quic/platform/api/quic_epoll.h"
9 #include "net/third_party/quiche/src/quic/tools/quic_toy_client.h"
10 
11 namespace quic {
12 
13 // Factory creating QuicClient instances.
14 class QuicEpollClientFactory : public QuicToyClient::ClientFactory {
15  public:
16   std::unique_ptr<QuicSpdyClientBase> CreateClient(
17       std::string host_for_handshake,
18       std::string host_for_lookup,
19       uint16_t port,
20       ParsedQuicVersionVector versions,
21       std::unique_ptr<ProofVerifier> verifier) override;
22 
23  private:
24   QuicEpollServer epoll_server_;
25 };
26 
27 }  // namespace quic
28 
29 #endif  // QUICHE_QUIC_TOOLS_EPOLL_CLIENT_FACTORY_H_
30