From 17862fca5f6acfad5941ec651769493310a5c571 Mon Sep 17 00:00:00 2001 From: Eugene Ostroukhov Date: Wed, 3 Jul 2019 11:32:31 -0700 Subject: inspector: reduce InspectorIo API surface This is a cleanup, allowing for a better separation of concerns. PR-URL: https://github.com/nodejs/node/pull/28526 Reviewed-By: Anna Henningsen Reviewed-By: Aleksei Koziatinskii Reviewed-By: Rich Trott --- src/inspector_io.h | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) (limited to 'src/inspector_io.h') diff --git a/src/inspector_io.h b/src/inspector_io.h index 57facb2294..e9f9405673 100644 --- a/src/inspector_io.h +++ b/src/inspector_io.h @@ -14,32 +14,14 @@ #include #include - -namespace v8_inspector { -class StringBuffer; -class StringView; -} // namespace v8_inspector - namespace node { // Forward declaration to break recursive dependency chain with src/env.h. class Environment; namespace inspector { -std::string FormatWsAddress(const std::string& host, int port, - const std::string& target_id, - bool include_protocol); - -class InspectorIoDelegate; class MainThreadHandle; class RequestQueue; -// kKill closes connections and stops the server, kStop only stops the server -enum class TransportAction { - kKill, - kSendMessage, - kStop -}; - class InspectorIo { public: // Start the inspector agent thread, waiting for it to initialize @@ -55,9 +37,7 @@ class InspectorIo { ~InspectorIo(); void StopAcceptingNewConnections(); - const std::string& host() const { return host_port_->host(); } - int port() const { return host_port_->port(); } - std::vector GetTargetIds() const; + std::string GetWsUrl() const; private: InspectorIo(std::shared_ptr handle, -- cgit v1.2.3