1// Copyright 2014 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#include "config.h"
6#include "public/platform/WebRTCOfferOptions.h"
7
8#include "platform/mediastream/RTCOfferOptions.h"
9
10namespace blink {
11
12WebRTCOfferOptions::WebRTCOfferOptions(RTCOfferOptions* options)
13    : m_private(options)
14{
15}
16
17void WebRTCOfferOptions::assign(const WebRTCOfferOptions& other)
18{
19    m_private = other.m_private;
20}
21
22void WebRTCOfferOptions::reset()
23{
24    m_private.reset();
25}
26
27int32_t WebRTCOfferOptions::offerToReceiveVideo() const
28{
29    ASSERT(!isNull());
30    return m_private->offerToReceiveVideo();
31}
32
33int32_t WebRTCOfferOptions::offerToReceiveAudio() const
34{
35    ASSERT(!isNull());
36    return m_private->offerToReceiveAudio();
37}
38
39bool WebRTCOfferOptions::voiceActivityDetection() const
40{
41    ASSERT(!isNull());
42    return m_private->voiceActivityDetection();
43}
44
45bool WebRTCOfferOptions::iceRestart() const
46{
47    ASSERT(!isNull());
48    return m_private->iceRestart();
49}
50
51} // namespace blink
52