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.
5 #ifndef RTCOfferOptions_h
6 #define RTCOfferOptions_h
8 #include "platform/heap/Handle.h"
12 class RTCOfferOptions final
: public GarbageCollected
<RTCOfferOptions
> {
14 static RTCOfferOptions
* create(int32_t offerToReceiveVideo
, int32_t offerToReceiveAudio
, bool voiceActivityDetection
, bool iceRestart
)
16 return new RTCOfferOptions(offerToReceiveVideo
, offerToReceiveAudio
, voiceActivityDetection
, iceRestart
);
19 int32_t offerToReceiveVideo() const { return m_offerToReceiveVideo
; }
20 int32_t offerToReceiveAudio() const { return m_offerToReceiveAudio
; }
21 bool voiceActivityDetection() const { return m_voiceActivityDetection
; }
22 bool iceRestart() const { return m_iceRestart
; }
24 DEFINE_INLINE_TRACE() { }
27 RTCOfferOptions(int32_t offerToReceiveVideo
, int32_t offerToReceiveAudio
, bool voiceActivityDetection
, bool iceRestart
)
28 : m_offerToReceiveVideo(offerToReceiveVideo
)
29 , m_offerToReceiveAudio(offerToReceiveAudio
)
30 , m_voiceActivityDetection(voiceActivityDetection
)
31 , m_iceRestart(iceRestart
)
35 int32_t m_offerToReceiveVideo
;
36 int32_t m_offerToReceiveAudio
;
37 bool m_voiceActivityDetection
;
43 #endif // RTCOfferOptions_h