1197021e6b966cfb06891637935ef33fff06433d1Ben Murdoch// Copyright 2014 The Chromium Authors. All rights reserved.
2197021e6b966cfb06891637935ef33fff06433d1Ben Murdoch// Use of this source code is governed by a BSD-style license that can be
3197021e6b966cfb06891637935ef33fff06433d1Ben Murdoch// found in the LICENSE file.
4197021e6b966cfb06891637935ef33fff06433d1Ben Murdoch
5197021e6b966cfb06891637935ef33fff06433d1Ben Murdoch#include "config.h"
6197021e6b966cfb06891637935ef33fff06433d1Ben Murdoch#include "public/platform/WebRTCOfferOptions.h"
7197021e6b966cfb06891637935ef33fff06433d1Ben Murdoch
8197021e6b966cfb06891637935ef33fff06433d1Ben Murdoch#include "platform/mediastream/RTCOfferOptions.h"
9197021e6b966cfb06891637935ef33fff06433d1Ben Murdoch
10197021e6b966cfb06891637935ef33fff06433d1Ben Murdochnamespace blink {
11197021e6b966cfb06891637935ef33fff06433d1Ben Murdoch
127242dc3dbeb210b5e876a3c42d1ec1a667fc621aPrimiano TucciWebRTCOfferOptions::WebRTCOfferOptions(RTCOfferOptions* options)
13197021e6b966cfb06891637935ef33fff06433d1Ben Murdoch    : m_private(options)
14197021e6b966cfb06891637935ef33fff06433d1Ben Murdoch{
15197021e6b966cfb06891637935ef33fff06433d1Ben Murdoch}
16197021e6b966cfb06891637935ef33fff06433d1Ben Murdoch
17197021e6b966cfb06891637935ef33fff06433d1Ben Murdochvoid WebRTCOfferOptions::assign(const WebRTCOfferOptions& other)
18197021e6b966cfb06891637935ef33fff06433d1Ben Murdoch{
19197021e6b966cfb06891637935ef33fff06433d1Ben Murdoch    m_private = other.m_private;
20197021e6b966cfb06891637935ef33fff06433d1Ben Murdoch}
21197021e6b966cfb06891637935ef33fff06433d1Ben Murdoch
22197021e6b966cfb06891637935ef33fff06433d1Ben Murdochvoid WebRTCOfferOptions::reset()
23197021e6b966cfb06891637935ef33fff06433d1Ben Murdoch{
24197021e6b966cfb06891637935ef33fff06433d1Ben Murdoch    m_private.reset();
25197021e6b966cfb06891637935ef33fff06433d1Ben Murdoch}
26197021e6b966cfb06891637935ef33fff06433d1Ben Murdoch
27197021e6b966cfb06891637935ef33fff06433d1Ben Murdochint32_t WebRTCOfferOptions::offerToReceiveVideo() const
28197021e6b966cfb06891637935ef33fff06433d1Ben Murdoch{
29197021e6b966cfb06891637935ef33fff06433d1Ben Murdoch    ASSERT(!isNull());
30197021e6b966cfb06891637935ef33fff06433d1Ben Murdoch    return m_private->offerToReceiveVideo();
31197021e6b966cfb06891637935ef33fff06433d1Ben Murdoch}
32197021e6b966cfb06891637935ef33fff06433d1Ben Murdoch
33197021e6b966cfb06891637935ef33fff06433d1Ben Murdochint32_t WebRTCOfferOptions::offerToReceiveAudio() const
34197021e6b966cfb06891637935ef33fff06433d1Ben Murdoch{
35197021e6b966cfb06891637935ef33fff06433d1Ben Murdoch    ASSERT(!isNull());
36197021e6b966cfb06891637935ef33fff06433d1Ben Murdoch    return m_private->offerToReceiveAudio();
37197021e6b966cfb06891637935ef33fff06433d1Ben Murdoch}
38197021e6b966cfb06891637935ef33fff06433d1Ben Murdoch
39197021e6b966cfb06891637935ef33fff06433d1Ben Murdochbool WebRTCOfferOptions::voiceActivityDetection() const
40197021e6b966cfb06891637935ef33fff06433d1Ben Murdoch{
41197021e6b966cfb06891637935ef33fff06433d1Ben Murdoch    ASSERT(!isNull());
42197021e6b966cfb06891637935ef33fff06433d1Ben Murdoch    return m_private->voiceActivityDetection();
43197021e6b966cfb06891637935ef33fff06433d1Ben Murdoch}
44197021e6b966cfb06891637935ef33fff06433d1Ben Murdoch
45197021e6b966cfb06891637935ef33fff06433d1Ben Murdochbool WebRTCOfferOptions::iceRestart() const
46197021e6b966cfb06891637935ef33fff06433d1Ben Murdoch{
47197021e6b966cfb06891637935ef33fff06433d1Ben Murdoch    ASSERT(!isNull());
48197021e6b966cfb06891637935ef33fff06433d1Ben Murdoch    return m_private->iceRestart();
49197021e6b966cfb06891637935ef33fff06433d1Ben Murdoch}
50197021e6b966cfb06891637935ef33fff06433d1Ben Murdoch
51197021e6b966cfb06891637935ef33fff06433d1Ben Murdoch} // namespace blink
52