sctp_transport_factory.h (1117B)
1 /* 2 * Copyright (c) 2021 The WebRTC project authors. All Rights Reserved. 3 * 4 * Use of this source code is governed by a BSD-style license 5 * that can be found in the LICENSE file in the root of the source 6 * tree. An additional intellectual property rights grant can be found 7 * in the file PATENTS. All contributing project authors may 8 * be found in the AUTHORS file in the root of the source tree. 9 */ 10 11 #ifndef MEDIA_SCTP_SCTP_TRANSPORT_FACTORY_H_ 12 #define MEDIA_SCTP_SCTP_TRANSPORT_FACTORY_H_ 13 14 #include <memory> 15 16 #include "api/environment/environment.h" 17 #include "api/transport/sctp_transport_factory_interface.h" 18 #include "media/sctp/sctp_transport_internal.h" 19 #include "rtc_base/thread.h" 20 21 namespace webrtc { 22 23 class SctpTransportFactory : public SctpTransportFactoryInterface { 24 public: 25 explicit SctpTransportFactory(Thread* network_thread); 26 27 std::unique_ptr<SctpTransportInternal> CreateSctpTransport( 28 const Environment& env, 29 DtlsTransportInternal* transport) override; 30 31 private: 32 Thread* network_thread_; 33 }; 34 35 } // namespace webrtc 36 37 38 #endif // MEDIA_SCTP_SCTP_TRANSPORT_FACTORY_H__