• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  *  Copyright (c) 2019 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 #ifndef LOGGING_RTC_EVENT_LOG_EVENTS_RTC_EVENT_REMOTE_ESTIMATE_H_
11 #define LOGGING_RTC_EVENT_LOG_EVENTS_RTC_EVENT_REMOTE_ESTIMATE_H_
12 
13 #include <memory>
14 
15 #include "absl/types/optional.h"
16 #include "api/rtc_event_log/rtc_event.h"
17 #include "api/units/data_rate.h"
18 
19 namespace webrtc {
20 
21 class RtcEventRemoteEstimate final : public RtcEvent {
22  public:
RtcEventRemoteEstimate(DataRate link_capacity_lower,DataRate link_capacity_upper)23   RtcEventRemoteEstimate(DataRate link_capacity_lower,
24                          DataRate link_capacity_upper)
25       : link_capacity_lower_(link_capacity_lower),
26         link_capacity_upper_(link_capacity_upper) {}
GetType()27   Type GetType() const override { return RtcEvent::Type::RemoteEstimateEvent; }
IsConfigEvent()28   bool IsConfigEvent() const override { return false; }
29 
30   const DataRate link_capacity_lower_;
31   const DataRate link_capacity_upper_;
32 };
33 }  // namespace webrtc
34 #endif  // LOGGING_RTC_EVENT_LOG_EVENTS_RTC_EVENT_REMOTE_ESTIMATE_H_
35