#include "third_party/blink/renderer/platform/scheduler/common/scheduler_helper.h"
#include <utility>
#include "base/task/sequence_manager/sequence_manager_impl.h"
#include "base/task/sequence_manager/task_queue.h"
#include "base/task/single_thread_task_runner.h"
#include "base/time/default_tick_clock.h"
#include "base/trace_event/trace_event.h"
#include "base/trace_event/traced_value.h"
#include "third_party/blink/renderer/platform/scheduler/common/ukm_task_sampler.h"
namespace blink {
namespace scheduler {
SequenceManager;
TaskQueue;
TaskTimeObserver;
TimeDomain;
SchedulerHelper::SchedulerHelper(SequenceManager* sequence_manager)
: … { … }
void SchedulerHelper::InitDefaultTaskRunner(
scoped_refptr<base::SingleThreadTaskRunner> task_runner) { … }
void SchedulerHelper::AttachToCurrentThread() { … }
SchedulerHelper::~SchedulerHelper() { … }
void SchedulerHelper::Shutdown() { … }
void SchedulerHelper::SetWorkBatchSizeForTesting(int work_batch_size) { … }
bool SchedulerHelper::GetAndClearSystemIsQuiescentBit() { … }
void SchedulerHelper::AddTaskObserver(base::TaskObserver* task_observer) { … }
void SchedulerHelper::RemoveTaskObserver(base::TaskObserver* task_observer) { … }
void SchedulerHelper::AddTaskTimeObserver(
TaskTimeObserver* task_time_observer) { … }
void SchedulerHelper::RemoveTaskTimeObserver(
TaskTimeObserver* task_time_observer) { … }
void SchedulerHelper::SetObserver(Observer* observer) { … }
void SchedulerHelper::ReclaimMemory() { … }
std::optional<base::sequence_manager::WakeUp> SchedulerHelper::GetNextWakeUp()
const { … }
void SchedulerHelper::SetTimeDomain(
base::sequence_manager::TimeDomain* time_domain) { … }
void SchedulerHelper::ResetTimeDomain() { … }
void SchedulerHelper::OnBeginNestedRunLoop() { … }
void SchedulerHelper::OnExitNestedRunLoop() { … }
const base::TickClock* SchedulerHelper::GetClock() const { … }
base::TimeTicks SchedulerHelper::NowTicks() const { … }
bool SchedulerHelper::HasCPUTimingForEachTask() const { … }
}
}