Vojin Ilic | 504fc19 | 2021-05-31 12:02:28 | [diff] [blame] | 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 | #ifndef CALL_RTP_TRANSPORT_CONTROLLER_SEND_FACTORY_INTERFACE_H_ |
| 11 | #define CALL_RTP_TRANSPORT_CONTROLLER_SEND_FACTORY_INTERFACE_H_ |
| 12 | |
| 13 | #include <memory> |
| 14 | |
| 15 | #include "call/rtp_transport_config.h" |
| 16 | #include "call/rtp_transport_controller_send_interface.h" |
Vojin Ilic | 504fc19 | 2021-05-31 12:02:28 | [diff] [blame] | 17 | |
| 18 | namespace webrtc { |
| 19 | // A factory used for dependency injection on the send side of the transport |
| 20 | // controller. |
| 21 | class RtpTransportControllerSendFactoryInterface { |
| 22 | public: |
Danil Chapovalov | ee27f38 | 2023-12-18 12:09:12 | [diff] [blame] | 23 | virtual ~RtpTransportControllerSendFactoryInterface() = default; |
Vojin Ilic | 504fc19 | 2021-05-31 12:02:28 | [diff] [blame] | 24 | |
Danil Chapovalov | ee27f38 | 2023-12-18 12:09:12 | [diff] [blame] | 25 | virtual std::unique_ptr<RtpTransportControllerSendInterface> Create( |
| 26 | const RtpTransportConfig& config) = 0; |
Vojin Ilic | 504fc19 | 2021-05-31 12:02:28 | [diff] [blame] | 27 | }; |
| 28 | } // namespace webrtc |
| 29 | #endif // CALL_RTP_TRANSPORT_CONTROLLER_SEND_FACTORY_INTERFACE_H_ |