summaryrefslogtreecommitdiff
path: root/src/inspector_agent.h
diff options
context:
space:
mode:
authorEugene Ostroukhov <eostroukhov@chromium.org>2016-11-18 13:52:22 -0800
committerEugene Ostroukhov <eostroukhov@chromium.org>2016-12-09 09:07:50 -0800
commitf9aadfbc5adb3b9ee9357636d846dff1556b9acc (patch)
tree7ec6dded7ce804ac4069d56826cbd55593c9a450 /src/inspector_agent.h
parentbc335c0a8d68164fd978192409ab6c4986cfe374 (diff)
downloadandroid-node-v8-f9aadfbc5adb3b9ee9357636d846dff1556b9acc.tar.gz
android-node-v8-f9aadfbc5adb3b9ee9357636d846dff1556b9acc.tar.bz2
android-node-v8-f9aadfbc5adb3b9ee9357636d846dff1556b9acc.zip
inspector: move options parsing
As inspector functionality expands, more options will need to be added. Currently this requires changing adding function arguments, etc. This change packs the veriables into a single class that can be extended without changing APIs. PR-URL: https://github.com/nodejs/node/pull/9691 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Diffstat (limited to 'src/inspector_agent.h')
-rw-r--r--src/inspector_agent.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/inspector_agent.h b/src/inspector_agent.h
index b31c77496b..9cc2fa676d 100644
--- a/src/inspector_agent.h
+++ b/src/inspector_agent.h
@@ -7,6 +7,8 @@
#error("This header can only be used when inspector is enabled")
#endif
+#include "node_debug_options.h"
+
// Forward declaration to break recursive dependency chain with src/env.h.
namespace node {
class Environment;
@@ -31,7 +33,8 @@ class Agent {
~Agent();
// Start the inspector agent thread
- bool Start(v8::Platform* platform, const char* path, int port, bool wait);
+ bool Start(v8::Platform* platform, const char* path,
+ const DebugOptions& options);
// Stop the inspector agent
void Stop();