Moving the responsibility for calling callbacks from implementations of NetworkControllerInterface to SendSideCongestionController. This decreases the coupling and makes the callbacks more explicit. Bug: webrtc:8415 Change-Id: Ie75effbde01533106080bb6c40308b0c20064c45 Reviewed-on: https://webrtc-review.googlesource.com/66882 Commit-Queue: Sebastian Jansson <srte@webrtc.org> Reviewed-by: Niels Moller <nisse@webrtc.org> Cr-Commit-Position: refs/heads/master@{#22793}
31 lines
990 B
C++
31 lines
990 B
C++
/*
|
|
* Copyright (c) 2018 The WebRTC project authors. All Rights Reserved.
|
|
*
|
|
* Use of this source code is governed by a BSD-style license
|
|
* that can be found in the LICENSE file in the root of the source
|
|
* tree. An additional intellectual property rights grant can be found
|
|
* in the file PATENTS. All contributing project authors may
|
|
* be found in the AUTHORS file in the root of the source tree.
|
|
*/
|
|
|
|
#include "modules/congestion_controller/bbr/bbr_factory.h"
|
|
#include <memory>
|
|
|
|
#include "modules/congestion_controller/bbr/bbr_network_controller.h"
|
|
#include "rtc_base/ptr_util.h"
|
|
|
|
namespace webrtc {
|
|
|
|
BbrNetworkControllerFactory::BbrNetworkControllerFactory() {}
|
|
|
|
std::unique_ptr<NetworkControllerInterface> BbrNetworkControllerFactory::Create(
|
|
NetworkControllerConfig config) {
|
|
return rtc::MakeUnique<bbr::BbrNetworkController>(config);
|
|
}
|
|
|
|
TimeDelta BbrNetworkControllerFactory::GetProcessInterval() const {
|
|
return TimeDelta::PlusInfinity();
|
|
}
|
|
|
|
} // namespace webrtc
|