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

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

Issue 2811993007: Worker: Remove cross-thread PostTask functions from WorkerLoaderProxy (Closed)
Patch Set: address review 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 fb8241d658cd6ec4575a5d97ec98614c00a79e22..e1227217634544c956fce4a720bfcaf73bcb4b5c 100644
--- a/third_party/WebKit/Source/core/workers/ThreadedMessagingProxyBase.cpp
+++ b/third_party/WebKit/Source/core/workers/ThreadedMessagingProxyBase.cpp
@@ -67,24 +67,6 @@ void ThreadedMessagingProxyBase::InitializeWorkerThread(
WorkerThreadCreated();
}
-void ThreadedMessagingProxyBase::PostTaskToWorkerGlobalScope(
- const WebTraceLocation& location,
- std::unique_ptr<WTF::CrossThreadClosure> task) {
- if (asked_to_terminate_)
- return;
-
- DCHECK(worker_thread_);
- TaskRunnerHelper::Get(TaskType::kNetworking, worker_thread_.get())
- ->PostTask(location, std::move(task));
-}
-
-void ThreadedMessagingProxyBase::PostTaskToLoader(
- const WebTraceLocation& location,
- std::unique_ptr<WTF::CrossThreadClosure> task) {
- parent_frame_task_runners_->Get(TaskType::kNetworking)
- ->PostTask(BLINK_FROM_HERE, std::move(task));
-}
-
ThreadableLoadingContext*
ThreadedMessagingProxyBase::GetThreadableLoadingContext() {
DCHECK(IsParentContextThread());

Powered by Google App Engine
This is Rietveld 408576698