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

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

Issue 2118243002: [proof-of-concept] SW thread independent of the main thread Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 4 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 752ff21cd5d89114e9063ec25611306eaa1852b7..2abce17466bfe34ea9903cd5f5a0d341ca310bc2 100644
--- a/third_party/WebKit/Source/core/workers/WorkerThread.h
+++ b/third_party/WebKit/Source/core/workers/WorkerThread.h
@@ -153,7 +153,7 @@ public:
void waitForShutdownForTesting() { m_shutdownEvent->wait(); }
protected:
- WorkerThread(PassRefPtr<WorkerLoaderProxy>, WorkerReportingProxy&);
+ WorkerThread(PassRefPtr<WorkerLoaderProxy>, WorkerReportingProxy&, bool launchFromMainThread = true);
// Factory method for creating a new worker context for the thread.
// Called on the worker thread.
@@ -254,6 +254,8 @@ private:
std::unique_ptr<ForceTerminationTask> m_scheduledForceTerminationTask;
Persistent<WorkerThreadLifecycleContext> m_workerThreadLifecycleContext;
+
+ bool m_launchedFromMainThread;
};
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/workers/WorkerReportingProxy.h ('k') | third_party/WebKit/Source/core/workers/WorkerThread.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698