Make ChannelSend::OnUplinkPacketLossRate public

And delete a friend declaration.

Bug: webrtc:10198
Change-Id: Ie3a79418602ec078f68e70c17ef37bb4d79fb36a
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/268765
Commit-Queue: Jakob Ivarsson‎ <jakobi@webrtc.org>
Reviewed-by: Jakob Ivarsson‎ <jakobi@webrtc.org>
Auto-Submit: Niels Moller <nisse@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#37548}
This commit is contained in:
Niels Möller 2022-07-18 14:56:33 +02:00 committed by WebRTC LUCI CQ
parent 208129fb53
commit ee3ad9f2ce

View File

@ -61,10 +61,6 @@ class ChannelSend : public ChannelSendInterface,
// packets from the ACM
public RtcpPacketTypeCounterObserver {
public:
// TODO(nisse): Make OnUplinkPacketLossRate public, and delete friend
// declaration. Or delete indirection via VoERtcpObserver.
friend class VoERtcpObserver;
ChannelSend(Clock* clock,
TaskQueueFactory* task_queue_factory,
Transport* rtp_transport,
@ -154,6 +150,8 @@ class ChannelSend : public ChannelSendInterface,
uint32_t ssrc,
const RtcpPacketTypeCounter& packet_counter) override;
void OnUplinkPacketLossRate(float packet_loss_rate);
private:
// From AudioPacketizationCallback in the ACM
int32_t SendData(AudioFrameType frameType,
@ -163,7 +161,6 @@ class ChannelSend : public ChannelSendInterface,
size_t payloadSize,
int64_t absolute_capture_timestamp_ms) override;
void OnUplinkPacketLossRate(float packet_loss_rate);
bool InputMute() const;
int32_t SendRtpAudio(AudioFrameType frameType,