#include "chrome/browser/ui/views/web_apps/isolated_web_apps/callback_delayer.h"
#include <memory>
#include "base/functional/bind.h"
#include "base/functional/callback.h"
#include "base/time/time.h"
#include "base/timer/elapsed_timer.h"
namespace web_app {
namespace {
constexpr int kRefreshRateHz = …;
}
class Stopwatch { … };
CallbackDelayer::CallbackDelayer(
base::TimeDelta duration,
double progress_pause_percentage,
base::RepeatingCallback<void(double)> progress_callback)
: … { … }
CallbackDelayer::~CallbackDelayer() = default;
void CallbackDelayer::StartTimer() { … }
void CallbackDelayer::OnTimerTick() { … }
}