#include "components/reporting/util/rate_limiter_token_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 {
RateLimiterTokenBucket::RateLimiterTokenBucket(size_t max_level,
base::TimeDelta filling_time,
base::TimeDelta filling_period)
: … { … }
RateLimiterTokenBucket::~RateLimiterTokenBucket() { … }
bool RateLimiterTokenBucket::Acquire(size_t event_size) { … }
void RateLimiterTokenBucket::NextFill() { … }
void RateLimiterTokenBucket::ScheduleNextFill() { … }
}