blob: 2686d11c643e2eee0da9b82855d1067c3ea6b584 [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.
#ifndef RTCAnswerOptionsPlatform_h
#define RTCAnswerOptionsPlatform_h
#include "platform/heap/Handle.h"
namespace blink {
class RTCAnswerOptionsPlatform final
: public GarbageCollected<RTCAnswerOptionsPlatform> {
public:
static RTCAnswerOptionsPlatform* Create(bool voice_activity_detection) {
return new RTCAnswerOptionsPlatform(voice_activity_detection);
}
bool VoiceActivityDetection() const { return voice_activity_detection_; }
void Trace(blink::Visitor* visitor) {}
private:
explicit RTCAnswerOptionsPlatform(bool voice_activity_detection)
: voice_activity_detection_(voice_activity_detection) {}
bool voice_activity_detection_;
};
} // namespace blink
#endif // RTCAnswerOptionsPlatform_h