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

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

Issue 2642113002: Worker: Reduce use of ExecutionContextTask in core/workers (Closed)
Patch Set: fix build failures 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/workers/WorkerThread.h
diff --git a/third_party/WebKit/Source/core/workers/WorkerThread.h b/third_party/WebKit/Source/core/workers/WorkerThread.h
index d3af4f3ac85540a7c3938ee202f0001beee50472..ac302a8792ffe3b862dd53bb983d17bb150eb4db 100644
--- a/third_party/WebKit/Source/core/workers/WorkerThread.h
+++ b/third_party/WebKit/Source/core/workers/WorkerThread.h
@@ -28,7 +28,6 @@
#define WorkerThread_h
#include "core/CoreExport.h"
-#include "core/dom/ExecutionContextTask.h"
#include "core/frame/csp/ContentSecurityPolicy.h"
#include "core/workers/WorkerLoaderProxy.h"
#include "core/workers/WorkerThreadLifecycleObserver.h"
@@ -136,10 +135,6 @@ class CORE_EXPORT WorkerThread : public WebThread::TaskObserver {
return m_workerReportingProxy;
}
- // DEPRECATED: Use postTask() for WTF::CrossThreadClosure instead.
- // TODO(nhiroki): Remove this after https://crbug.com/625927 is completed.
- void postTask(const WebTraceLocation&, std::unique_ptr<ExecutionContextTask>);
-
void postTask(const WebTraceLocation&,
std::unique_ptr<WTF::CrossThreadClosure>);
void appendDebuggerTask(std::unique_ptr<CrossThreadClosure>);
@@ -250,7 +245,7 @@ class CORE_EXPORT WorkerThread : public WebThread::TaskObserver {
void initializeOnWorkerThread(std::unique_ptr<WorkerThreadStartupData>);
void prepareForShutdownOnWorkerThread();
void performShutdownOnWorkerThread();
- void performTaskOnWorkerThread(std::unique_ptr<ExecutionContextTask>);
+ void performTaskOnWorkerThread(std::unique_ptr<CrossThreadClosure>);
void performDebuggerTaskOnWorkerThread(std::unique_ptr<CrossThreadClosure>);
void performDebuggerTaskDontWaitOnWorkerThread();

Powered by Google App Engine
This is Rietveld 408576698