#include "modules/congestion_controller/goog_cc/alr_detector.h"
#include <cstdint>
#include <cstdio>
#include <memory>
#include "absl/types/optional.h"
#include "api/field_trials_view.h"
#include "api/rtc_event_log/rtc_event_log.h"
#include "logging/rtc_event_log/events/rtc_event_alr_state.h"
#include "rtc_base/checks.h"
#include "rtc_base/experiments/alr_experiment.h"
#include "rtc_base/experiments/struct_parameters_parser.h"
#include "rtc_base/time_utils.h"
namespace webrtc {
namespace {
AlrDetectorConfig GetConfigFromTrials(const FieldTrialsView* key_value_config) { … }
}
std::unique_ptr<StructParametersParser> AlrDetectorConfig::Parser() { … }
AlrDetector::AlrDetector(AlrDetectorConfig config, RtcEventLog* event_log)
: … { … }
AlrDetector::AlrDetector(const FieldTrialsView* key_value_config)
: … { … }
AlrDetector::AlrDetector(const FieldTrialsView* key_value_config,
RtcEventLog* event_log)
: … { … }
AlrDetector::~AlrDetector() { … }
void AlrDetector::OnBytesSent(size_t bytes_sent, int64_t send_time_ms) { … }
void AlrDetector::SetEstimatedBitrate(int bitrate_bps) { … }
absl::optional<int64_t> AlrDetector::GetApplicationLimitedRegionStartTime()
const { … }
}