1 /*
2  *  Copyright (c) 2019 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 MODULES_RTP_RTCP_INCLUDE_RTP_PACKET_SENDER_H_
12 #define MODULES_RTP_RTCP_INCLUDE_RTP_PACKET_SENDER_H_
13 
14 #include <memory>
15 #include <vector>
16 
17 #include "modules/rtp_rtcp/include/rtp_rtcp_defines.h"
18 #include "modules/rtp_rtcp/source/rtp_packet_to_send.h"
19 
20 namespace webrtc {
21 
22 class RtpPacketSender {
23  public:
24   virtual ~RtpPacketSender() = default;
25 
26   // Insert a set of packets into queue, for eventual transmission. Based on the
27   // type of packets, they will be prioritized and scheduled relative to other
28   // packets and the current target send rate.
29   virtual void EnqueuePackets(
30       std::vector<std::unique_ptr<RtpPacketToSend>> packets) = 0;
31 };
32 
33 }  // namespace webrtc
34 
35 #endif  // MODULES_RTP_RTCP_INCLUDE_RTP_PACKET_SENDER_H_
36