Commit 37638978 authored by Hajime Hoshi's avatar Hajime Hoshi Committed by Commit Bot

Remove TaskRunnerHelper::Get except for WorkerThread

This is one step of all replacings at https://chromium-review.googlesource.com/c/chromium/src/+/743663

Bug: 777775
Change-Id: Ib388098d7a6f3d1baa3b144734f470b0263f74f7
Reviewed-on: https://chromium-review.googlesource.com/748741Reviewed-by: default avatarKentaro Hara <haraken@chromium.org>
Commit-Queue: Hajime Hoshi <hajimehoshi@chromium.org>
Cr-Commit-Position: refs/heads/master@{#513078}
parent 8c141771
......@@ -4,40 +4,10 @@
#include "core/dom/TaskRunnerHelper.h"
#include "core/dom/Document.h"
#include "core/dom/ExecutionContext.h"
#include "core/frame/LocalFrame.h"
#include "core/workers/WorkerOrWorkletGlobalScope.h"
#include "core/workers/WorkerThread.h"
#include "platform/WebFrameScheduler.h"
#include "platform/WebTaskRunner.h"
#include "public/platform/Platform.h"
#include "public/platform/WebThread.h"
namespace blink {
scoped_refptr<WebTaskRunner> TaskRunnerHelper::Get(TaskType type,
LocalFrame* frame) {
return frame->GetTaskRunner(type);
}
scoped_refptr<WebTaskRunner> TaskRunnerHelper::Get(TaskType type,
Document* document) {
return document->GetTaskRunner(type);
}
scoped_refptr<WebTaskRunner> TaskRunnerHelper::Get(
TaskType type,
ExecutionContext* execution_context) {
return execution_context->GetTaskRunner(type);
}
scoped_refptr<WebTaskRunner> TaskRunnerHelper::Get(
TaskType type,
WorkerOrWorkletGlobalScope* global_scope) {
return global_scope->GetTaskRunner(type);
}
scoped_refptr<WebTaskRunner> TaskRunnerHelper::Get(
TaskType type,
WorkerThread* worker_thread) {
......
......@@ -12,11 +12,7 @@
namespace blink {
class Document;
class ExecutionContext;
class LocalFrame;
class WebTaskRunner;
class WorkerOrWorkletGlobalScope;
class WorkerThread;
// A set of helper functions to get a WebTaskRunner for TaskType and a context
......@@ -26,12 +22,6 @@ class CORE_EXPORT TaskRunnerHelper final {
STATIC_ONLY(TaskRunnerHelper);
public:
static scoped_refptr<WebTaskRunner> Get(TaskType, LocalFrame*);
static scoped_refptr<WebTaskRunner> Get(TaskType, Document*);
static scoped_refptr<WebTaskRunner> Get(TaskType, ExecutionContext*);
static scoped_refptr<WebTaskRunner> Get(TaskType,
WorkerOrWorkletGlobalScope*);
// Returns a WebTaskRunner that is associated to the worker / worklet global
// scope that corresponds to the given WorkerThread. Note that WorkerThread is
// a per-global-scope object while the naming might sound differently.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment