nisse | b8f9a32 | 2017-03-27 05:36:15 -0700 | [diff] [blame] | 1 | /* |
| 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 | |
nisse | cae45d0 | 2017-04-24 05:53:20 -0700 | [diff] [blame] | 14 | #include "webrtc/base/constructormagic.h" |
| 15 | #include "webrtc/call/rtp_transport_controller_send_interface.h" |
| 16 | #include "webrtc/modules/congestion_controller/include/send_side_congestion_controller.h" |
| 17 | |
nisse | b8f9a32 | 2017-03-27 05:36:15 -0700 | [diff] [blame] | 18 | namespace webrtc { |
nisse | cae45d0 | 2017-04-24 05:53:20 -0700 | [diff] [blame] | 19 | class Clock; |
| 20 | class RtcEventLog; |
nisse | b8f9a32 | 2017-03-27 05:36:15 -0700 | [diff] [blame] | 21 | |
nisse | cae45d0 | 2017-04-24 05:53:20 -0700 | [diff] [blame] | 22 | // TODO(nisse): When we get the underlying transports here, we should |
| 23 | // have one object implementing RtpTransportControllerSendInterface |
| 24 | // per transport, sharing the same congestion controller. |
| 25 | class RtpTransportControllerSend : public RtpTransportControllerSendInterface { |
nisse | b8f9a32 | 2017-03-27 05:36:15 -0700 | [diff] [blame] | 26 | public: |
nisse | cae45d0 | 2017-04-24 05:53:20 -0700 | [diff] [blame] | 27 | RtpTransportControllerSend(Clock* clock, webrtc::RtcEventLog* event_log); |
nisse | b8f9a32 | 2017-03-27 05:36:15 -0700 | [diff] [blame] | 28 | |
nisse | cae45d0 | 2017-04-24 05:53:20 -0700 | [diff] [blame] | 29 | // Implements RtpTransportControllerSendInterface |
nisse | 76e62b0 | 2017-05-31 02:24:52 -0700 | [diff] [blame^] | 30 | PacketRouter* packet_router() override; |
| 31 | SendSideCongestionController* send_side_cc() override; |
| 32 | TransportFeedbackObserver* transport_feedback_observer() override; |
| 33 | RtpPacketSender* packet_sender() override; |
nisse | cae45d0 | 2017-04-24 05:53:20 -0700 | [diff] [blame] | 34 | |
| 35 | private: |
| 36 | PacketRouter packet_router_; |
| 37 | SendSideCongestionController send_side_cc_; |
| 38 | |
| 39 | RTC_DISALLOW_COPY_AND_ASSIGN(RtpTransportControllerSend); |
nisse | b8f9a32 | 2017-03-27 05:36:15 -0700 | [diff] [blame] | 40 | }; |
| 41 | |
| 42 | } // namespace webrtc |
| 43 | |
| 44 | #endif // WEBRTC_CALL_RTP_TRANSPORT_CONTROLLER_SEND_H_ |