blob: 225362d9e6d52afa620e9a9e94d457326fe599ad [file] [log] [blame]
* Copyright (c) 2017 The WebRTC project authors. All Rights Reserved.
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributing project authors may
* be found in the AUTHORS file in the root of the source tree.
#include "logging/rtc_event_log/events/rtc_event_ice_candidate_pair.h"
#include "absl/memory/memory.h"
namespace webrtc {
IceCandidatePairEventType type,
uint32_t candidate_pair_id,
uint32_t transaction_id)
: type_(type),
transaction_id_(transaction_id) {}
const RtcEventIceCandidatePair& other)
: RtcEvent(other.timestamp_us_),
transaction_id_(other.transaction_id_) {}
RtcEventIceCandidatePair::~RtcEventIceCandidatePair() = default;
RtcEvent::Type RtcEventIceCandidatePair::GetType() const {
return RtcEvent::Type::IceCandidatePairEvent;
bool RtcEventIceCandidatePair::IsConfigEvent() const {
return false;
std::unique_ptr<RtcEventIceCandidatePair> RtcEventIceCandidatePair::Copy()
const {
return absl::WrapUnique<RtcEventIceCandidatePair>(
new RtcEventIceCandidatePair(*this));
} // namespace webrtc