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

Unified Diff: third_party/WebKit/Source/core/loader/WorkerThreadableLoader.h

Issue 2645613006: Worker: Stop using ExecutionContextTask on WorkerLoaderProxy::postTaskToWorkerGlobalScope (Closed)
Patch Set: address review comments Created 3 years, 11 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/loader/WorkerThreadableLoader.h
diff --git a/third_party/WebKit/Source/core/loader/WorkerThreadableLoader.h b/third_party/WebKit/Source/core/loader/WorkerThreadableLoader.h
index 3cffacfe1085875438dac629edce95dea5ba661b..5f3d2b0ee6b070d1e784ce0a37d15f518317a358 100644
--- a/third_party/WebKit/Source/core/loader/WorkerThreadableLoader.h
+++ b/third_party/WebKit/Source/core/loader/WorkerThreadableLoader.h
@@ -31,7 +31,6 @@
#ifndef WorkerThreadableLoader_h
#define WorkerThreadableLoader_h
-#include "core/dom/ExecutionContextTask.h"
#include "core/loader/ThreadableLoader.h"
#include "core/loader/ThreadableLoaderClient.h"
#include "core/workers/WorkerThread.h"
@@ -110,15 +109,15 @@ class WorkerThreadableLoader final : public ThreadableLoader {
private:
enum BlockingBehavior { LoadSynchronously, LoadAsynchronously };
- // A TaskForwarder forwards an ExecutionContextTask to the worker thread.
+ // A TaskForwarder forwards a task to the worker thread.
class TaskForwarder : public GarbageCollectedFinalized<TaskForwarder> {
public:
virtual ~TaskForwarder() {}
virtual void forwardTask(const WebTraceLocation&,
- std::unique_ptr<ExecutionContextTask>) = 0;
+ std::unique_ptr<CrossThreadClosure>) = 0;
virtual void forwardTaskWithDoneSignal(
const WebTraceLocation&,
- std::unique_ptr<ExecutionContextTask>) = 0;
+ std::unique_ptr<CrossThreadClosure>) = 0;
virtual void abort() = 0;
DEFINE_INLINE_VIRTUAL_TRACE() {}

Powered by Google App Engine
This is Rietveld 408576698