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

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

Issue 1549143002: Add thread affinity and ASSERT() for same-thread restriction to WTF::Function (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@TRV_ThreadSafeBindByVariadicTemplate
Patch Set: Created 4 years, 10 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 3282ee46c149a2a37e26f5bcdedec1a482e71959..170410fa60b3166d4f065a770c28222deb407f3c 100644
--- a/third_party/WebKit/Source/core/workers/WorkerThread.h
+++ b/third_party/WebKit/Source/core/workers/WorkerThread.h
@@ -96,7 +96,7 @@ public:
WorkerReportingProxy& workerReportingProxy() const { return m_workerReportingProxy; }
void postTask(const WebTraceLocation&, PassOwnPtr<ExecutionContextTask>);
- void appendDebuggerTask(PassOwnPtr<Closure>);
+ void appendDebuggerTask(PassOwnPtr<CrossThreadClosure>);
enum WaitMode { WaitForTask, DontWaitForTask };
enum TaskQueueResult {
@@ -146,7 +146,7 @@ private:
class DebuggerTaskQueue;
friend class WorkerMicrotaskRunner;
- PassOwnPtr<Closure> createWorkerThreadTask(PassOwnPtr<ExecutionContextTask>, bool isInstrumented);
+ PassOwnPtr<CrossThreadClosure> createWorkerThreadTask(PassOwnPtr<ExecutionContextTask>, bool isInstrumented);
// Called on the main thread.
void terminateInternal();

Powered by Google App Engine
This is Rietveld 408576698