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_QUIC_SERVER_FACTORY_H_ 6 #define QUICHE_QUIC_TOOLS_QUIC_SERVER_FACTORY_H_ 7 8 #include "quiche/quic/tools/quic_toy_server.h" 9 10 namespace quic { 11 12 // Factory creating QuicServer instances. 13 class QuicServerFactory : public QuicToyServer::ServerFactory { 14 public: 15 std::unique_ptr<QuicSpdyServerBase> CreateServer( 16 QuicSimpleServerBackend* backend, 17 std::unique_ptr<ProofSource> proof_source, 18 const quic::ParsedQuicVersionVector& supported_versions) override; 19 }; 20 21 } // namespace quic 22 23 #endif // QUICHE_QUIC_TOOLS_QUIC_SERVER_FACTORY_H_ 24