blob: 9a28c3738a5260fdd80b9474ff695bd7c6d4d33d [file] [log] [blame]
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "public/platform/WebRTCAnswerOptions.h"
#include "platform/peerconnection/RTCAnswerOptionsPlatform.h"
namespace blink {
WebRTCAnswerOptions::WebRTCAnswerOptions(RTCAnswerOptionsPlatform* options)
: m_private(options) {}
void WebRTCAnswerOptions::assign(const WebRTCAnswerOptions& other) {
m_private = other.m_private;
}
void WebRTCAnswerOptions::reset() {
m_private.reset();
}
bool WebRTCAnswerOptions::voiceActivityDetection() const {
ASSERT(!m_private.isNull());
return m_private->voiceActivityDetection();
}
} // namespace blink