xref: /aosp_15_r20/external/openscreen/osp/public/protocol_connection_server_factory.h (revision 3f982cf4871df8771c9d4abe6e9a6f8d829b2736)
1 // Copyright 2018 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 OSP_PUBLIC_PROTOCOL_CONNECTION_SERVER_FACTORY_H_
6 #define OSP_PUBLIC_PROTOCOL_CONNECTION_SERVER_FACTORY_H_
7 
8 #include <memory>
9 
10 #include "osp/public/protocol_connection_server.h"
11 #include "osp/public/server_config.h"
12 
13 namespace openscreen {
14 
15 class TaskRunner;
16 
17 namespace osp {
18 
19 class ProtocolConnectionServerFactory {
20  public:
21   static std::unique_ptr<ProtocolConnectionServer> Create(
22       const ServerConfig& config,
23       MessageDemuxer* demuxer,
24       ProtocolConnectionServer::Observer* observer,
25       TaskRunner* task_runner);
26 };
27 
28 }  // namespace osp
29 }  // namespace openscreen
30 
31 #endif  // OSP_PUBLIC_PROTOCOL_CONNECTION_SERVER_FACTORY_H_
32