From 1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c Mon Sep 17 00:00:00 2001 From: Lorry Tar Creator Date: Tue, 27 Jun 2017 06:07:23 +0000 Subject: webkitgtk-2.16.5 --- Source/JavaScriptCore/inspector/InjectedScriptModule.h | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) (limited to 'Source/JavaScriptCore/inspector/InjectedScriptModule.h') diff --git a/Source/JavaScriptCore/inspector/InjectedScriptModule.h b/Source/JavaScriptCore/inspector/InjectedScriptModule.h index a170e798d..1efc0acd8 100644 --- a/Source/JavaScriptCore/inspector/InjectedScriptModule.h +++ b/Source/JavaScriptCore/inspector/InjectedScriptModule.h @@ -29,14 +29,11 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef InjectedScriptModule_h -#define InjectedScriptModule_h +#pragma once #include "InjectedScriptBase.h" #include -#if ENABLE(INSPECTOR) - namespace JSC { class JSValue; } @@ -51,19 +48,14 @@ 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. - InjectedScriptModule(const String& name); + explicit InjectedScriptModule(const String& name); void ensureInjected(InjectedScriptManager*, JSC::ExecState*); - void ensureInjected(InjectedScriptManager*, InjectedScript); + void ensureInjected(InjectedScriptManager*, const InjectedScript&); }; } // namespace Inspector - -#endif // ENABLE(INSPECTOR) - -#endif // InjectedScriptModule_h -- cgit v1.2.1