Home | History | Annotate | Download | only in base

Lines Matching refs:Task

57     if (event.task) {
58 event.task->Run();
59 delete event.task;
63 // Adds an event to the queue. When "handled", executes |task|.
65 void AddEvent(int delay_ms, Task* task) {
73 EventInjector::Event event = { future, task };
87 Task* task;
124 // Does nothing. This function can be called from a task.
142 // Returns a new task that quits the main loop.
143 Task* NewQuitTask() {
147 // Posts a task on the current message loop.
149 Task* task) {
150 MessageLoop::current()->PostTask(from_here, task);
187 // Quit from a task
201 // the posted task queue is empty.
208 Task* check_task = NewRunnableFunction(ExpectProcessedEvents, injector(), 2);
209 Task* posted_task = NewRunnableFunction(PostMessageLoopTask,
269 // After all the events have been processed, post a task that will check that
270 // the events have been processed (note: the task executes after the event
272 Task* check_task = NewRunnableFunction(ExpectProcessedEvents, injector(), 11);
273 Task* posted_task = NewRunnableFunction(PostMessageLoopTask,
341 // We use the helper class above. We keep both event and posted task queues