1 #ifndef SRC_INSPECTOR_RUNTIME_AGENT_H_ 2 #define SRC_INSPECTOR_RUNTIME_AGENT_H_ 3 4 #include "node/inspector/protocol/NodeRuntime.h" 5 #include "v8.h" 6 7 namespace node { 8 class Environment; 9 10 namespace inspector { 11 namespace protocol { 12 13 class RuntimeAgent : public NodeRuntime::Backend { 14 public: 15 RuntimeAgent(); 16 17 void Wire(UberDispatcher* dispatcher); 18 19 DispatchResponse notifyWhenWaitingForDisconnect(bool enabled) override; 20 21 bool notifyWaitingForDisconnect(); 22 23 private: 24 std::shared_ptr<NodeRuntime::Frontend> frontend_; 25 bool notify_when_waiting_for_disconnect_; 26 }; 27 } // namespace protocol 28 } // namespace inspector 29 } // namespace node 30 31 #endif // SRC_INSPECTOR_RUNTIME_AGENT_H_ 32