#include "third_party/blink/public/platform/scheduler/web_thread_scheduler.h"
#include <utility>
#include "base/feature_list.h"
#include "base/message_loop/message_pump_type.h"
#include "base/task/single_thread_task_runner.h"
#include "base/trace_event/trace_event.h"
#include "build/build_config.h"
#include "third_party/blink/public/common/input/web_input_event_attribution.h"
#include "third_party/blink/renderer/platform/scheduler/common/features.h"
#include "third_party/blink/renderer/platform/scheduler/common/task_priority.h"
#include "third_party/blink/renderer/platform/scheduler/common/tracing_helper.h"
#include "third_party/blink/renderer/platform/scheduler/main_thread/main_thread_scheduler_impl.h"
#include "third_party/blink/renderer/platform/scheduler/public/main_thread.h"
namespace blink {
namespace scheduler {
WebThreadScheduler::~WebThreadScheduler() = default;
std::unique_ptr<WebThreadScheduler>
WebThreadScheduler::CreateMainThreadScheduler(
std::unique_ptr<base::MessagePump> message_pump) { … }
scoped_refptr<base::SingleThreadTaskRunner>
WebThreadScheduler::DeprecatedDefaultTaskRunner() { … }
std::unique_ptr<MainThread> WebThreadScheduler::CreateMainThread() { … }
void WebThreadScheduler::SetRendererHidden(bool hidden) { … }
void WebThreadScheduler::SetRendererBackgrounded(bool backgrounded) { … }
#if BUILDFLAG(IS_ANDROID)
void WebThreadScheduler::PauseTimersForAndroidWebView() {
NOTREACHED_IN_MIGRATION();
}
void WebThreadScheduler::ResumeTimersForAndroidWebView() {
NOTREACHED_IN_MIGRATION();
}
#endif
void WebThreadScheduler::SetRendererProcessType(WebRendererProcessType type) { … }
void WebThreadScheduler::OnUrgentMessageReceived() { … }
void WebThreadScheduler::OnUrgentMessageProcessed() { … }
}
}