| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 2012 The WebRTC project authors. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| (...skipping 1217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1228 kEnumCounterAddressFamily, kPeerConnection_IPv6, | 1228 kEnumCounterAddressFamily, kPeerConnection_IPv6, |
| 1229 kPeerConnectionAddressFamilyCounter_Max); | 1229 kPeerConnectionAddressFamilyCounter_Max); |
| 1230 } else { | 1230 } else { |
| 1231 uma_observer_->IncrementEnumCounter( | 1231 uma_observer_->IncrementEnumCounter( |
| 1232 kEnumCounterAddressFamily, kPeerConnection_IPv4, | 1232 kEnumCounterAddressFamily, kPeerConnection_IPv4, |
| 1233 kPeerConnectionAddressFamilyCounter_Max); | 1233 kPeerConnectionAddressFamilyCounter_Max); |
| 1234 } | 1234 } |
| 1235 } | 1235 } |
| 1236 } | 1236 } |
| 1237 | 1237 |
| 1238 // Stub implementation fails if current_bitrate_bps is set and succeeds |
| 1239 // otherwise. |
| 1240 RTCError PeerConnection::SetBitrate(const BitrateParameters& bitrate) { |
| 1241 if (bitrate.current_bitrate_bps) { |
| 1242 return RTCError(RTCErrorType::INVALID_PARAMETER); |
| 1243 } else { |
| 1244 return RTCError::OK(); |
| 1245 } |
| 1246 } |
| 1247 |
| 1238 bool PeerConnection::StartRtcEventLog(rtc::PlatformFile file, | 1248 bool PeerConnection::StartRtcEventLog(rtc::PlatformFile file, |
| 1239 int64_t max_size_bytes) { | 1249 int64_t max_size_bytes) { |
| 1240 return factory_->worker_thread()->Invoke<bool>( | 1250 return factory_->worker_thread()->Invoke<bool>( |
| 1241 RTC_FROM_HERE, rtc::Bind(&PeerConnection::StartRtcEventLog_w, this, file, | 1251 RTC_FROM_HERE, rtc::Bind(&PeerConnection::StartRtcEventLog_w, this, file, |
| 1242 max_size_bytes)); | 1252 max_size_bytes)); |
| 1243 } | 1253 } |
| 1244 | 1254 |
| 1245 void PeerConnection::StopRtcEventLog() { | 1255 void PeerConnection::StopRtcEventLog() { |
| 1246 factory_->worker_thread()->Invoke<void>( | 1256 factory_->worker_thread()->Invoke<void>( |
| 1247 RTC_FROM_HERE, rtc::Bind(&PeerConnection::StopRtcEventLog_w, this)); | 1257 RTC_FROM_HERE, rtc::Bind(&PeerConnection::StopRtcEventLog_w, this)); |
| (...skipping 1060 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2308 } | 2318 } |
| 2309 return event_log_->StartLogging(file, max_size_bytes); | 2319 return event_log_->StartLogging(file, max_size_bytes); |
| 2310 } | 2320 } |
| 2311 | 2321 |
| 2312 void PeerConnection::StopRtcEventLog_w() { | 2322 void PeerConnection::StopRtcEventLog_w() { |
| 2313 if (event_log_) { | 2323 if (event_log_) { |
| 2314 event_log_->StopLogging(); | 2324 event_log_->StopLogging(); |
| 2315 } | 2325 } |
| 2316 } | 2326 } |
| 2317 } // namespace webrtc | 2327 } // namespace webrtc |
| OLD | NEW |