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

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

Issue 2806623004: Worker: Introduce per-global-scope task scheduler (Closed)
Patch Set: remove unnecessary comments Created 3 years, 8 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
Index: third_party/WebKit/Source/core/workers/ThreadedMessagingProxyBase.cpp
diff --git a/third_party/WebKit/Source/core/workers/ThreadedMessagingProxyBase.cpp b/third_party/WebKit/Source/core/workers/ThreadedMessagingProxyBase.cpp
index 5fc25ba79a6b3b5f87cc3162b0e86836b95a8979..fb8241d658cd6ec4575a5d97ec98614c00a79e22 100644
--- a/third_party/WebKit/Source/core/workers/ThreadedMessagingProxyBase.cpp
+++ b/third_party/WebKit/Source/core/workers/ThreadedMessagingProxyBase.cpp
@@ -6,6 +6,7 @@
#include "bindings/core/v8/SourceLocation.h"
#include "core/dom/Document.h"
+#include "core/dom/TaskRunnerHelper.h"
#include "core/frame/Deprecation.h"
#include "core/loader/DocumentLoader.h"
#include "core/loader/ThreadableLoadingContext.h"
@@ -73,7 +74,8 @@ void ThreadedMessagingProxyBase::PostTaskToWorkerGlobalScope(
return;
DCHECK(worker_thread_);
- worker_thread_->PostTask(location, std::move(task));
+ TaskRunnerHelper::Get(TaskType::kNetworking, worker_thread_.get())
+ ->PostTask(location, std::move(task));
}
void ThreadedMessagingProxyBase::PostTaskToLoader(

Powered by Google App Engine
This is Rietveld 408576698