blob: 907029184529aa059faeb4778b9aa9b93c40e129 [file] [log] [blame]
rch16478ed2019-05-20 08:12:59 -07001// 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_SERVER_FACTORY_H_
6#define QUICHE_QUIC_TOOLS_EPOLL_SERVER_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_server.h"
10
11namespace quic {
12
13// Factory creating QuicServer instances.
14class QuicEpollServerFactory : public QuicToyServer::ServerFactory {
15 public:
16 std::unique_ptr<QuicSpdyServerBase> CreateServer(
17 QuicSimpleServerBackend* backend,
dschinazic5589bd2019-09-12 14:50:11 -070018 std::unique_ptr<ProofSource> proof_source,
19 const quic::ParsedQuicVersionVector& supported_versions) override;
rch16478ed2019-05-20 08:12:59 -070020
21 private:
22 QuicEpollServer epoll_server_;
23};
24
25} // namespace quic
26
27#endif // QUICHE_QUIC_TOOLS_EPOLL_SERVER_FACTORY_H_