Home | History | Annotate | Download | only in base

Lines Matching defs:pending_task

383 bool MessageLoop::DeferOrRunPendingTask(const PendingTask& pending_task) {
384 if (pending_task.nestable || state_->run_depth == 1) {
385 RunTask(pending_task.task);
393 deferred_non_nestable_work_queue_.push(pending_task);
397 void MessageLoop::AddToDelayedWorkQueue(const PendingTask& pending_task) {
402 PendingTask new_pending_task(pending_task);
428 PendingTask pending_task = work_queue_.front();
430 if (!pending_task.delayed_run_time.is_null()) {
434 AddToDelayedWorkQueue(pending_task);
440 delete pending_task.task;
443 delete pending_task.task;
477 PendingTask pending_task(task, nestable);
480 pending_task.delayed_run_time =
521 incoming_queue_.push(pending_task);
570 PendingTask pending_task = work_queue_.front();
572 if (!pending_task.delayed_run_time.is_null()) {
573 AddToDelayedWorkQueue(pending_task);
575 if (delayed_work_queue_.top().task == pending_task.task)
576 pump_->ScheduleDelayedWork(pending_task.delayed_run_time);
578 if (DeferOrRunPendingTask(pending_task))
610 PendingTask pending_task = delayed_work_queue_.top();
616 return DeferOrRunPendingTask(pending_task);