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

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

Issue 2486463005: [Reland] DevTools: Make WorkerThreadDebugger available for Worklets (Closed)
Patch Set: Change layout tests 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 2725d6c335a1ae0de43ccd8a09c52d22cf18dd1c..fe717c3433d1be1280b13cec685f7502b3d5d8b8 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();
@@ -163,6 +162,8 @@ class CORE_EXPORT WorkerThread : public WebThread::TaskObserver {
// thread and the returned set must not be stored for future use.
static HashSet<WorkerThread*>& workerThreads();
+ int getWorkerThreadId() const { return m_workerThreadId; }
+
PlatformThreadId platformThreadId();
bool isForciblyTerminated();
@@ -257,6 +258,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;
« no previous file with comments | « third_party/WebKit/Source/core/workers/WorkerGlobalScope.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