#include "components/reporting/util/rate_limiter_leaky_bucket.h"
#include <cmath>
#include <cstddef>
#include "base/check.h"
#include "base/memory/weak_ptr.h"
#include "base/sequence_checker.h"
#include "base/task/sequenced_task_runner.h"
#include "base/time/time.h"
namespace reporting {
RateLimiterLeakyBucket::RateLimiterLeakyBucket(size_t max_level,
base::TimeDelta filling_time,
base::TimeDelta filling_period)
: … { … }
RateLimiterLeakyBucket::~RateLimiterLeakyBucket() { … }
bool RateLimiterLeakyBucket::Acquire(size_t event_size) { … }
void RateLimiterLeakyBucket::NextFill() { … }
void RateLimiterLeakyBucket::ScheduleNextFill() { … }
}