1 // Copyright 2012 The Chromium Authors 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 NET_TOOLS_QUIC_QUIC_SIMPLE_SERVER_BACKEND_FACTORY_H_ 6 #define NET_TOOLS_QUIC_QUIC_SIMPLE_SERVER_BACKEND_FACTORY_H_ 7 8 #include "net/third_party/quiche/src/quiche/quic/tools/quic_toy_server.h" 9 10 namespace net { 11 12 // A factory for creating either QuicMemoryCacheBackend or QuicHttpProxyBackend 13 // instances. 14 class QuicSimpleServerBackendFactory 15 : public quic::QuicToyServer::BackendFactory { 16 public: 17 std::unique_ptr<quic::QuicSimpleServerBackend> CreateBackend() override; 18 }; 19 20 } // namespace net 21 22 #endif // NET_TOOLS_QUIC_QUIC_SIMPLE_SERVER_BACKEND_FACTORY_H_ 23