11cb0ef41Sopenharmony_ci#ifndef SRC_INSPECTOR_RUNTIME_AGENT_H_
21cb0ef41Sopenharmony_ci#define SRC_INSPECTOR_RUNTIME_AGENT_H_
31cb0ef41Sopenharmony_ci
41cb0ef41Sopenharmony_ci#include "node/inspector/protocol/NodeRuntime.h"
51cb0ef41Sopenharmony_ci#include "v8.h"
61cb0ef41Sopenharmony_ci
71cb0ef41Sopenharmony_cinamespace node {
81cb0ef41Sopenharmony_ciclass Environment;
91cb0ef41Sopenharmony_ci
101cb0ef41Sopenharmony_cinamespace inspector {
111cb0ef41Sopenharmony_cinamespace protocol {
121cb0ef41Sopenharmony_ci
131cb0ef41Sopenharmony_ciclass RuntimeAgent : public NodeRuntime::Backend {
141cb0ef41Sopenharmony_ci public:
151cb0ef41Sopenharmony_ci  RuntimeAgent();
161cb0ef41Sopenharmony_ci
171cb0ef41Sopenharmony_ci  void Wire(UberDispatcher* dispatcher);
181cb0ef41Sopenharmony_ci
191cb0ef41Sopenharmony_ci  DispatchResponse notifyWhenWaitingForDisconnect(bool enabled) override;
201cb0ef41Sopenharmony_ci
211cb0ef41Sopenharmony_ci  bool notifyWaitingForDisconnect();
221cb0ef41Sopenharmony_ci
231cb0ef41Sopenharmony_ci private:
241cb0ef41Sopenharmony_ci  std::shared_ptr<NodeRuntime::Frontend> frontend_;
251cb0ef41Sopenharmony_ci  bool notify_when_waiting_for_disconnect_;
261cb0ef41Sopenharmony_ci};
271cb0ef41Sopenharmony_ci}  // namespace protocol
281cb0ef41Sopenharmony_ci}  // namespace inspector
291cb0ef41Sopenharmony_ci}  // namespace node
301cb0ef41Sopenharmony_ci
311cb0ef41Sopenharmony_ci#endif  // SRC_INSPECTOR_RUNTIME_AGENT_H_
32