From 32761a6cee1d0dee366b885b7b9c777e67885688 Mon Sep 17 00:00:00 2001 From: Lorry Tar Creator Date: Sun, 10 Apr 2016 09:28:39 +0000 Subject: webkitgtk-2.4.11 --- Source/JavaScriptCore/inspector/InjectedScriptModule.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'Source/JavaScriptCore/inspector/InjectedScriptModule.h') 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 +#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 -- cgit v1.2.1