rch | 16478ed | 2019-05-20 08:12:59 -0700 | [diff] [blame] | 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_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 | |
| 11 | namespace quic { |
| 12 | |
| 13 | // Factory creating QuicServer instances. |
| 14 | class QuicEpollServerFactory : public QuicToyServer::ServerFactory { |
| 15 | public: |
| 16 | std::unique_ptr<QuicSpdyServerBase> CreateServer( |
| 17 | QuicSimpleServerBackend* backend, |
dschinazi | c5589bd | 2019-09-12 14:50:11 -0700 | [diff] [blame] | 18 | std::unique_ptr<ProofSource> proof_source, |
| 19 | const quic::ParsedQuicVersionVector& supported_versions) override; |
rch | 16478ed | 2019-05-20 08:12:59 -0700 | [diff] [blame] | 20 | |
| 21 | private: |
| 22 | QuicEpollServer epoll_server_; |
| 23 | }; |
| 24 | |
| 25 | } // namespace quic |
| 26 | |
| 27 | #endif // QUICHE_QUIC_TOOLS_EPOLL_SERVER_FACTORY_H_ |