blob: 1812a4c50231361dbda46cb338d488951acd90bd [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)
: private_(options) {}
void WebRTCAnswerOptions::Assign(const WebRTCAnswerOptions& other) {
private_ = other.private_;
}
void WebRTCAnswerOptions::Reset() {
private_.Reset();
}
bool WebRTCAnswerOptions::VoiceActivityDetection() const {
DCHECK(!private_.IsNull());
return private_->VoiceActivityDetection();
}
} // namespace blink