Lines Matching refs:pending_task

467   PendingTask pending_task =  in ProcessNextDelayedNonNestableTask()  local
471 RunTask(pending_task); in ProcessNextDelayedNonNestableTask()
475 void MessageLoop::RunTask(const PendingTask& pending_task) { in RunTask() argument
479 if (pending_task.is_high_res) { in RunTask()
490 TRACE_TASK_EXECUTION("MessageLoop::RunTask", pending_task); in RunTask()
493 WillProcessTask(pending_task)); in RunTask()
494 task_annotator_.RunTask("MessageLoop::PostTask", pending_task); in RunTask()
496 DidProcessTask(pending_task)); in RunTask()
501 bool MessageLoop::DeferOrRunPendingTask(PendingTask pending_task) { in DeferOrRunPendingTask() argument
502 if (pending_task.nestable || run_loop_->run_depth_ == 1) { in DeferOrRunPendingTask()
503 RunTask(pending_task); in DeferOrRunPendingTask()
511 deferred_non_nestable_work_queue_.push(std::move(pending_task)); in DeferOrRunPendingTask()
515 void MessageLoop::AddToDelayedWorkQueue(PendingTask pending_task) { in AddToDelayedWorkQueue() argument
517 delayed_work_queue_.push(std::move(pending_task)); in AddToDelayedWorkQueue()
523 PendingTask pending_task = std::move(work_queue_.front()); in DeletePendingTasks() local
525 if (!pending_task.delayed_run_time.is_null()) { in DeletePendingTasks()
529 AddToDelayedWorkQueue(std::move(pending_task)); in DeletePendingTasks()
617 PendingTask pending_task = std::move(work_queue_.front()); in DoWork() local
619 if (!pending_task.delayed_run_time.is_null()) { in DoWork()
620 int sequence_num = pending_task.sequence_num; in DoWork()
621 TimeTicks delayed_run_time = pending_task.delayed_run_time; in DoWork()
622 AddToDelayedWorkQueue(std::move(pending_task)); in DoWork()
627 if (DeferOrRunPendingTask(std::move(pending_task))) in DoWork()
659 PendingTask pending_task = in DoDelayedWork() local
666 return DeferOrRunPendingTask(std::move(pending_task)); in DoDelayedWork()