#include "call/adaptation/broadcast_resource_listener.h"
#include <algorithm>
#include <string>
#include <utility>
#include "absl/strings/string_view.h"
#include "api/make_ref_counted.h"
#include "rtc_base/checks.h"
#include "rtc_base/synchronization/mutex.h"
namespace webrtc {
class BroadcastResourceListener::AdapterResource : public Resource { … };
BroadcastResourceListener::BroadcastResourceListener(
rtc::scoped_refptr<Resource> source_resource)
: … { … }
BroadcastResourceListener::~BroadcastResourceListener() { … }
rtc::scoped_refptr<Resource> BroadcastResourceListener::SourceResource() const { … }
void BroadcastResourceListener::StartListening() { … }
void BroadcastResourceListener::StopListening() { … }
rtc::scoped_refptr<Resource>
BroadcastResourceListener::CreateAdapterResource() { … }
void BroadcastResourceListener::RemoveAdapterResource(
rtc::scoped_refptr<Resource> resource) { … }
std::vector<rtc::scoped_refptr<Resource>>
BroadcastResourceListener::GetAdapterResources() { … }
void BroadcastResourceListener::OnResourceUsageStateMeasured(
rtc::scoped_refptr<Resource> resource,
ResourceUsageState usage_state) { … }
}