xref: /aosp_15_r20/external/cronet/net/tools/quic/quic_simple_server_backend_factory.h (revision 6777b5387eb2ff775bb5750e3f5d96f37fb7352b)
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