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 #ifndef LOGGING_RTC_EVENT_LOG_EVENTS_RTC_EVENT_BWE_UPDATE_DELAY_BASED_H_ 12 #define LOGGING_RTC_EVENT_LOG_EVENTS_RTC_EVENT_BWE_UPDATE_DELAY_BASED_H_ 13 14 #include <stdint.h> 15 16 #include <memory> 17 18 #include "api/rtc_event_log/rtc_event.h" 19 20 namespace webrtc { 21 22 enum class BandwidthUsage; 23 24 class RtcEventBweUpdateDelayBased final : public RtcEvent { 25 public: 26 RtcEventBweUpdateDelayBased(int32_t bitrate_bps, 27 BandwidthUsage detector_state); 28 ~RtcEventBweUpdateDelayBased() override; 29 30 Type GetType() const override; 31 32 bool IsConfigEvent() const override; 33 34 std::unique_ptr<RtcEventBweUpdateDelayBased> Copy() const; 35 bitrate_bps()36 int32_t bitrate_bps() const { return bitrate_bps_; } detector_state()37 BandwidthUsage detector_state() const { return detector_state_; } 38 39 private: 40 RtcEventBweUpdateDelayBased(const RtcEventBweUpdateDelayBased& other); 41 42 const int32_t bitrate_bps_; 43 const BandwidthUsage detector_state_; 44 }; 45 46 } // namespace webrtc 47 48 #endif // LOGGING_RTC_EVENT_LOG_EVENTS_RTC_EVENT_BWE_UPDATE_DELAY_BASED_H_ 49