summaryrefslogtreecommitdiff
path: root/Source/JavaScriptCore/inspector/InjectedScriptHost.h
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@lorry>2017-06-27 06:07:23 +0000
committerLorry Tar Creator <lorry-tar-importer@lorry>2017-06-27 06:07:23 +0000
commit1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c (patch)
tree46dcd36c86e7fbc6e5df36deb463b33e9967a6f7 /Source/JavaScriptCore/inspector/InjectedScriptHost.h
parent32761a6cee1d0dee366b885b7b9c777e67885688 (diff)
downloadWebKitGtk-tarball-master.tar.gz
Diffstat (limited to 'Source/JavaScriptCore/inspector/InjectedScriptHost.h')
-rw-r--r--Source/JavaScriptCore/inspector/InjectedScriptHost.h23
1 files changed, 7 insertions, 16 deletions
diff --git a/Source/JavaScriptCore/inspector/InjectedScriptHost.h b/Source/JavaScriptCore/inspector/InjectedScriptHost.h
index db93f8631..d58d97d59 100644
--- a/Source/JavaScriptCore/inspector/InjectedScriptHost.h
+++ b/Source/JavaScriptCore/inspector/InjectedScriptHost.h
@@ -23,14 +23,10 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef InjectedScriptHost_h
-#define InjectedScriptHost_h
-
-#if ENABLE(INSPECTOR)
+#pragma once
#include "JSCJSValueInlines.h"
-#include "Strong.h"
-#include "StrongInlines.h"
+#include "inspector/PerGlobalObjectWrapperWorld.h"
#include <wtf/HashMap.h>
#include <wtf/RefCounted.h>
@@ -38,22 +34,17 @@ namespace Inspector {
class JS_EXPORT_PRIVATE InjectedScriptHost : public RefCounted<InjectedScriptHost> {
public:
- static PassRefPtr<InjectedScriptHost> create() { return adoptRef(new InjectedScriptHost); }
+ static Ref<InjectedScriptHost> create() { return adoptRef(*new InjectedScriptHost); }
virtual ~InjectedScriptHost();
- virtual JSC::JSValue type(JSC::ExecState*, JSC::JSValue) { return JSC::jsUndefined(); }
- virtual bool isHTMLAllCollection(JSC::JSValue) { return false; }
+ virtual JSC::JSValue subtype(JSC::ExecState*, JSC::JSValue) { return JSC::jsUndefined(); }
+ virtual bool isHTMLAllCollection(JSC::VM&, JSC::JSValue) { return false; }
- JSC::JSValue jsWrapper(JSC::ExecState*, JSC::JSGlobalObject*);
- void clearWrapper(JSC::ExecState*, JSC::JSGlobalObject*);
+ JSC::JSValue wrapper(JSC::ExecState*, JSC::JSGlobalObject*);
void clearAllWrappers();
private:
- HashMap<std::pair<JSC::ExecState*, JSC::JSGlobalObject*>, JSC::Strong<JSC::JSObject>> m_wrappers;
+ PerGlobalObjectWrapperWorld m_wrappers;
};
} // namespace Inspector
-
-#endif // ENABLE(INSPECTOR)
-
-#endif // !defined(InjectedScriptHost_h)