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 CALL_RTP_TRANSPORT_CONTROLLER_SEND_FACTORY_H_ 12 #define CALL_RTP_TRANSPORT_CONTROLLER_SEND_FACTORY_H_ 13 14 #include <memory> 15 #include <utility> 16 17 #include "call/rtp_transport_controller_send.h" 18 #include "call/rtp_transport_controller_send_factory_interface.h" 19 20 namespace webrtc { 21 class RtpTransportControllerSendFactory 22 : public RtpTransportControllerSendFactoryInterface { 23 public: Create(const RtpTransportConfig & config,Clock * clock)24 std::unique_ptr<RtpTransportControllerSendInterface> Create( 25 const RtpTransportConfig& config, 26 Clock* clock) override { 27 RTC_CHECK(config.trials); 28 return std::make_unique<RtpTransportControllerSend>(clock, config); 29 } 30 ~RtpTransportControllerSendFactory()31 virtual ~RtpTransportControllerSendFactory() {} 32 }; 33 } // namespace webrtc 34 #endif // CALL_RTP_TRANSPORT_CONTROLLER_SEND_FACTORY_H_ 35