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

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

Issue 2741643003: Replace WorkerGlobalScope::postTask with WorkerThread::postTask (Closed)
Patch Set: missppelling; include cleanup Created 3 years, 9 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 6c27763eadd869cc076b7900448e807c1eb4b760..8239c850ce8cceea70c168397effc07d95effd4a 100644
--- a/third_party/WebKit/Source/core/workers/WorkerThread.h
+++ b/third_party/WebKit/Source/core/workers/WorkerThread.h
@@ -137,6 +137,7 @@ class CORE_EXPORT WorkerThread : public WebThread::TaskObserver {
return m_workerReportingProxy;
}
+ void postTask(const WebTraceLocation&, std::unique_ptr<WTF::Closure>);
void postTask(const WebTraceLocation&,
std::unique_ptr<WTF::CrossThreadClosure>);
void appendDebuggerTask(std::unique_ptr<CrossThreadClosure>);
@@ -251,7 +252,9 @@ class CORE_EXPORT WorkerThread : public WebThread::TaskObserver {
void initializeOnWorkerThread(std::unique_ptr<WorkerThreadStartupData>);
void prepareForShutdownOnWorkerThread();
void performShutdownOnWorkerThread();
- void performTaskOnWorkerThread(std::unique_ptr<CrossThreadClosure>);
+ template <WTF::FunctionThreadAffinity threadAffinity>
+ void performTaskOnWorkerThread(
+ std::unique_ptr<Function<void(), threadAffinity>> task);
void performDebuggerTaskOnWorkerThread(std::unique_ptr<CrossThreadClosure>);
void performDebuggerTaskDontWaitOnWorkerThread();
« no previous file with comments | « third_party/WebKit/Source/core/workers/WorkerEventQueue.cpp ('k') | third_party/WebKit/Source/core/workers/WorkerThread.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698