OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 #include "public/platform/WebRTCAnswerOptions.h" | 5 #include "public/platform/WebRTCAnswerOptions.h" |
6 | 6 |
7 #include "platform/mediastream/RTCAnswerOptionsPlatform.h" | 7 #include "platform/mediastream/RTCAnswerOptionsPlatform.h" |
| 8 #include "wtf/Assertions.h" |
8 | 9 |
9 namespace blink { | 10 namespace blink { |
10 | 11 |
11 WebRTCAnswerOptions::WebRTCAnswerOptions(RTCAnswerOptionsPlatform* options) | 12 WebRTCAnswerOptions::WebRTCAnswerOptions(RTCAnswerOptionsPlatform* options) |
12 : m_private(options) | 13 : m_private(options) |
13 { | 14 { |
14 } | 15 } |
15 | 16 |
16 void WebRTCAnswerOptions::assign(const WebRTCAnswerOptions& other) | 17 void WebRTCAnswerOptions::assign(const WebRTCAnswerOptions& other) |
17 { | 18 { |
18 m_private = other.m_private; | 19 m_private = other.m_private; |
19 } | 20 } |
20 | 21 |
21 void WebRTCAnswerOptions::reset() | 22 void WebRTCAnswerOptions::reset() |
22 { | 23 { |
23 m_private.reset(); | 24 m_private.reset(); |
24 } | 25 } |
25 | 26 |
| 27 int32_t WebRTCAnswerOptions::offerToReceiveVideo() const |
| 28 { |
| 29 DCHECK(!isNull()); |
| 30 return m_private->offerToReceiveVideo(); |
| 31 } |
| 32 |
| 33 int32_t WebRTCAnswerOptions::offerToReceiveAudio() const |
| 34 { |
| 35 DCHECK(!isNull()); |
| 36 return m_private->offerToReceiveAudio(); |
| 37 } |
| 38 |
26 bool WebRTCAnswerOptions::voiceActivityDetection() const | 39 bool WebRTCAnswerOptions::voiceActivityDetection() const |
27 { | 40 { |
28 ASSERT(!m_private.isNull()); | 41 DCHECK(!m_private.isNull()); |
29 return m_private->voiceActivityDetection(); | 42 return m_private->voiceActivityDetection(); |
30 } | 43 } |
31 | 44 |
32 } // namespace blink | 45 } // namespace blink |
OLD | NEW |