OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2017 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2017 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 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 | 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 | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
11 #ifndef WEBRTC_CALL_RTP_TRANSPORT_CONTROLLER_SEND_H_ | 11 #ifndef WEBRTC_CALL_RTP_TRANSPORT_CONTROLLER_SEND_H_ |
12 #define WEBRTC_CALL_RTP_TRANSPORT_CONTROLLER_SEND_H_ | 12 #define WEBRTC_CALL_RTP_TRANSPORT_CONTROLLER_SEND_H_ |
13 | 13 |
14 #include "webrtc/base/constructormagic.h" | 14 #include "webrtc/base/constructormagic.h" |
15 #include "webrtc/call/rtp_transport_controller_send_interface.h" | 15 #include "webrtc/call/rtp_transport_controller_send_interface.h" |
16 #include "webrtc/modules/congestion_controller/include/send_side_congestion_cont roller.h" | 16 #include "webrtc/modules/congestion_controller/include/send_side_congestion_cont roller.h" |
17 | 17 |
18 namespace webrtc { | 18 namespace webrtc { |
19 class Clock; | 19 class Clock; |
20 class RtcEventLog; | 20 class RtcEventLog; |
21 | 21 |
22 // TODO(nisse): When we get the underlying transports here, we should | 22 // TODO(nisse): When we get the underlying transports here, we should |
23 // have one object implementing RtpTransportControllerSendInterface | 23 // have one object implementing RtpTransportControllerSendInterface |
24 // per transport, sharing the same congestion controller. | 24 // per transport, sharing the same congestion controller. |
25 class RtpTransportControllerSend : public RtpTransportControllerSendInterface { | 25 class RtpTransportControllerSend : public RtpTransportControllerSendInterface { |
26 public: | 26 public: |
27 RtpTransportControllerSend(Clock* clock, webrtc::RtcEventLog* event_log); | 27 RtpTransportControllerSend(Clock* clock, webrtc::RtcEventLog* event_log); |
28 | 28 |
29 void RegisterNetworkObserver( | |
30 SendSideCongestionController::Observer* observer); | |
Stefan
2017/05/01 11:17:06
I think we have to decide if we want send_side_cc
nisse-webrtc
2017/05/02 07:01:29
It's not clear to me how this will look in the end
Zach Stein
2017/05/04 21:30:02
RegisterNetworkObserver would need to be added to
nisse-webrtc
2017/05/05 07:12:38
No, I think it's better to leave send_side_cc() in
Zach Stein
2017/05/05 23:28:12
Acknowledged.
| |
31 | |
32 // Implements RtpTransportControllerSendInterface | 29 // Implements RtpTransportControllerSendInterface |
33 PacketRouter* packet_router() override { return &packet_router_; } | 30 PacketRouter* packet_router() override { return &packet_router_; } |
34 SendSideCongestionController* send_side_cc() override { | 31 SendSideCongestionController* send_side_cc() override { |
35 return &send_side_cc_; | 32 return &send_side_cc_; |
36 } | 33 } |
37 TransportFeedbackObserver* transport_feedback_observer() override { | 34 TransportFeedbackObserver* transport_feedback_observer() override { |
38 return &send_side_cc_; | 35 return &send_side_cc_; |
39 } | 36 } |
40 RtpPacketSender* packet_sender() override { return send_side_cc_.pacer(); } | 37 RtpPacketSender* packet_sender() override { return send_side_cc_.pacer(); } |
41 | 38 |
42 private: | 39 private: |
43 PacketRouter packet_router_; | 40 PacketRouter packet_router_; |
44 SendSideCongestionController send_side_cc_; | 41 SendSideCongestionController send_side_cc_; |
45 | 42 |
46 RTC_DISALLOW_COPY_AND_ASSIGN(RtpTransportControllerSend); | 43 RTC_DISALLOW_COPY_AND_ASSIGN(RtpTransportControllerSend); |
47 }; | 44 }; |
48 | 45 |
49 } // namespace webrtc | 46 } // namespace webrtc |
50 | 47 |
51 #endif // WEBRTC_CALL_RTP_TRANSPORT_CONTROLLER_SEND_H_ | 48 #endif // WEBRTC_CALL_RTP_TRANSPORT_CONTROLLER_SEND_H_ |
OLD | NEW |