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