Adds WebRtcKeyValueConfig interface

The WebRtcKeyValueConfig interface allows providing custom key value
configurations that changes per instance of GoogCcNetworkController.

Bug: webrtc:10009
Change-Id: I520fff030d1c3c755455ec8f67896fe8a6b4d970
Reviewed-on: https://webrtc-review.googlesource.com/c/116989
Commit-Queue: Sebastian Jansson <srte@webrtc.org>
Reviewed-by: Per Kjellander <perkj@webrtc.org>
Reviewed-by: Björn Terelius <terelius@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#26312}
This commit is contained in:
Sebastian Jansson
2019-01-17 16:24:12 +01:00
committed by Commit Bot
parent 80b95de765
commit 95edb037a4
33 changed files with 314 additions and 130 deletions

View File

@ -18,6 +18,7 @@
#include "absl/types/optional.h"
#include "api/transport/network_control.h"
#include "api/transport/webrtc_key_value_config.h"
#include "rtc_base/constructor_magic.h"
#include "rtc_base/system/unused.h"
@ -30,7 +31,7 @@ class Clock;
// bitrate is adjusted by an application.
class ProbeController {
public:
ProbeController();
explicit ProbeController(const WebRtcKeyValueConfig* key_value_config);
~ProbeController();
RTC_WARN_UNUSED_RESULT std::vector<ProbeClusterConfig> SetBitrates(