diff options
author | Anna Henningsen <anna@addaleax.net> | 2019-02-08 21:23:09 +0300 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2019-02-11 21:57:19 +0300 |
commit | 5bc6e493c0642dd65e458026b8145f266d7d5417 (patch) | |
tree | e2cb33bb45f62419b55de981ae1221909d16d177 /src/inspector_agent.h | |
parent | 58ba8bfc46c06bf9f75887c18df563d91a1f782c (diff) |
worker: set up child Isolate inside Worker thread
Refs: https://github.com/nodejs/node/issues/24016
PR-URL: https://github.com/nodejs/node/pull/26011
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Diffstat (limited to 'src/inspector_agent.h')
-rw-r--r-- | src/inspector_agent.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/inspector_agent.h b/src/inspector_agent.h index 5e599a6339e..905b1e2841e 100644 --- a/src/inspector_agent.h +++ b/src/inspector_agent.h @@ -85,7 +85,9 @@ class Agent { void EnableAsyncHook(); void DisableAsyncHook(); - void AddWorkerInspector(int thread_id, const std::string& url, Agent* agent); + void SetParentHandle(std::unique_ptr<ParentInspectorHandle> parent_handle); + std::unique_ptr<ParentInspectorHandle> GetParentHandle( + int thread_id, const std::string& url); // Called to create inspector sessions that can be used from the main thread. // The inspector responds by using the delegate to send messages back. |