static void timeoutFired(
     PassRefPtr<IdleRequestCallbackWrapper> callbackWrapper) {
   if (ScriptedIdleTaskController* controller = callbackWrapper->controller())
     controller->callbackFired(callbackWrapper->id(),
                               monotonicallyIncreasingTime(),
                               IdleDeadline::CallbackType::CalledByTimeout);
   callbackWrapper->cancel();
 }
 static void idleTaskFired(
     PassRefPtr<IdleRequestCallbackWrapper> callbackWrapper,
     double deadlineSeconds) {
   // TODO(rmcilroy): Implement clamping of deadline in some form.
   if (ScriptedIdleTaskController* controller = callbackWrapper->controller())
     controller->callbackFired(callbackWrapper->id(), deadlineSeconds,
                               IdleDeadline::CallbackType::CalledWhenIdle);
   callbackWrapper->cancel();
 }
 static void timeoutFired(PassRefPtr<IdleRequestCallbackWrapper> callbackWrapper)
 {
     callbackWrapper->controller()->callbackFired(callbackWrapper->id(), monotonicallyIncreasingTime(), IdleDeadline::CallbackType::CalledByTimeout);
 }