Chromium Code Reviews| Index: webrtc/voice_engine/channel.cc |
| diff --git a/webrtc/voice_engine/channel.cc b/webrtc/voice_engine/channel.cc |
| index 006e3db69bf55d754eec187c52793b4a5f66e54c..54ba66af7f52548687fef06257199e521fbd1103 100644 |
| --- a/webrtc/voice_engine/channel.cc |
| +++ b/webrtc/voice_engine/channel.cc |
| @@ -107,9 +107,19 @@ class RtcEventLogProxy final : public webrtc::RtcEventLog { |
| webrtc::MediaType media_type, |
| const uint8_t* header, |
| size_t packet_length) override { |
| + LogRtpHeader(direction, media_type, header, packet_length, |
| + PacketInfo::kNotAProbe); |
| + } |
| + |
| + void LogRtpHeader(webrtc::PacketDirection direction, |
| + webrtc::MediaType media_type, |
| + const uint8_t* header, |
| + size_t packet_length, |
| + int probe_cluster_id) override { |
| rtc::CritScope lock(&crit_); |
| if (event_log_) { |
| - event_log_->LogRtpHeader(direction, media_type, header, packet_length); |
| + event_log_->LogRtpHeader(direction, media_type, header, packet_length, |
| + probe_cluster_id); |
| } |
| } |
| @@ -147,6 +157,32 @@ class RtcEventLogProxy final : public webrtc::RtcEventLog { |
| } |
| } |
| + void LogProbeClusterCreated(int id, |
| + int bitrate_bps, |
| + int min_probes, |
|
terelius
2017/02/20 14:00:31
probes -> packets
|
| + int min_bytes) override { |
| + rtc::CritScope lock(&crit_); |
| + if (event_log_) { |
| + event_log_->LogProbeClusterCreated(id, bitrate_bps, min_probes, |
| + min_bytes); |
| + } |
| + }; |
| + |
| + void LogProbeResultSuccess(int id, int bitrate_bps) override { |
| + rtc::CritScope lock(&crit_); |
| + if (event_log_) { |
| + event_log_->LogProbeResultSuccess(id, bitrate_bps); |
| + } |
| + }; |
| + |
| + void LogProbeResultFailure(int id, |
| + ProbeFailureReason failure_reason) override { |
| + rtc::CritScope lock(&crit_); |
| + if (event_log_) { |
| + event_log_->LogProbeResultFailure(id, failure_reason); |
| + } |
| + }; |
| + |
| void SetEventLog(RtcEventLog* event_log) { |
| rtc::CritScope lock(&crit_); |
| event_log_ = event_log; |