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/peerconnection/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 : private_(options) {} | 12 : private_(options) {} |
13 | 13 |
14 void WebRTCAnswerOptions::Assign(const WebRTCAnswerOptions& other) { | 14 void WebRTCAnswerOptions::Assign(const WebRTCAnswerOptions& other) { |
15 private_ = other.private_; | 15 private_ = other.private_; |
16 } | 16 } |
17 | 17 |
18 void WebRTCAnswerOptions::Reset() { | 18 void WebRTCAnswerOptions::Reset() { |
19 private_.Reset(); | 19 private_.Reset(); |
20 } | 20 } |
21 | 21 |
22 bool WebRTCAnswerOptions::VoiceActivityDetection() const { | 22 bool WebRTCAnswerOptions::VoiceActivityDetection() const { |
23 ASSERT(!private_.IsNull()); | 23 DCHECK(!private_.IsNull()); |
24 return private_->VoiceActivityDetection(); | 24 return private_->VoiceActivityDetection(); |
25 } | 25 } |
26 | 26 |
27 } // namespace blink | 27 } // namespace blink |
OLD | NEW |