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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
49 | 49 |
50 PacketTransportInterface* GetRtpPacketTransport() const override; | 50 PacketTransportInterface* GetRtpPacketTransport() const override; |
51 PacketTransportInterface* GetRtcpPacketTransport() const override; | 51 PacketTransportInterface* GetRtcpPacketTransport() const override; |
52 | 52 |
53 // TODO(zstein): Use these RtcpParameters for configuration elsewhere. | 53 // TODO(zstein): Use these RtcpParameters for configuration elsewhere. |
54 RTCError SetRtcpParameters(const RtcpParameters& parameters) override; | 54 RTCError SetRtcpParameters(const RtcpParameters& parameters) override; |
55 RtcpParameters GetRtcpParameters() const override; | 55 RtcpParameters GetRtcpParameters() const override; |
56 | 56 |
57 bool IsWritable(bool rtcp) const override; | 57 bool IsWritable(bool rtcp) const override; |
58 | 58 |
59 bool SendRtpPacket(rtc::CopyOnWriteBuffer* packet, | |
60 const rtc::PacketOptions& options) override; | |
61 | |
62 bool SendRtcpPacket(rtc::CopyOnWriteBuffer* packet, | |
63 const rtc::PacketOptions& options) override; | |
64 | |
59 bool SendPacket(bool rtcp, | 65 bool SendPacket(bool rtcp, |
60 rtc::CopyOnWriteBuffer* packet, | 66 rtc::CopyOnWriteBuffer* packet, |
61 const rtc::PacketOptions& options, | 67 const rtc::PacketOptions& options, |
62 int flags) override; | 68 int flags) override; |
Taylor Brandstetter
2017/08/30 21:24:26
Since BaseChannel now goes through Send[Rtp|Rtcp]P
Zhi Huang
2017/08/31 17:42:41
OK. Then we don't even need SendPacket to be part
| |
63 | 69 |
64 bool HandlesPayloadType(int payload_type) const override; | 70 bool HandlesPayloadType(int payload_type) const override; |
65 | 71 |
66 void AddHandledPayloadType(int payload_type) override; | 72 void AddHandledPayloadType(int payload_type) override; |
67 | 73 |
68 protected: | 74 protected: |
69 // TODO(zstein): Remove this when we remove RtpTransportAdapter. | 75 // TODO(zstein): Remove this when we remove RtpTransportAdapter. |
70 RtpTransportAdapter* GetInternal() override; | 76 RtpTransportAdapter* GetInternal() override; |
71 | 77 |
72 private: | 78 private: |
(...skipping 25 matching lines...) Expand all Loading... | |
98 bool rtcp_ready_to_send_ = false; | 104 bool rtcp_ready_to_send_ = false; |
99 | 105 |
100 RtcpParameters rtcp_parameters_; | 106 RtcpParameters rtcp_parameters_; |
101 | 107 |
102 cricket::BundleFilter bundle_filter_; | 108 cricket::BundleFilter bundle_filter_; |
103 }; | 109 }; |
104 | 110 |
105 } // namespace webrtc | 111 } // namespace webrtc |
106 | 112 |
107 #endif // WEBRTC_PC_RTPTRANSPORT_H_ | 113 #endif // WEBRTC_PC_RTPTRANSPORT_H_ |
OLD | NEW |