Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / platform / exported / WebRTCOfferOptions.cpp
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
10 namespace blink {
11
12 WebRTCOfferOptions::WebRTCOfferOptions(RTCOfferOptions* options)
13     : m_private(options)
14 {
15 }
16
17 void WebRTCOfferOptions::assign(const WebRTCOfferOptions& other)
18 {
19     m_private = other.m_private;
20 }
21
22 void WebRTCOfferOptions::reset()
23 {
24     m_private.reset();
25 }
26
27 int32_t WebRTCOfferOptions::offerToReceiveVideo() const
28 {
29     ASSERT(!isNull());
30     return m_private->offerToReceiveVideo();
31 }
32
33 int32_t WebRTCOfferOptions::offerToReceiveAudio() const
34 {
35     ASSERT(!isNull());
36     return m_private->offerToReceiveAudio();
37 }
38
39 bool WebRTCOfferOptions::voiceActivityDetection() const
40 {
41     ASSERT(!isNull());
42     return m_private->voiceActivityDetection();
43 }
44
45 bool WebRTCOfferOptions::iceRestart() const
46 {
47     ASSERT(!isNull());
48     return m_private->iceRestart();
49 }
50
51 } // namespace blink