Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(36)

Side by Side Diff: talk/app/webrtc/peerconnectionfactory.cc

Issue 1374253002: Added functions on libjingle API to start and stop the recording of an RtcEventLog. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Addressed comments from the sun. Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 rtc::scoped_refptr<VideoSource> source( 210 rtc::scoped_refptr<VideoSource> source(
211 VideoSource::Create(channel_manager_.get(), capturer, constraints)); 211 VideoSource::Create(channel_manager_.get(), capturer, constraints));
212 return VideoSourceProxy::Create(signaling_thread_, source); 212 return VideoSourceProxy::Create(signaling_thread_, source);
213 } 213 }
214 214
215 bool PeerConnectionFactory::StartAecDump(rtc::PlatformFile file) { 215 bool PeerConnectionFactory::StartAecDump(rtc::PlatformFile file) {
216 RTC_DCHECK(signaling_thread_->IsCurrent()); 216 RTC_DCHECK(signaling_thread_->IsCurrent());
217 return channel_manager_->StartAecDump(file); 217 return channel_manager_->StartAecDump(file);
218 } 218 }
219 219
220 bool PeerConnectionFactory::StartRtcEventLog(rtc::PlatformFile file) {
221 RTC_DCHECK(signaling_thread_->IsCurrent());
222 return channel_manager_->StartRtcEventLog(file);
223 }
224
225 void PeerConnectionFactory::StopRtcEventLog() {
226 RTC_DCHECK(signaling_thread_->IsCurrent());
227 channel_manager_->StopRtcEventLog();
228 }
229
220 rtc::scoped_refptr<PeerConnectionInterface> 230 rtc::scoped_refptr<PeerConnectionInterface>
221 PeerConnectionFactory::CreatePeerConnection( 231 PeerConnectionFactory::CreatePeerConnection(
222 const PeerConnectionInterface::RTCConfiguration& configuration, 232 const PeerConnectionInterface::RTCConfiguration& configuration,
223 const MediaConstraintsInterface* constraints, 233 const MediaConstraintsInterface* constraints,
224 PortAllocatorFactoryInterface* allocator_factory, 234 PortAllocatorFactoryInterface* allocator_factory,
225 rtc::scoped_ptr<DtlsIdentityStoreInterface> dtls_identity_store, 235 rtc::scoped_ptr<DtlsIdentityStoreInterface> dtls_identity_store,
226 PeerConnectionObserver* observer) { 236 PeerConnectionObserver* observer) {
227 RTC_DCHECK(signaling_thread_->IsCurrent()); 237 RTC_DCHECK(signaling_thread_->IsCurrent());
228 RTC_DCHECK(allocator_factory || default_allocator_factory_); 238 RTC_DCHECK(allocator_factory || default_allocator_factory_);
229 239
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 } 305 }
296 306
297 cricket::MediaEngineInterface* PeerConnectionFactory::CreateMediaEngine_w() { 307 cricket::MediaEngineInterface* PeerConnectionFactory::CreateMediaEngine_w() {
298 ASSERT(worker_thread_ == rtc::Thread::Current()); 308 ASSERT(worker_thread_ == rtc::Thread::Current());
299 return cricket::WebRtcMediaEngineFactory::Create( 309 return cricket::WebRtcMediaEngineFactory::Create(
300 default_adm_.get(), video_encoder_factory_.get(), 310 default_adm_.get(), video_encoder_factory_.get(),
301 video_decoder_factory_.get()); 311 video_decoder_factory_.get());
302 } 312 }
303 313
304 } // namespace webrtc 314 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698