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