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/peerconnection/RTCAnswerOptionsPlatform.h" |
8 | 8 |
9 namespace blink { | 9 namespace blink { |
10 | 10 |
11 WebRTCAnswerOptions::WebRTCAnswerOptions(RTCAnswerOptionsPlatform* options) | 11 WebRTCAnswerOptions::WebRTCAnswerOptions(RTCAnswerOptionsPlatform* options) |
12 : m_private(options) | 12 : m_private(options) |
13 { | 13 { |
14 } | 14 } |
15 | 15 |
16 void WebRTCAnswerOptions::assign(const WebRTCAnswerOptions& other) | 16 void WebRTCAnswerOptions::assign(const WebRTCAnswerOptions& other) |
17 { | 17 { |
18 m_private = other.m_private; | 18 m_private = other.m_private; |
19 } | 19 } |
20 | 20 |
21 void WebRTCAnswerOptions::reset() | 21 void WebRTCAnswerOptions::reset() |
22 { | 22 { |
23 m_private.reset(); | 23 m_private.reset(); |
24 } | 24 } |
25 | 25 |
26 bool WebRTCAnswerOptions::voiceActivityDetection() const | 26 bool WebRTCAnswerOptions::voiceActivityDetection() const |
27 { | 27 { |
28 ASSERT(!m_private.isNull()); | 28 ASSERT(!m_private.isNull()); |
29 return m_private->voiceActivityDetection(); | 29 return m_private->voiceActivityDetection(); |
30 } | 30 } |
31 | 31 |
32 } // namespace blink | 32 } // namespace blink |
OLD | NEW |