diff options
author | Eugene Ostroukhov <eostroukhov@chromium.org> | 2016-11-19 00:52:22 +0300 |
---|---|---|
committer | Eugene Ostroukhov <eostroukhov@chromium.org> | 2016-12-09 20:07:50 +0300 |
commit | f9aadfbc5adb3b9ee9357636d846dff1556b9acc (patch) | |
tree | 7ec6dded7ce804ac4069d56826cbd55593c9a450 /src/inspector_agent.h | |
parent | bc335c0a8d68164fd978192409ab6c4986cfe374 (diff) |
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.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/inspector_agent.h b/src/inspector_agent.h index b31c77496b3..9cc2fa676d4 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(); |