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_INTERFACE_H_ | 11 #ifndef WEBRTC_CALL_RTP_TRANSPORT_CONTROLLER_SEND_INTERFACE_H_ |
12 #define WEBRTC_CALL_RTP_TRANSPORT_CONTROLLER_SEND_INTERFACE_H_ | 12 #define WEBRTC_CALL_RTP_TRANSPORT_CONTROLLER_SEND_INTERFACE_H_ |
13 | 13 |
14 namespace webrtc { | 14 namespace webrtc { |
15 | 15 |
16 class PacketRouter; | 16 class PacketRouter; |
17 class RtpPacketSender; | 17 class RtpPacketSender; |
| 18 struct RtpKeepAliveConfig; |
18 class SendSideCongestionController; | 19 class SendSideCongestionController; |
19 class TransportFeedbackObserver; | 20 class TransportFeedbackObserver; |
20 | 21 |
21 // An RtpTransportController should own everything related to the RTP | 22 // An RtpTransportController should own everything related to the RTP |
22 // transport to/from a remote endpoint. We should have separate | 23 // transport to/from a remote endpoint. We should have separate |
23 // interfaces for send and receive side, even if they are implemented | 24 // interfaces for send and receive side, even if they are implemented |
24 // by the same class. This is an ongoing refactoring project. At some | 25 // by the same class. This is an ongoing refactoring project. At some |
25 // point, this class should be promoted to a public api under | 26 // point, this class should be promoted to a public api under |
26 // webrtc/api/rtp/. | 27 // webrtc/api/rtp/. |
27 // | 28 // |
(...skipping 15 matching lines...) Expand all Loading... |
43 // moving the transport here. | 44 // moving the transport here. |
44 class RtpTransportControllerSendInterface { | 45 class RtpTransportControllerSendInterface { |
45 public: | 46 public: |
46 virtual ~RtpTransportControllerSendInterface() {} | 47 virtual ~RtpTransportControllerSendInterface() {} |
47 virtual PacketRouter* packet_router() = 0; | 48 virtual PacketRouter* packet_router() = 0; |
48 // Currently returning the same pointer, but with different types. | 49 // Currently returning the same pointer, but with different types. |
49 virtual SendSideCongestionController* send_side_cc() = 0; | 50 virtual SendSideCongestionController* send_side_cc() = 0; |
50 virtual TransportFeedbackObserver* transport_feedback_observer() = 0; | 51 virtual TransportFeedbackObserver* transport_feedback_observer() = 0; |
51 | 52 |
52 virtual RtpPacketSender* packet_sender() = 0; | 53 virtual RtpPacketSender* packet_sender() = 0; |
| 54 virtual const RtpKeepAliveConfig& keepalive_config() const = 0; |
53 }; | 55 }; |
54 | 56 |
55 } // namespace webrtc | 57 } // namespace webrtc |
56 | 58 |
57 #endif // WEBRTC_CALL_RTP_TRANSPORT_CONTROLLER_SEND_INTERFACE_H_ | 59 #endif // WEBRTC_CALL_RTP_TRANSPORT_CONTROLLER_SEND_INTERFACE_H_ |
OLD | NEW |