summaryrefslogtreecommitdiff
path: root/Source/JavaScriptCore/inspector/InjectedScriptModule.h
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@lorry>2016-04-10 09:28:39 +0000
committerLorry Tar Creator <lorry-tar-importer@lorry>2016-04-10 09:28:39 +0000
commit32761a6cee1d0dee366b885b7b9c777e67885688 (patch)
treed6bec92bebfb216f4126356e55518842c2f476a1 /Source/JavaScriptCore/inspector/InjectedScriptModule.h
parenta4e969f4965059196ca948db781e52f7cfebf19e (diff)
downloadWebKitGtk-tarball-32761a6cee1d0dee366b885b7b9c777e67885688.tar.gz
webkitgtk-2.4.11webkitgtk-2.4.11
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