blob: ce18e7449a9f00cb09ee1f150976ecc60c5d9c73 [file] [log] [blame]
// Copyright 2019 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_MODULES_SCHEDULER_DOM_TASK_CONTROLLER_H_
#define THIRD_PARTY_BLINK_RENDERER_MODULES_SCHEDULER_DOM_TASK_CONTROLLER_H_
#include "third_party/blink/renderer/core/dom/abort_controller.h"
#include "third_party/blink/renderer/modules/modules_export.h"
#include "third_party/blink/renderer/platform/scheduler/public/web_scheduling_priority.h"
namespace blink {
class ExceptionState;
class ExecutionContext;
class TaskControllerInit;
class MODULES_EXPORT DOMTaskController final : public AbortController {
DEFINE_WRAPPERTYPEINFO();
public:
static DOMTaskController* Create(ExecutionContext*, TaskControllerInit*);
DOMTaskController(ExecutionContext*, const AtomicString& priority);
void setPriority(const AtomicString& priority, ExceptionState&);
};
} // namespace blink
#endif // THIRD_PARTY_BLINK_RENDERER_MODULES_SCHEDULER_DOM_TASK_CONTROLLER_H_