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_PROBE_RESULT_SUCCESS_H_
12 #define LOGGING_RTC_EVENT_LOG_EVENTS_RTC_EVENT_PROBE_RESULT_SUCCESS_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 class RtcEventProbeResultSuccess final : public RtcEvent {
23  public:
24   RtcEventProbeResultSuccess(int32_t id, int32_t bitrate_bps);
25   ~RtcEventProbeResultSuccess() override = default;
26 
27   Type GetType() const override;
28 
29   bool IsConfigEvent() const override;
30 
31   std::unique_ptr<RtcEventProbeResultSuccess> Copy() const;
32 
id()33   int32_t id() const { return id_; }
bitrate_bps()34   int32_t bitrate_bps() const { return bitrate_bps_; }
35 
36  private:
37   RtcEventProbeResultSuccess(const RtcEventProbeResultSuccess& other);
38 
39   const int32_t id_;
40   const int32_t bitrate_bps_;
41 };
42 
43 }  // namespace webrtc
44 
45 #endif  // LOGGING_RTC_EVENT_LOG_EVENTS_RTC_EVENT_PROBE_RESULT_SUCCESS_H_
46