mirror of
https://github.com/quizhizhe/LiteLoaderBDS-1.16.40.git
synced 2025-06-07 12:18:11 +00:00
32 lines
684 B
C++
32 lines
684 B
C++
#ifndef SRC_INSPECTOR_RUNTIME_AGENT_H_
|
|
#define SRC_INSPECTOR_RUNTIME_AGENT_H_
|
|
|
|
#include "node/inspector/protocol/NodeRuntime.h"
|
|
#include "v8.h"
|
|
|
|
namespace node {
|
|
class Environment;
|
|
|
|
namespace inspector {
|
|
namespace protocol {
|
|
|
|
class RuntimeAgent : public NodeRuntime::Backend {
|
|
public:
|
|
RuntimeAgent();
|
|
|
|
void Wire(UberDispatcher* dispatcher);
|
|
|
|
DispatchResponse notifyWhenWaitingForDisconnect(bool enabled) override;
|
|
|
|
bool notifyWaitingForDisconnect();
|
|
|
|
private:
|
|
std::shared_ptr<NodeRuntime::Frontend> frontend_;
|
|
bool notify_when_waiting_for_disconnect_;
|
|
};
|
|
} // namespace protocol
|
|
} // namespace inspector
|
|
} // namespace node
|
|
|
|
#endif // SRC_INSPECTOR_RUNTIME_AGENT_H_
|