1 /* 2 * Copyright (c) 2017 The WebRTC project authors. All Rights Reserved. 3 * 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 6 * tree. An additional intellectual property rights grant can be found 7 * in the file PATENTS. All contributing project authors may 8 * be found in the AUTHORS file in the root of the source tree. 9 */ 10 11 #include "logging/rtc_event_log/events/rtc_event_bwe_update_loss_based.h" 12 13 namespace webrtc { 14 RtcEventBweUpdateLossBased(int32_t bitrate_bps,uint8_t fraction_loss,int32_t total_packets)15RtcEventBweUpdateLossBased::RtcEventBweUpdateLossBased(int32_t bitrate_bps, 16 uint8_t fraction_loss, 17 int32_t total_packets) 18 : bitrate_bps_(bitrate_bps), 19 fraction_loss_(fraction_loss), 20 total_packets_(total_packets) {} 21 22 RtcEventBweUpdateLossBased::~RtcEventBweUpdateLossBased() = default; 23 GetType() const24RtcEvent::Type RtcEventBweUpdateLossBased::GetType() const { 25 return RtcEvent::Type::BweUpdateLossBased; 26 } 27 IsConfigEvent() const28bool RtcEventBweUpdateLossBased::IsConfigEvent() const { 29 return false; 30 } 31 32 } // namespace webrtc 33