| 6 | * tree. An additional intellectual property rights grant can be found |
| 7 | * in the file PATENTS. All contributing project authors may |
| 8 | * be found in the AUTHORS file in the root of the source tree. |
| 9 | */ |
| 10 |
| 11 | #include "call/call_config.h" |
| 12 |
| 13 | #include "rtc_base/checks.h" |
| 14 |
| 15 | namespace webrtc { |
| 16 |
| 17 | CallConfig::CallConfig(RtcEventLog* event_log, |
| 18 | TaskQueueBase* network_task_queue /* = nullptr*/) |
| 19 | : event_log(event_log), network_task_queue_(network_task_queue) { |
| 20 | RTC_DCHECK(event_log); |
| 21 | } |
| 22 |
| 23 | CallConfig::CallConfig(const CallConfig& config) = default; |
| 24 |
| 25 | RtpTransportConfig CallConfig::ExtractTransportConfig() const { |
| 26 | RtpTransportConfig transportConfig; |
| 27 | transportConfig.bitrate_config = bitrate_config; |
| 28 | transportConfig.event_log = event_log; |
| 29 | transportConfig.network_controller_factory = network_controller_factory; |
| 30 | transportConfig.network_state_predictor_factory = |
| 31 | network_state_predictor_factory; |
| 32 | transportConfig.task_queue_factory = task_queue_factory; |
| 33 | transportConfig.trials = trials; |
| 34 |
| 35 | return transportConfig; |
| 36 | } |
| 37 |
| 38 | CallConfig::~CallConfig() = default; |
| 39 |
| 40 | } // namespace webrtc |
| 41 |