#include <dlfcn.h>
#include <execinfo.h>
+#if ENABLE(REMOTE_INSPECTOR)
+#include "JSGlobalObjectDebuggable.h"
+#include "RemoteInspector.h"
+#endif
+
using namespace JSC;
namespace Inspector {
return m_consoleClient.get();
}
+bool JSGlobalObjectInspectorController::developerExtrasEnabled() const
+{
+#if ENABLE(REMOTE_INSPECTOR)
+ if (!RemoteInspector::shared().enabled())
+ return false;
+
+ if (!m_globalObject.inspectorDebuggable().remoteDebuggingAllowed())
+ return false;
+#endif
+
+ return true;
+}
+
InspectorFunctionCallHandler JSGlobalObjectInspectorController::functionCallHandler() const
{
return JSC::call;