#include "components/reporting/util/wrapped_rate_limiter.h"
#include "base/memory/ptr_util.h"
#include "base/memory/weak_ptr.h"
#include "base/metrics/histogram_functions.h"
#include "base/sequence_checker.h"
#include "base/task/bind_post_task.h"
#include "base/task/sequenced_task_runner.h"
#include "base/task/task_traits.h"
#include "base/task/thread_pool.h"
#include "base/threading/sequence_bound.h"
#include "components/reporting/util/rate_limiter_interface.h"
namespace reporting {
WrappedRateLimiter::SmartPtr WrappedRateLimiter::Create(
std::unique_ptr<RateLimiterInterface> rate_limiter) { … }
WrappedRateLimiter::~WrappedRateLimiter() { … }
bool WrappedRateLimiter::Acquire(base::WeakPtr<WrappedRateLimiter> self,
size_t event_size) { … }
void WrappedRateLimiter::AsyncAcquire(base::WeakPtr<WrappedRateLimiter> self,
size_t event_size,
base::OnceCallback<void(bool)> cb) { … }
WrappedRateLimiter::AsyncAcquireCb WrappedRateLimiter::async_acquire_cb()
const { … }
WrappedRateLimiter::WrappedRateLimiter(
scoped_refptr<base::SequencedTaskRunner> sequenced_task_runner,
std::unique_ptr<RateLimiterInterface> rate_limiter)
: … { … }
}