Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(319)

Unified Diff: third_party/WebKit/Source/core/workers/WorkerOrWorkletGlobalScope.cpp

Issue 2856773003: Remove deprecated ExecutionContextTask (Closed)
Patch Set: restore private / rebase Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/core/workers/WorkerOrWorkletGlobalScope.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/workers/WorkerOrWorkletGlobalScope.cpp
diff --git a/third_party/WebKit/Source/core/workers/WorkerOrWorkletGlobalScope.cpp b/third_party/WebKit/Source/core/workers/WorkerOrWorkletGlobalScope.cpp
index 38529037f21cc7c669fd63320ef1292830cbb046..bbdfdedc7a12cd97df582dd5df06674e05b617e6 100644
--- a/third_party/WebKit/Source/core/workers/WorkerOrWorkletGlobalScope.cpp
+++ b/third_party/WebKit/Source/core/workers/WorkerOrWorkletGlobalScope.cpp
@@ -5,7 +5,6 @@
#include "core/workers/WorkerOrWorkletGlobalScope.h"
#include "bindings/core/v8/WorkerOrWorkletScriptController.h"
-#include "core/dom/ExecutionContextTask.h"
#include "core/dom/TaskRunnerHelper.h"
#include "core/frame/Deprecation.h"
#include "core/inspector/ConsoleMessage.h"
@@ -73,26 +72,6 @@ void WorkerOrWorkletGlobalScope::DisableEval(const String& error_message) {
script_controller_->DisableEval(error_message);
}
-void WorkerOrWorkletGlobalScope::PostTask(
- TaskType type,
- const WebTraceLocation& location,
- std::unique_ptr<ExecutionContextTask> task,
- const String& task_name_for_instrumentation) {
- if (!GetThread())
- return;
-
- bool is_instrumented = !task_name_for_instrumentation.IsEmpty();
- if (is_instrumented) {
- probe::AsyncTaskScheduled(this, "Worker task", task.get());
- }
-
- TaskRunnerHelper::Get(type, this)
- ->PostTask(location, CrossThreadBind(&WorkerOrWorkletGlobalScope::RunTask,
- WrapCrossThreadWeakPersistent(this),
- WTF::Passed(std::move(task)),
- is_instrumented));
-}
-
bool WorkerOrWorkletGlobalScope::CanExecuteScripts(
ReasonForCallingCanExecuteScripts) {
return !IsJSExecutionForbidden();
@@ -110,12 +89,4 @@ DEFINE_TRACE(WorkerOrWorkletGlobalScope) {
ExecutionContext::Trace(visitor);
}
-void WorkerOrWorkletGlobalScope::RunTask(
- std::unique_ptr<ExecutionContextTask> task,
- bool is_instrumented) {
- DCHECK(GetThread()->IsCurrentThread());
- probe::AsyncTask async_task(this, task.get(), nullptr, is_instrumented);
- task->PerformTask(this);
-}
-
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/workers/WorkerOrWorkletGlobalScope.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698