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

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

Issue 2518073002: Worker: Use per-frame task runners from a worker thread (Closed)
Patch Set: rebase Created 4 years, 1 month 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 | « no previous file | third_party/WebKit/Source/core/workers/WorkerThreadTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/workers/WorkerThread.cpp
diff --git a/third_party/WebKit/Source/core/workers/WorkerThread.cpp b/third_party/WebKit/Source/core/workers/WorkerThread.cpp
index 13f3317f073eaf9c2f07cbcb59f798f19a5a11f1..dfe9303c28c3af32c0602114e62e214fcd484e78 100644
--- a/third_party/WebKit/Source/core/workers/WorkerThread.cpp
+++ b/third_party/WebKit/Source/core/workers/WorkerThread.cpp
@@ -35,6 +35,7 @@
#include "core/inspector/WorkerInspectorController.h"
#include "core/inspector/WorkerThreadDebugger.h"
#include "core/origin_trials/OriginTrialContext.h"
+#include "core/workers/ParentFrameTaskRunners.h"
#include "core/workers/ThreadedWorkletGlobalScope.h"
#include "core/workers/WorkerBackingThread.h"
#include "core/workers/WorkerClients.h"
@@ -351,9 +352,9 @@ void WorkerThread::terminateInternal(TerminationMode mode) {
case TerminationMode::Graceful:
DCHECK(!m_forcibleTerminationTaskHandle.isActive());
m_forcibleTerminationTaskHandle =
- Platform::current()
- ->mainThread()
- ->getWebTaskRunner()
+ workerReportingProxy()
+ .getParentFrameTaskRunners()
+ ->get(TaskType::Internal)
->postDelayedCancellableTask(
BLINK_FROM_HERE,
WTF::bind(&WorkerThread::mayForciblyTerminateExecution,
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/workers/WorkerThreadTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698