Home | History | Annotate | Download | only in base

Lines Matching refs:Task

60     if (event.task) {
61 event.task->Run();
62 delete event.task;
66 // Adds an event to the queue. When "handled", executes |task|.
68 void AddEvent(int delay_ms, Task* task) {
76 EventInjector::Event event = { future, task };
90 Task* task;
127 // Does nothing. This function can be called from a task.
145 // Returns a new task that quits the main loop.
146 Task* NewQuitTask() {
150 // Posts a task on the current message loop.
152 Task* task) {
153 MessageLoop::current()->PostTask(from_here, task);
195 // Quit from a task
209 // the posted task queue is empty.
216 Task* check_task = NewRunnableFunction(ExpectProcessedEvents, injector(), 2);
217 Task* posted_task = NewRunnableFunction(PostMessageLoopTask,
277 // After all the events have been processed, post a task that will check that
278 // the events have been processed (note: the task executes after the event
280 Task* check_task = NewRunnableFunction(ExpectProcessedEvents, injector(), 11);
281 Task* posted_task = NewRunnableFunction(PostMessageLoopTask,
349 // We use the helper class above. We keep both event and posted task queues