forked from nodejs/node
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathruntime_agent.h
41 lines (28 loc) · 881 Bytes
/
runtime_agent.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#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;
DispatchResponse enable() override;
DispatchResponse disable() override;
bool notifyWaitingForDisconnect();
void setWaitingForDebugger();
void unsetWaitingForDebugger();
private:
std::shared_ptr<NodeRuntime::Frontend> frontend_;
bool notify_when_waiting_for_disconnect_;
bool enabled_;
bool is_waiting_for_debugger_;
};
} // namespace protocol
} // namespace inspector
} // namespace node
#endif // SRC_INSPECTOR_RUNTIME_AGENT_H_