Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / Source / platform / mediastream / RTCOfferOptions.h
blob217a4b482d53e41d7020926eb345893ac7d39efd
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"
10 namespace blink {
12 class RTCOfferOptions final : public GarbageCollected<RTCOfferOptions> {
13 public:
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() { }
26 private:
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;
38 bool m_iceRestart;
41 } // namespace blink
43 #endif // RTCOfferOptions_h