#include "base/task/sequence_manager/task_order.h"
#include <functional>
#include "base/task/sequence_manager/enqueue_order.h"
#include "base/task/sequence_manager/tasks.h"
namespace base {
namespace sequence_manager {
namespace {
template <typename Comparator>
static bool Compare(const base::sequence_manager::TaskOrder& task_order1,
const base::sequence_manager::TaskOrder& task_order2) { … }
}
TaskOrder TaskOrder::CreateForTesting(EnqueueOrder enqueue_order,
TimeTicks delayed_run_time,
int sequence_num) { … }
TaskOrder TaskOrder::CreateForTesting(EnqueueOrder enqueue_order) { … }
TaskOrder::TaskOrder(EnqueueOrder enqueue_order,
TimeTicks delayed_run_time,
int sequence_num)
: … { … }
TaskOrder::TaskOrder(const TaskOrder& other) = default;
TaskOrder& TaskOrder::operator=(const TaskOrder& other) = default;
TaskOrder::~TaskOrder() = default;
bool TaskOrder::operator>(const TaskOrder& other) const { … }
bool TaskOrder::operator<(const TaskOrder& other) const { … }
bool TaskOrder::operator<=(const TaskOrder& other) const { … }
bool TaskOrder::operator>=(const TaskOrder& other) const { … }
bool TaskOrder::operator==(const TaskOrder& other) const { … }
bool TaskOrder::operator!=(const TaskOrder& other) const { … }
}
}