xref: /aosp_15_r20/external/openscreen/osp/public/service_publisher_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_SERVICE_PUBLISHER_FACTORY_H_
6 #define OSP_PUBLIC_SERVICE_PUBLISHER_FACTORY_H_
7 
8 #include <memory>
9 
10 #include "osp/public/service_publisher.h"
11 
12 namespace openscreen {
13 
14 class TaskRunner;
15 
16 namespace osp {
17 
18 class ServicePublisherFactory {
19  public:
20   static std::unique_ptr<ServicePublisher> Create(
21       const ServicePublisher::Config& config,
22       ServicePublisher::Observer* observer,
23       TaskRunner* task_runner);
24 };
25 
26 }  // namespace osp
27 }  // namespace openscreen
28 
29 #endif  // OSP_PUBLIC_SERVICE_PUBLISHER_FACTORY_H_
30