OLD | NEW |
1 /* | 1 /* |
2 * libjingle | 2 * libjingle |
3 * Copyright 2004--2011 Google Inc. | 3 * Copyright 2004--2011 Google Inc. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions are met: | 6 * modification, are permitted provided that the following conditions are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright notice, | 8 * 1. Redistributions of source code must retain the above copyright notice, |
9 * this list of conditions and the following disclaimer. | 9 * this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright notice, | 10 * 2. Redistributions in binary form must reproduce the above copyright notice, |
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 rtc::scoped_refptr<VideoSource> source( | 211 rtc::scoped_refptr<VideoSource> source( |
212 VideoSource::Create(channel_manager_.get(), capturer, constraints)); | 212 VideoSource::Create(channel_manager_.get(), capturer, constraints)); |
213 return VideoSourceProxy::Create(signaling_thread_, source); | 213 return VideoSourceProxy::Create(signaling_thread_, source); |
214 } | 214 } |
215 | 215 |
216 bool PeerConnectionFactory::StartAecDump(rtc::PlatformFile file) { | 216 bool PeerConnectionFactory::StartAecDump(rtc::PlatformFile file) { |
217 RTC_DCHECK(signaling_thread_->IsCurrent()); | 217 RTC_DCHECK(signaling_thread_->IsCurrent()); |
218 return channel_manager_->StartAecDump(file); | 218 return channel_manager_->StartAecDump(file); |
219 } | 219 } |
220 | 220 |
| 221 bool PeerConnectionFactory::StartAecDump(rtc::PlatformFile file, |
| 222 int max_size_bytes) { |
| 223 RTC_DCHECK(signaling_thread_->IsCurrent()); |
| 224 return channel_manager_->StartAecDump(file, max_size_bytes); |
| 225 } |
| 226 |
221 bool PeerConnectionFactory::StartRtcEventLog(rtc::PlatformFile file) { | 227 bool PeerConnectionFactory::StartRtcEventLog(rtc::PlatformFile file) { |
222 RTC_DCHECK(signaling_thread_->IsCurrent()); | 228 RTC_DCHECK(signaling_thread_->IsCurrent()); |
223 return channel_manager_->StartRtcEventLog(file); | 229 return channel_manager_->StartRtcEventLog(file); |
224 } | 230 } |
225 | 231 |
226 void PeerConnectionFactory::StopRtcEventLog() { | 232 void PeerConnectionFactory::StopRtcEventLog() { |
227 RTC_DCHECK(signaling_thread_->IsCurrent()); | 233 RTC_DCHECK(signaling_thread_->IsCurrent()); |
228 channel_manager_->StopRtcEventLog(); | 234 channel_manager_->StopRtcEventLog(); |
229 } | 235 } |
230 | 236 |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
308 } | 314 } |
309 | 315 |
310 cricket::MediaEngineInterface* PeerConnectionFactory::CreateMediaEngine_w() { | 316 cricket::MediaEngineInterface* PeerConnectionFactory::CreateMediaEngine_w() { |
311 ASSERT(worker_thread_ == rtc::Thread::Current()); | 317 ASSERT(worker_thread_ == rtc::Thread::Current()); |
312 return cricket::WebRtcMediaEngineFactory::Create( | 318 return cricket::WebRtcMediaEngineFactory::Create( |
313 default_adm_.get(), video_encoder_factory_.get(), | 319 default_adm_.get(), video_encoder_factory_.get(), |
314 video_decoder_factory_.get()); | 320 video_decoder_factory_.get()); |
315 } | 321 } |
316 | 322 |
317 } // namespace webrtc | 323 } // namespace webrtc |
OLD | NEW |