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

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

Issue 2456733002: DevTools: Make WorkerThreadDebugger available for Worklets (Closed)
Patch Set: address review comments Created 4 years, 1 month 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 bbd47ae68ee551bb842c78c0e912805c0fd74706..243672c5780447f1047ae8e72a7c4e2377afc7ba 100644
--- a/third_party/WebKit/Source/core/workers/WorkerThread.h
+++ b/third_party/WebKit/Source/core/workers/WorkerThread.h
@@ -122,7 +122,6 @@ class CORE_EXPORT WorkerThread : public WebThread::TaskObserver {
ConsoleMessageStorage* consoleMessageStorage() const {
return m_consoleMessageStorage.get();
}
- virtual bool shouldAttachThreadDebugger() const { return true; }
v8::Isolate* isolate();
bool isCurrentThread();
@@ -159,6 +158,8 @@ class CORE_EXPORT WorkerThread : public WebThread::TaskObserver {
// Number of active worker threads.
static unsigned workerThreadCount();
+ int getWorkerThreadId() const { return m_workerThreadId; }
+
PlatformThreadId platformThreadId();
bool isForciblyTerminated();
@@ -253,6 +254,9 @@ class CORE_EXPORT WorkerThread : public WebThread::TaskObserver {
ExitCode getExitCodeForTesting();
+ // A unique identifier among all WorkerThreads.
+ const int m_workerThreadId;
+
// Accessed only on the main thread.
bool m_requestedToStart = false;

Powered by Google App Engine
This is Rietveld 408576698