| OLD | NEW | 
|---|
| 1 /* | 1 /* | 
| 2  *  Copyright 2004 The WebRTC project authors. All Rights Reserved. | 2  *  Copyright 2004 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 315 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 326 | 326 | 
| 327 rtc::Thread* PeerConnectionFactory::worker_thread() { | 327 rtc::Thread* PeerConnectionFactory::worker_thread() { | 
| 328   return worker_thread_; | 328   return worker_thread_; | 
| 329 } | 329 } | 
| 330 | 330 | 
| 331 rtc::Thread* PeerConnectionFactory::network_thread() { | 331 rtc::Thread* PeerConnectionFactory::network_thread() { | 
| 332   return network_thread_; | 332   return network_thread_; | 
| 333 } | 333 } | 
| 334 | 334 | 
| 335 std::unique_ptr<RtcEventLog> PeerConnectionFactory::CreateRtcEventLog_w() { | 335 std::unique_ptr<RtcEventLog> PeerConnectionFactory::CreateRtcEventLog_w() { | 
|  | 336   RTC_DCHECK_RUN_ON(worker_thread_); | 
| 336   return event_log_factory_ ? event_log_factory_->CreateRtcEventLog() | 337   return event_log_factory_ ? event_log_factory_->CreateRtcEventLog() | 
| 337                             : rtc::MakeUnique<RtcEventLogNullImpl>(); | 338                             : rtc::MakeUnique<RtcEventLogNullImpl>(); | 
| 338 } | 339 } | 
| 339 | 340 | 
| 340 std::unique_ptr<Call> PeerConnectionFactory::CreateCall_w( | 341 std::unique_ptr<Call> PeerConnectionFactory::CreateCall_w( | 
| 341     RtcEventLog* event_log) { | 342     RtcEventLog* event_log) { | 
|  | 343   RTC_DCHECK_RUN_ON(worker_thread_); | 
|  | 344 | 
| 342   const int kMinBandwidthBps = 30000; | 345   const int kMinBandwidthBps = 30000; | 
| 343   const int kStartBandwidthBps = 300000; | 346   const int kStartBandwidthBps = 300000; | 
| 344   const int kMaxBandwidthBps = 2000000; | 347   const int kMaxBandwidthBps = 2000000; | 
| 345 | 348 | 
| 346   webrtc::Call::Config call_config(event_log); | 349   webrtc::Call::Config call_config(event_log); | 
| 347   if (!channel_manager_->media_engine() || !call_factory_) { | 350   if (!channel_manager_->media_engine() || !call_factory_) { | 
| 348     return nullptr; | 351     return nullptr; | 
| 349   } | 352   } | 
| 350   call_config.audio_state = channel_manager_->media_engine()->GetAudioState(); | 353   call_config.audio_state = channel_manager_->media_engine()->GetAudioState(); | 
| 351   call_config.bitrate_config.min_bitrate_bps = kMinBandwidthBps; | 354   call_config.bitrate_config.min_bitrate_bps = kMinBandwidthBps; | 
| 352   call_config.bitrate_config.start_bitrate_bps = kStartBandwidthBps; | 355   call_config.bitrate_config.start_bitrate_bps = kStartBandwidthBps; | 
| 353   call_config.bitrate_config.max_bitrate_bps = kMaxBandwidthBps; | 356   call_config.bitrate_config.max_bitrate_bps = kMaxBandwidthBps; | 
| 354 | 357 | 
| 355   return std::unique_ptr<Call>(call_factory_->CreateCall(call_config)); | 358   return std::unique_ptr<Call>(call_factory_->CreateCall(call_config)); | 
| 356 } | 359 } | 
| 357 | 360 | 
| 358 }  // namespace webrtc | 361 }  // namespace webrtc | 
| OLD | NEW | 
|---|