Lines Matching refs:Task
18 #include "base/task.h"
42 // Events include at a minimum Task instances submitted to PostTask or those
51 // NOTE: MessageLoop has task reentrancy protection. This means that if a
52 // task is being processed, a second task cannot start until the first task is
53 // finished. Reentrancy can happen when processing a task, and an inner
55 // which could implicitly start an inner task. Inner message pumps are created
59 // Sample workaround when inner task processing is needed:
66 // Please be SURE your task is reentrant (nestable) and all global variables
137 // The "PostTask" family of methods call the task's Run method asynchronously
145 // dispatch the task from a nested invocation of MessageLoop::Run. Instead,
148 // The MessageLoop takes ownership of the Task, and deletes it after it has
151 // NOTE: These methods may be called on any thread. The Task will be invoked
155 const tracked_objects::Location& from_here, Task* task);
158 const tracked_objects::Location& from_here, Task* task, int64 delay_ms);
161 const tracked_objects::Location& from_here, Task* task);
164 const tracked_objects::Location& from_here, Task* task, int64 delay_ms);
220 class QuitTask : public Task {
237 // Enables or disables the recursive task processing. This happens in the case
239 // using common controls or printer functions. By default, recursive task
244 // - It receives a task #1 and execute it.
245 // - The task #1 implicitly start a message loop, like a MessageBox in the
247 // - The thread receives a task #2 before or while in this second message
249 // - With NestableTasksAllowed set to true, the task #2 will run right away.
250 // Otherwise, it will get executed right after task #1 completes at "thread
283 // A TaskObserver is an object that receives task notifications from the
291 // This method is called before processing a task.
292 virtual void WillProcessTask(const Task* task) = 0;
294 // This method is called after processing a task.
295 virtual void DidProcessTask(const Task* task) = 0;
359 PendingTask(Task* task, bool nestable)
360 : task(task), sequence_num(0), nestable(nestable) {
366 Task* task; // The task to run.
367 base::TimeTicks delayed_run_time; // The time when the task should be run.
409 // Runs the specified task and deletes it.
410 void RunTask(Task* task);
412 // Calls RunTask or queues the pending_task on the deferred task list if it
413 // cannot be run right now. Returns true if the task was run.
416 // Adds the pending task to delayed_work_queue_.
425 // destructor to make sure all the task's destructors get called. Returns
429 // Post a task to our incomming queue.
430 void PostTask_Helper(const tracked_objects::Location& from_here, Task* task,