OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2017 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 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 |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 sigslot::signal1<bool> SignalReadyToSend; | 47 sigslot::signal1<bool> SignalReadyToSend; |
48 | 48 |
49 // TODO(zstein): Consider having two signals - RtpPacketReceived and | 49 // TODO(zstein): Consider having two signals - RtpPacketReceived and |
50 // RtcpPacketReceived. | 50 // RtcpPacketReceived. |
51 // The first argument is true for RTCP packets and false for RTP packets. | 51 // The first argument is true for RTCP packets and false for RTP packets. |
52 sigslot::signal3<bool, rtc::CopyOnWriteBuffer*, const rtc::PacketTime&> | 52 sigslot::signal3<bool, rtc::CopyOnWriteBuffer*, const rtc::PacketTime&> |
53 SignalPacketReceived; | 53 SignalPacketReceived; |
54 | 54 |
55 virtual bool IsWritable(bool rtcp) const = 0; | 55 virtual bool IsWritable(bool rtcp) const = 0; |
56 | 56 |
57 virtual bool SendRtpPacket(rtc::CopyOnWriteBuffer* packet, | 57 virtual bool SendPacket(bool rtcp, |
58 const rtc::PacketOptions& options, | 58 rtc::CopyOnWriteBuffer* packet, |
59 int flags) = 0; | 59 const rtc::PacketOptions& options, |
60 | 60 int flags) = 0; |
61 virtual bool SendRtcpPacket(rtc::CopyOnWriteBuffer* packet, | |
62 const rtc::PacketOptions& options, | |
63 int flags) = 0; | |
64 | 61 |
65 virtual bool HandlesPayloadType(int payload_type) const = 0; | 62 virtual bool HandlesPayloadType(int payload_type) const = 0; |
66 | 63 |
67 virtual void AddHandledPayloadType(int payload_type) = 0; | 64 virtual void AddHandledPayloadType(int payload_type) = 0; |
68 }; | 65 }; |
69 | 66 |
70 } // namespace webrtc | 67 } // namespace webrtc |
71 | 68 |
72 #endif // WEBRTC_PC_RTPTRANSPORTINTERNAL_H_ | 69 #endif // WEBRTC_PC_RTPTRANSPORTINTERNAL_H_ |
OLD | NEW |