#include "components/download/public/common/rate_estimator.h"
#include "base/check.h"
#include "base/time/time.h"
TimeTicks;
namespace download {
namespace {
static const int kDefaultBucketTimeSeconds = …;
static const size_t kDefaultNumBuckets = …;
}
RateEstimator::RateEstimator()
: … { … }
RateEstimator::RateEstimator(base::TimeDelta bucket_time,
size_t num_buckets,
TimeTicks now)
: … { … }
RateEstimator::~RateEstimator() { … }
void RateEstimator::Increment(uint32_t count) { … }
void RateEstimator::Increment(uint32_t count, TimeTicks now) { … }
uint64_t RateEstimator::GetCountPerSecond() const { … }
uint64_t RateEstimator::GetCountPerSecond(TimeTicks now) const { … }
void RateEstimator::ClearOldBuckets(TimeTicks now) { … }
void RateEstimator::ResetBuckets(TimeTicks now) { … }
}