#include "base/task/sequence_manager/tasks.h"
#include "base/task/sequence_manager/task_order.h"
namespace base {
namespace sequence_manager {
Task::Task(internal::PostedTask posted_task,
EnqueueOrder sequence_order,
EnqueueOrder enqueue_order,
TimeTicks queue_time,
WakeUpResolution resolution,
TimeDelta leeway)
: … { … }
Task::Task(Task&& move_from) = default;
Task::~Task() = default;
Task& Task::operator=(Task&& other) = default;
TaskOrder Task::task_order() const { … }
void Task::SetHeapHandle(HeapHandle heap_handle) { … }
void Task::ClearHeapHandle() { … }
HeapHandle Task::GetHeapHandle() const { … }
bool Task::IsCanceled() const { … }
bool Task::WillRunTask() { … }
TimeTicks WakeUp::earliest_time() const { … }
TimeTicks WakeUp::latest_time() const { … }
namespace internal {
PostedTask::PostedTask(
scoped_refptr<SequencedTaskRunner> task_runner,
OnceClosure callback,
Location location,
TimeDelta delay,
Nestable nestable,
TaskType task_type,
WeakPtr<DelayedTaskHandleDelegate> delayed_task_handle_delegate)
: … { … }
PostedTask::PostedTask(
scoped_refptr<SequencedTaskRunner> task_runner,
OnceClosure callback,
Location location,
TimeTicks delayed_run_time,
subtle::DelayPolicy delay_policy,
Nestable nestable,
TaskType task_type,
WeakPtr<DelayedTaskHandleDelegate> delayed_task_handle_delegate)
: … { … }
PostedTask::PostedTask(PostedTask&& move_from) noexcept = default;
PostedTask::~PostedTask() = default;
}
}
}