chromium/third_party/blink/renderer/platform/scheduler/common/task_priority.h

// Copyright 2023 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef THIRD_PARTY_BLINK_RENDERER_PLATFORM_SCHEDULER_COMMON_TASK_PRIORITY_H_
#define THIRD_PARTY_BLINK_RENDERER_PLATFORM_SCHEDULER_COMMON_TASK_PRIORITY_H_

#include "base/task/sequence_manager/sequence_manager.h"
#include "base/task/sequence_manager/task_queue.h"
#include "third_party/blink/renderer/platform/platform_export.h"

namespace blink::scheduler {

enum class TaskPriority : base::sequence_manager::TaskQueue::QueuePriority {};

base::sequence_manager::SequenceManager::PrioritySettings PLATFORM_EXPORT
CreatePrioritySettings();

const char* TaskPriorityToString(TaskPriority);

}  // namespace blink::scheduler

#endif  // THIRD_PARTY_BLINK_RENDERER_PLATFORM_SCHEDULER_COMMON_TASK_PRIORITY_H_