aboutsummaryrefslogtreecommitdiff
path: root/src/inspector_io.h
diff options
context:
space:
mode:
authorAleksei Koziatinskii <ak239spb@gmail.com>2019-05-16 15:33:09 -0700
committerRuben Bridgewater <ruben@bridgewater.de>2019-06-17 19:49:40 +0200
commitf8c9a58bf5752114a43b0778c1d5ef780301177f (patch)
treeb3afc16176f80e39b8e6217838003b6ac75166d1 /src/inspector_io.h
parent40a1a11542e612563d6a382f4f628c41b1b8b37e (diff)
downloadandroid-node-v8-f8c9a58bf5752114a43b0778c1d5ef780301177f.tar.gz
android-node-v8-f8c9a58bf5752114a43b0778c1d5ef780301177f.tar.bz2
android-node-v8-f8c9a58bf5752114a43b0778c1d5ef780301177f.zip
inspector: added --inspect-publish-uid
This flag specifies how inspector websocket url should be reported. Tthre options are supported: - stderr - reports websocket as a message to stderr, - http - exposes /json/list endpoint that contains inspector websocket url, - binding - require('inspector').url(). Related discussion: https://github.com/nodejs/diagnostics/issues/303 PR-URL: https://github.com/nodejs/node/pull/27741 Reviewed-By: Eugene Ostroukhov <eostroukhov@google.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Diffstat (limited to 'src/inspector_io.h')
-rw-r--r--src/inspector_io.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/inspector_io.h b/src/inspector_io.h
index 0dfb08f470..57facb2294 100644
--- a/src/inspector_io.h
+++ b/src/inspector_io.h
@@ -48,7 +48,8 @@ class InspectorIo {
static std::unique_ptr<InspectorIo> Start(
std::shared_ptr<MainThreadHandle> main_thread,
const std::string& path,
- std::shared_ptr<HostPort> host_port);
+ std::shared_ptr<HostPort> host_port,
+ const InspectPublishUid& inspect_publish_uid);
// Will block till the transport thread shuts down
~InspectorIo();
@@ -61,7 +62,8 @@ class InspectorIo {
private:
InspectorIo(std::shared_ptr<MainThreadHandle> handle,
const std::string& path,
- std::shared_ptr<HostPort> host_port);
+ std::shared_ptr<HostPort> host_port,
+ const InspectPublishUid& inspect_publish_uid);
// Wrapper for agent->ThreadMain()
static void ThreadMain(void* agent);
@@ -76,6 +78,7 @@ class InspectorIo {
// running
std::shared_ptr<RequestQueue> request_queue_;
std::shared_ptr<HostPort> host_port_;
+ InspectPublishUid inspect_publish_uid_;
// The IO thread runs its own uv_loop to implement the TCP server off
// the main thread.