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

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

Issue 2402983002: [TimeZoneMonitor] Decouple renderer side impl from content to blink. (Closed)
Patch Set: Inside modules use V8PerIsolateData::mainThreadIsolate() instead of blink::mainThreadIsolate() Created 4 years, 2 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 e4873947873f442dd624f7efa64480727bcb4f99..e4fa140f98e474dc4396077e2b4625832a723b72 100644
--- a/third_party/WebKit/Source/core/workers/WorkerThread.h
+++ b/third_party/WebKit/Source/core/workers/WorkerThread.h
@@ -154,6 +154,10 @@ class CORE_EXPORT WorkerThread {
// Number of active worker threads.
static unsigned workerThreadCount();
+ // Returns a set of all worker threads. This must be called only on the main
+ // thread and the returned set must not be stored for future use.
+ static HashSet<WorkerThread*>& workerThreads();
+
PlatformThreadId platformThreadId();
bool isForciblyTerminated();

Powered by Google App Engine
This is Rietveld 408576698