JSGlobalObjectDebuggable.h [plain text]
#ifndef JSGlobalObjectDebuggable_h
#define JSGlobalObjectDebuggable_h
#if ENABLE(REMOTE_INSPECTOR)
#include "JSGlobalObjectInspectorController.h"
#include "RemoteInspectorDebuggable.h"
#include <wtf/Noncopyable.h>
namespace Inspector {
class FrontendChannel;
enum class DisconnectReason;
}
namespace JSC {
class JSGlobalObject;
class JSGlobalObjectDebuggable final : public Inspector::RemoteInspectorDebuggable {
WTF_MAKE_FAST_ALLOCATED;
WTF_MAKE_NONCOPYABLE(JSGlobalObjectDebuggable);
public:
JSGlobalObjectDebuggable(JSGlobalObject&);
~JSGlobalObjectDebuggable() { }
virtual Inspector::RemoteInspectorDebuggable::DebuggableType type() const override { return Inspector::RemoteInspectorDebuggable::JavaScript; }
virtual String name() const override;
virtual bool hasLocalDebugger() const override { return false; }
virtual void connect(Inspector::FrontendChannel*, bool automaticInspection) override;
virtual void disconnect() override;
virtual void dispatchMessageFromRemoteFrontend(const String& message) override;
virtual void pause() override;
virtual bool automaticInspectionAllowed() const override { return true; }
virtual void pauseWaitingForAutomaticInspection() override;
private:
JSGlobalObject& m_globalObject;
};
}
#endif // ENABLE(REMOTE_INSPECTOR)
#endif // !defined(JSGlobalObjectDebuggable_h)