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_ALR_STATE_H_ 12 #define LOGGING_RTC_EVENT_LOG_EVENTS_RTC_EVENT_ALR_STATE_H_ 13 14 #include <memory> 15 16 #include "api/rtc_event_log/rtc_event.h" 17 18 namespace webrtc { 19 20 class RtcEventAlrState final : public RtcEvent { 21 public: 22 explicit RtcEventAlrState(bool in_alr); 23 ~RtcEventAlrState() override; 24 25 Type GetType() const override; 26 27 bool IsConfigEvent() const override; 28 29 std::unique_ptr<RtcEventAlrState> Copy() const; 30 in_alr()31 bool in_alr() const { return in_alr_; } 32 33 private: 34 RtcEventAlrState(const RtcEventAlrState& other); 35 36 const bool in_alr_; 37 }; 38 39 } // namespace webrtc 40 #endif // LOGGING_RTC_EVENT_LOG_EVENTS_RTC_EVENT_ALR_STATE_H_ 41