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}
30 lines
1011 B
C++
30 lines
1011 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.
|
|
*/
|
|
|
|
#ifndef MODULES_CONGESTION_CONTROLLER_BBR_BBR_FACTORY_H_
|
|
#define MODULES_CONGESTION_CONTROLLER_BBR_BBR_FACTORY_H_
|
|
|
|
#include <memory>
|
|
|
|
#include "modules/congestion_controller/network_control/include/network_control.h"
|
|
|
|
namespace webrtc {
|
|
|
|
class BbrNetworkControllerFactory : public NetworkControllerFactoryInterface {
|
|
public:
|
|
BbrNetworkControllerFactory();
|
|
std::unique_ptr<NetworkControllerInterface> Create(
|
|
NetworkControllerConfig config) override;
|
|
TimeDelta GetProcessInterval() const override;
|
|
};
|
|
} // namespace webrtc
|
|
|
|
#endif // MODULES_CONGESTION_CONTROLLER_BBR_BBR_FACTORY_H_
|