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 #include "logging/rtc_event_log/events/rtc_event_dtls_transport_state.h" 12 13 #include "absl/memory/memory.h" 14 15 namespace webrtc { 16 RtcEventDtlsTransportState(DtlsTransportState state)17RtcEventDtlsTransportState::RtcEventDtlsTransportState(DtlsTransportState state) 18 : dtls_transport_state_(state) {} 19 RtcEventDtlsTransportState(const RtcEventDtlsTransportState & other)20RtcEventDtlsTransportState::RtcEventDtlsTransportState( 21 const RtcEventDtlsTransportState& other) 22 : RtcEvent(other.timestamp_us_), 23 dtls_transport_state_(other.dtls_transport_state_) {} 24 25 RtcEventDtlsTransportState::~RtcEventDtlsTransportState() = default; 26 Copy() const27std::unique_ptr<RtcEventDtlsTransportState> RtcEventDtlsTransportState::Copy() 28 const { 29 return absl::WrapUnique<RtcEventDtlsTransportState>( 30 new RtcEventDtlsTransportState(*this)); 31 } 32 33 } // namespace webrtc 34