#include "third_party/blink/renderer/platform/scheduler/main_thread/main_thread_impl.h"
#include "base/location.h"
#include "base/task/sequence_manager/task_queue.h"
#include "base/task/single_thread_task_runner.h"
#include "third_party/blink/renderer/platform/scheduler/main_thread/main_thread_scheduler_impl.h"
namespace blink {
namespace scheduler {
MainThreadImpl::MainThreadImpl(MainThreadSchedulerImpl* scheduler)
: … { … }
MainThreadImpl::~MainThreadImpl() = default;
blink::ThreadScheduler* MainThreadImpl::Scheduler() { … }
scoped_refptr<base::SingleThreadTaskRunner> MainThreadImpl::GetTaskRunner(
MainThreadTaskRunnerRestricted) const { … }
void MainThreadImpl::AddTaskTimeObserver(
base::sequence_manager::TaskTimeObserver* task_time_observer) { … }
void MainThreadImpl::RemoveTaskTimeObserver(
base::sequence_manager::TaskTimeObserver* task_time_observer) { … }
}
}