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 --- .../JavaScriptCore/inspector/InjectedScriptManager.h | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) (limited to 'Source/JavaScriptCore/inspector/InjectedScriptManager.h') diff --git a/Source/JavaScriptCore/inspector/InjectedScriptManager.h b/Source/JavaScriptCore/inspector/InjectedScriptManager.h index bcc64e2a4..8475e42f7 100644 --- a/Source/JavaScriptCore/inspector/InjectedScriptManager.h +++ b/Source/JavaScriptCore/inspector/InjectedScriptManager.h @@ -11,7 +11,7 @@ * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. - * 3. Neither the name of Apple Computer, Inc. ("Apple") nor the names of + * 3. Neither the name of Apple Inc. ("Apple") nor the names of * its contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * @@ -27,8 +27,7 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef InjectedScriptManager_h -#define InjectedScriptManager_h +#pragma once #include "InjectedScript.h" #include "InjectedScriptHost.h" @@ -50,36 +49,35 @@ namespace Inspector { class JS_EXPORT_PRIVATE InjectedScriptManager { WTF_MAKE_NONCOPYABLE(InjectedScriptManager); WTF_MAKE_FAST_ALLOCATED; public: - InjectedScriptManager(InspectorEnvironment&, PassRefPtr); + InjectedScriptManager(InspectorEnvironment&, Ref&&); virtual ~InjectedScriptManager(); virtual void disconnect(); + virtual void discardInjectedScripts(); - InjectedScriptHost* injectedScriptHost(); + InjectedScriptHost& injectedScriptHost(); InspectorEnvironment& inspectorEnvironment() const { return m_environment; } InjectedScript injectedScriptFor(JSC::ExecState*); InjectedScript injectedScriptForId(int); int injectedScriptIdFor(JSC::ExecState*); InjectedScript injectedScriptForObjectId(const String& objectId); - void discardInjectedScripts(); void releaseObjectGroup(const String& objectGroup); + void clearExceptionValue(); protected: - virtual void didCreateInjectedScript(InjectedScript); + virtual void didCreateInjectedScript(const InjectedScript&); HashMap m_idToInjectedScript; HashMap m_scriptStateToId; private: String injectedScriptSource(); - Deprecated::ScriptObject createInjectedScript(const String& source, JSC::ExecState*, int id); + JSC::JSObject* createInjectedScript(const String& source, JSC::ExecState*, int id); InspectorEnvironment& m_environment; - RefPtr m_injectedScriptHost; + Ref m_injectedScriptHost; int m_nextInjectedScriptId; }; } // namespace Inspector - -#endif // !defined(InjectedScriptManager_h) -- cgit v1.2.1