#include "base/task/sequence_manager/wake_up_queue.h"
#include <optional>
#include "base/task/sequence_manager/associated_thread_id.h"
#include "base/task/sequence_manager/sequence_manager_impl.h"
#include "base/task/sequence_manager/task_queue_impl.h"
#include "base/threading/thread_checker.h"
namespace base {
namespace sequence_manager {
namespace internal {
WakeUpQueue::WakeUpQueue(
scoped_refptr<const internal::AssociatedThreadId> associated_thread)
: … { … }
WakeUpQueue::~WakeUpQueue() { … }
void WakeUpQueue::RemoveAllCanceledDelayedTasksFromFront(LazyNow* lazy_now) { … }
void WakeUpQueue::SetNextWakeUpForQueue(internal::TaskQueueImpl* queue,
LazyNow* lazy_now,
std::optional<WakeUp> wake_up) { … }
void WakeUpQueue::MoveReadyDelayedTasksToWorkQueues(
LazyNow* lazy_now,
EnqueueOrder enqueue_order) { … }
std::optional<WakeUp> WakeUpQueue::GetNextDelayedWakeUp() const { … }
Value::Dict WakeUpQueue::AsValue(TimeTicks now) const { … }
DefaultWakeUpQueue::DefaultWakeUpQueue(
scoped_refptr<internal::AssociatedThreadId> associated_thread,
internal::SequenceManagerImpl* sequence_manager)
: … { … }
DefaultWakeUpQueue::~DefaultWakeUpQueue() = default;
void DefaultWakeUpQueue::OnNextWakeUpChanged(LazyNow* lazy_now,
std::optional<WakeUp> wake_up) { … }
void DefaultWakeUpQueue::UnregisterQueue(internal::TaskQueueImpl* queue) { … }
const char* DefaultWakeUpQueue::GetName() const { … }
NonWakingWakeUpQueue::NonWakingWakeUpQueue(
scoped_refptr<internal::AssociatedThreadId> associated_thread)
: … { … }
NonWakingWakeUpQueue::~NonWakingWakeUpQueue() = default;
void NonWakingWakeUpQueue::OnNextWakeUpChanged(LazyNow* lazy_now,
std::optional<WakeUp> wake_up) { … }
const char* NonWakingWakeUpQueue::GetName() const { … }
void NonWakingWakeUpQueue::UnregisterQueue(internal::TaskQueueImpl* queue) { … }
}
}
}