#include "components/reporting/util/rate_limiter_slide_window.h"
#include <cstddef>
#include <utility>
#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 {
RateLimiterSlideWindow::RateLimiterSlideWindow(size_t total_size,
base::TimeDelta time_window,
size_t bucket_count)
: … { … }
RateLimiterSlideWindow::~RateLimiterSlideWindow() { … }
void RateLimiterSlideWindow::TrimBuckets(base::Time now) { … }
void RateLimiterSlideWindow::BucketsShift() { … }
bool RateLimiterSlideWindow::Acquire(size_t event_size) { … }
}