blob: 28e0b2d7a7205af86a3729f0487cb3e8d76c89f8 [file] [log] [blame]
nisseb8f9a322017-03-27 05:36:15 -07001/*
2 * Copyright (c) 2017 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 WEBRTC_CALL_RTP_TRANSPORT_CONTROLLER_SEND_H_
12#define WEBRTC_CALL_RTP_TRANSPORT_CONTROLLER_SEND_H_
13
nissecae45d02017-04-24 05:53:20 -070014#include "webrtc/call/rtp_transport_controller_send_interface.h"
sprangdb2a9fc2017-08-09 06:42:32 -070015#include "webrtc/common_types.h"
nissecae45d02017-04-24 05:53:20 -070016#include "webrtc/modules/congestion_controller/include/send_side_congestion_controller.h"
Edward Lemurc20978e2017-07-06 19:44:34 +020017#include "webrtc/rtc_base/constructormagic.h"
nissecae45d02017-04-24 05:53:20 -070018
nisseb8f9a322017-03-27 05:36:15 -070019namespace webrtc {
nissecae45d02017-04-24 05:53:20 -070020class Clock;
21class RtcEventLog;
nisseb8f9a322017-03-27 05:36:15 -070022
nissecae45d02017-04-24 05:53:20 -070023// TODO(nisse): When we get the underlying transports here, we should
24// have one object implementing RtpTransportControllerSendInterface
25// per transport, sharing the same congestion controller.
26class RtpTransportControllerSend : public RtpTransportControllerSendInterface {
nisseb8f9a322017-03-27 05:36:15 -070027 public:
nissecae45d02017-04-24 05:53:20 -070028 RtpTransportControllerSend(Clock* clock, webrtc::RtcEventLog* event_log);
nisseb8f9a322017-03-27 05:36:15 -070029
nissecae45d02017-04-24 05:53:20 -070030 // Implements RtpTransportControllerSendInterface
nisse76e62b02017-05-31 02:24:52 -070031 PacketRouter* packet_router() override;
32 SendSideCongestionController* send_side_cc() override;
33 TransportFeedbackObserver* transport_feedback_observer() override;
34 RtpPacketSender* packet_sender() override;
sprangdb2a9fc2017-08-09 06:42:32 -070035 const RtpKeepAliveConfig& keepalive_config() const override;
36
37 void SetKeepAliveConfig(const RtpKeepAliveConfig& config);
nissecae45d02017-04-24 05:53:20 -070038
39 private:
40 PacketRouter packet_router_;
41 SendSideCongestionController send_side_cc_;
sprangdb2a9fc2017-08-09 06:42:32 -070042 RtpKeepAliveConfig keepalive_;
nissecae45d02017-04-24 05:53:20 -070043
44 RTC_DISALLOW_COPY_AND_ASSIGN(RtpTransportControllerSend);
nisseb8f9a322017-03-27 05:36:15 -070045};
46
47} // namespace webrtc
48
49#endif // WEBRTC_CALL_RTP_TRANSPORT_CONTROLLER_SEND_H_