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_CLUSTER_CREATED_H_
12 #define LOGGING_RTC_EVENT_LOG_EVENTS_RTC_EVENT_PROBE_CLUSTER_CREATED_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 RtcEventProbeClusterCreated final : public RtcEvent {
23  public:
24   RtcEventProbeClusterCreated(int32_t id,
25                               int32_t bitrate_bps,
26                               uint32_t min_probes,
27                               uint32_t min_bytes);
28   ~RtcEventProbeClusterCreated() override = default;
29 
30   Type GetType() const override;
31 
32   bool IsConfigEvent() const override;
33 
34   std::unique_ptr<RtcEventProbeClusterCreated> Copy() const;
35 
id()36   int32_t id() const { return id_; }
bitrate_bps()37   int32_t bitrate_bps() const { return bitrate_bps_; }
min_probes()38   uint32_t min_probes() const { return min_probes_; }
min_bytes()39   uint32_t min_bytes() const { return min_bytes_; }
40 
41  private:
42   RtcEventProbeClusterCreated(const RtcEventProbeClusterCreated& other);
43 
44   const int32_t id_;
45   const int32_t bitrate_bps_;
46   const uint32_t min_probes_;
47   const uint32_t min_bytes_;
48 };
49 
50 }  // namespace webrtc
51 
52 #endif  // LOGGING_RTC_EVENT_LOG_EVENTS_RTC_EVENT_PROBE_CLUSTER_CREATED_H_
53