xref: /aosp_15_r20/external/webrtc/call/rtp_transport_controller_send_factory_interface.h (revision d9f758449e529ab9291ac668be2861e7a55c2422)
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"
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:
23   virtual std::unique_ptr<RtpTransportControllerSendInterface> Create(
24       const RtpTransportConfig& config,
25       Clock* clock) = 0;
26 
~RtpTransportControllerSendFactoryInterface()27   virtual ~RtpTransportControllerSendFactoryInterface() {}
28 };
29 }  // namespace webrtc
30 #endif  // CALL_RTP_TRANSPORT_CONTROLLER_SEND_FACTORY_INTERFACE_H_
31