summaryrefslogtreecommitdiff
path: root/Source/JavaScriptCore/inspector/InjectedScriptModule.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/JavaScriptCore/inspector/InjectedScriptModule.h')
-rw-r--r--Source/JavaScriptCore/inspector/InjectedScriptModule.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/Source/JavaScriptCore/inspector/InjectedScriptModule.h b/Source/JavaScriptCore/inspector/InjectedScriptModule.h
index a96e618b2..a170e798d 100644
--- a/Source/JavaScriptCore/inspector/InjectedScriptModule.h
+++ b/Source/JavaScriptCore/inspector/InjectedScriptModule.h
@@ -35,6 +35,8 @@
#include "InjectedScriptBase.h"
#include <wtf/text/WTFString.h>
+#if ENABLE(INSPECTOR)
+
namespace JSC {
class JSValue;
}
@@ -49,16 +51,19 @@ public:
virtual ~InjectedScriptModule();
virtual String source() const = 0;
virtual JSC::JSValue host(InjectedScriptManager*, JSC::ExecState*) const = 0;
+ virtual bool returnsObject() const = 0;
protected:
// Do not expose constructor in the child classes as well. Instead provide
// a static factory method that would create a new instance of the class
// and call its ensureInjected() method immediately.
- explicit InjectedScriptModule(const String& name);
+ InjectedScriptModule(const String& name);
void ensureInjected(InjectedScriptManager*, JSC::ExecState*);
- void ensureInjected(InjectedScriptManager*, const InjectedScript&);
+ void ensureInjected(InjectedScriptManager*, InjectedScript);
};
} // namespace Inspector
+#endif // ENABLE(INSPECTOR)
+
#endif // InjectedScriptModule_h