summaryrefslogtreecommitdiff
path: root/src/inspector/worker_inspector.h
diff options
context:
space:
mode:
authorEugene Ostroukhov <eostroukhov@gmail.com>2019-07-26 16:38:15 -0700
committerRich Trott <rtrott@gmail.com>2019-07-30 21:17:27 -0700
commit7435dc8b2ba2bed4d6a8c1b6474f21c7219b3238 (patch)
treecc4e2a2a067721e7744da872e72914f46ab3277d /src/inspector/worker_inspector.h
parentc3b2111423c73769680734e1891b43cb3eb9cd4c (diff)
downloadandroid-node-v8-7435dc8b2ba2bed4d6a8c1b6474f21c7219b3238.tar.gz
android-node-v8-7435dc8b2ba2bed4d6a8c1b6474f21c7219b3238.tar.bz2
android-node-v8-7435dc8b2ba2bed4d6a8c1b6474f21c7219b3238.zip
inspector: report all workers
Main thread (the one that WS endpoint connects to) should be able to report all workers. PR-URL: https://github.com/nodejs/node/pull/28872 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
Diffstat (limited to 'src/inspector/worker_inspector.h')
-rw-r--r--src/inspector/worker_inspector.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/inspector/worker_inspector.h b/src/inspector/worker_inspector.h
index cf483ae49e..c0961496ce 100644
--- a/src/inspector/worker_inspector.h
+++ b/src/inspector/worker_inspector.h
@@ -55,6 +55,13 @@ class ParentInspectorHandle {
std::shared_ptr<MainThreadHandle> parent_thread,
bool wait_for_connect);
~ParentInspectorHandle();
+ std::unique_ptr<ParentInspectorHandle> NewParentInspectorHandle(
+ int thread_id, const std::string& url) {
+ return std::make_unique<ParentInspectorHandle>(thread_id,
+ url,
+ parent_thread_,
+ wait_);
+ }
void WorkerStarted(std::shared_ptr<MainThreadHandle> worker_thread,
bool waiting);
bool WaitForConnect() {