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

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

Issue 1541633002: Reland "Added option to specify a maximum file size when recording an AEC dump." (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Fix to prevent Chrome from breaking. Created 5 years 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
« no previous file with comments | « talk/app/webrtc/peerconnectionfactory.h ('k') | talk/app/webrtc/peerconnectionfactoryproxy.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 rtc::scoped_refptr<VideoSourceInterface> 225 rtc::scoped_refptr<VideoSourceInterface>
226 PeerConnectionFactory::CreateVideoSource( 226 PeerConnectionFactory::CreateVideoSource(
227 cricket::VideoCapturer* capturer, 227 cricket::VideoCapturer* capturer,
228 const MediaConstraintsInterface* constraints) { 228 const MediaConstraintsInterface* constraints) {
229 RTC_DCHECK(signaling_thread_->IsCurrent()); 229 RTC_DCHECK(signaling_thread_->IsCurrent());
230 rtc::scoped_refptr<VideoSource> source(VideoSource::Create( 230 rtc::scoped_refptr<VideoSource> source(VideoSource::Create(
231 channel_manager_.get(), capturer, constraints, false)); 231 channel_manager_.get(), capturer, constraints, false));
232 return VideoSourceProxy::Create(signaling_thread_, source); 232 return VideoSourceProxy::Create(signaling_thread_, source);
233 } 233 }
234 234
235 bool PeerConnectionFactory::StartAecDump(rtc::PlatformFile file) { 235 bool PeerConnectionFactory::StartAecDump(rtc::PlatformFile file,
236 int64_t max_size_bytes) {
236 RTC_DCHECK(signaling_thread_->IsCurrent()); 237 RTC_DCHECK(signaling_thread_->IsCurrent());
237 return channel_manager_->StartAecDump(file); 238 return channel_manager_->StartAecDump(file, max_size_bytes);
238 } 239 }
239 240
240 void PeerConnectionFactory::StopAecDump() { 241 void PeerConnectionFactory::StopAecDump() {
241 RTC_DCHECK(signaling_thread_->IsCurrent()); 242 RTC_DCHECK(signaling_thread_->IsCurrent());
242 channel_manager_->StopAecDump(); 243 channel_manager_->StopAecDump();
243 } 244 }
244 245
245 bool PeerConnectionFactory::StartRtcEventLog(rtc::PlatformFile file) { 246 bool PeerConnectionFactory::StartRtcEventLog(rtc::PlatformFile file) {
246 RTC_DCHECK(signaling_thread_->IsCurrent()); 247 RTC_DCHECK(signaling_thread_->IsCurrent());
247 return channel_manager_->StartRtcEventLog(file); 248 return channel_manager_->StartRtcEventLog(file);
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
360 } 361 }
361 362
362 cricket::MediaEngineInterface* PeerConnectionFactory::CreateMediaEngine_w() { 363 cricket::MediaEngineInterface* PeerConnectionFactory::CreateMediaEngine_w() {
363 ASSERT(worker_thread_ == rtc::Thread::Current()); 364 ASSERT(worker_thread_ == rtc::Thread::Current());
364 return cricket::WebRtcMediaEngineFactory::Create( 365 return cricket::WebRtcMediaEngineFactory::Create(
365 default_adm_.get(), video_encoder_factory_.get(), 366 default_adm_.get(), video_encoder_factory_.get(),
366 video_decoder_factory_.get()); 367 video_decoder_factory_.get());
367 } 368 }
368 369
369 } // namespace webrtc 370 } // namespace webrtc
OLDNEW
« no previous file with comments | « talk/app/webrtc/peerconnectionfactory.h ('k') | talk/app/webrtc/peerconnectionfactoryproxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698