OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef RTCOfferOptions_h | 5 #ifndef RTCOfferOptions_h |
6 #define RTCOfferOptions_h | 6 #define RTCOfferOptions_h |
7 | 7 |
8 #include "platform/heap/Handle.h" | 8 #include "platform/heap/Handle.h" |
9 | 9 |
10 namespace blink { | 10 namespace blink { |
11 | 11 |
12 class RTCOfferOptions FINAL : public GarbageCollected<RTCOfferOptions> { | 12 class RTCOfferOptions final : public GarbageCollected<RTCOfferOptions> { |
13 public: | 13 public: |
14 static RTCOfferOptions* create(int32_t offerToReceiveVideo, int32_t offerToR
eceiveAudio, bool voiceActivityDetection, bool iceRestart) | 14 static RTCOfferOptions* create(int32_t offerToReceiveVideo, int32_t offerToR
eceiveAudio, bool voiceActivityDetection, bool iceRestart) |
15 { | 15 { |
16 return new RTCOfferOptions(offerToReceiveVideo, offerToReceiveAudio, voi
ceActivityDetection, iceRestart); | 16 return new RTCOfferOptions(offerToReceiveVideo, offerToReceiveAudio, voi
ceActivityDetection, iceRestart); |
17 } | 17 } |
18 | 18 |
19 int32_t offerToReceiveVideo() const { return m_offerToReceiveVideo; } | 19 int32_t offerToReceiveVideo() const { return m_offerToReceiveVideo; } |
20 int32_t offerToReceiveAudio() const { return m_offerToReceiveAudio; } | 20 int32_t offerToReceiveAudio() const { return m_offerToReceiveAudio; } |
21 bool voiceActivityDetection() const { return m_voiceActivityDetection; } | 21 bool voiceActivityDetection() const { return m_voiceActivityDetection; } |
22 bool iceRestart() const { return m_iceRestart; } | 22 bool iceRestart() const { return m_iceRestart; } |
(...skipping 11 matching lines...) Expand all Loading... |
34 | 34 |
35 int32_t m_offerToReceiveVideo; | 35 int32_t m_offerToReceiveVideo; |
36 int32_t m_offerToReceiveAudio; | 36 int32_t m_offerToReceiveAudio; |
37 bool m_voiceActivityDetection; | 37 bool m_voiceActivityDetection; |
38 bool m_iceRestart; | 38 bool m_iceRestart; |
39 }; | 39 }; |
40 | 40 |
41 } // namespace blink | 41 } // namespace blink |
42 | 42 |
43 #endif // RTCOfferOptions_h | 43 #endif // RTCOfferOptions_h |
OLD | NEW |