Paulina Hensman | 11b34f4 | 2018-04-09 12:24:52 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2018 The WebRTC project authors. All Rights Reserved. |
| 3 | * |
| 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 |
| 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 | #ifndef CALL_CALL_CONFIG_H_ |
| 11 | #define CALL_CALL_CONFIG_H_ |
| 12 | |
| 13 | #include "api/fec_controller.h" |
Ivo Creusen | c3d1f9b | 2019-11-01 10:47:51 | [diff] [blame] | 14 | #include "api/neteq/neteq_factory.h" |
Ying Wang | 0810a7c | 2019-04-10 11:48:24 | [diff] [blame] | 15 | #include "api/network_state_predictor.h" |
Steve Anton | 10542f2 | 2019-01-11 17:11:00 | [diff] [blame] | 16 | #include "api/rtc_error.h" |
Danil Chapovalov | 359fe33 | 2019-04-01 08:46:36 | [diff] [blame] | 17 | #include "api/task_queue/task_queue_factory.h" |
Mirko Bonadei | 738bfa7 | 2019-09-17 12:47:38 | [diff] [blame] | 18 | #include "api/transport/bitrate_settings.h" |
Sebastian Jansson | dfce03a | 2018-05-18 16:05:10 | [diff] [blame] | 19 | #include "api/transport/network_control.h" |
Erik Språng | 662678d | 2019-11-15 16:18:52 | [diff] [blame] | 20 | #include "api/transport/webrtc_key_value_config.h" |
Paulina Hensman | 11b34f4 | 2018-04-09 12:24:52 | [diff] [blame] | 21 | #include "call/audio_state.h" |
Paulina Hensman | 11b34f4 | 2018-04-09 12:24:52 | [diff] [blame] | 22 | |
| 23 | namespace webrtc { |
| 24 | |
| 25 | class AudioProcessing; |
| 26 | class RtcEventLog; |
| 27 | |
| 28 | struct CallConfig { |
| 29 | explicit CallConfig(RtcEventLog* event_log); |
Mirko Bonadei | 8fdcac3 | 2018-08-28 14:30:18 | [diff] [blame] | 30 | CallConfig(const CallConfig&); |
Paulina Hensman | 11b34f4 | 2018-04-09 12:24:52 | [diff] [blame] | 31 | ~CallConfig(); |
| 32 | |
Paulina Hensman | 11b34f4 | 2018-04-09 12:24:52 | [diff] [blame] | 33 | // Bitrate config used until valid bitrate estimates are calculated. Also |
| 34 | // used to cap total bitrate used. This comes from the remote connection. |
| 35 | BitrateConstraints bitrate_config; |
| 36 | |
| 37 | // AudioState which is possibly shared between multiple calls. |
Paulina Hensman | 11b34f4 | 2018-04-09 12:24:52 | [diff] [blame] | 38 | rtc::scoped_refptr<AudioState> audio_state; |
| 39 | |
| 40 | // Audio Processing Module to be used in this call. |
Paulina Hensman | 11b34f4 | 2018-04-09 12:24:52 | [diff] [blame] | 41 | AudioProcessing* audio_processing = nullptr; |
| 42 | |
| 43 | // RtcEventLog to use for this call. Required. |
| 44 | // Use webrtc::RtcEventLog::CreateNull() for a null implementation. |
| 45 | RtcEventLog* event_log = nullptr; |
| 46 | |
| 47 | // FecController to use for this call. |
| 48 | FecControllerFactoryInterface* fec_controller_factory = nullptr; |
Sebastian Jansson | dfce03a | 2018-05-18 16:05:10 | [diff] [blame] | 49 | |
Danil Chapovalov | 53d45ba | 2019-07-03 12:56:33 | [diff] [blame] | 50 | // Task Queue Factory to be used in this call. Required. |
Danil Chapovalov | 359fe33 | 2019-04-01 08:46:36 | [diff] [blame] | 51 | TaskQueueFactory* task_queue_factory = nullptr; |
| 52 | |
Ying Wang | 0810a7c | 2019-04-10 11:48:24 | [diff] [blame] | 53 | // NetworkStatePredictor to use for this call. |
| 54 | NetworkStatePredictorFactoryInterface* network_state_predictor_factory = |
| 55 | nullptr; |
| 56 | |
Sebastian Jansson | dfce03a | 2018-05-18 16:05:10 | [diff] [blame] | 57 | // Network controller factory to use for this call. |
| 58 | NetworkControllerFactoryInterface* network_controller_factory = nullptr; |
Ivo Creusen | c3d1f9b | 2019-11-01 10:47:51 | [diff] [blame] | 59 | |
| 60 | // NetEq factory to use for this call. |
| 61 | NetEqFactory* neteq_factory = nullptr; |
Erik Språng | 662678d | 2019-11-15 16:18:52 | [diff] [blame] | 62 | |
| 63 | // Key-value mapping of internal configurations to apply, |
| 64 | // e.g. field trials. |
| 65 | const WebRtcKeyValueConfig* trials = nullptr; |
Paulina Hensman | 11b34f4 | 2018-04-09 12:24:52 | [diff] [blame] | 66 | }; |
| 67 | |
| 68 | } // namespace webrtc |
| 69 | |
| 70 | #endif // CALL_CALL_CONFIG_H_ |