summaryrefslogtreecommitdiff
path: root/Source/WebCore/bindings/js/ScriptGlobalObject.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/WebCore/bindings/js/ScriptGlobalObject.h
parent32761a6cee1d0dee366b885b7b9c777e67885688 (diff)
downloadWebKitGtk-tarball-master.tar.gz
Diffstat (limited to 'Source/WebCore/bindings/js/ScriptGlobalObject.h')
-rw-r--r--Source/WebCore/bindings/js/ScriptGlobalObject.h20
1 files changed, 5 insertions, 15 deletions
diff --git a/Source/WebCore/bindings/js/ScriptGlobalObject.h b/Source/WebCore/bindings/js/ScriptGlobalObject.h
index 8aa055bd6..f879a025d 100644
--- a/Source/WebCore/bindings/js/ScriptGlobalObject.h
+++ b/Source/WebCore/bindings/js/ScriptGlobalObject.h
@@ -28,15 +28,11 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef ScriptGlobalObject_h
-#define ScriptGlobalObject_h
-
-namespace Deprecated {
-class ScriptObject;
-}
+#pragma once
namespace JSC {
class ExecState;
+class JSObject;
}
namespace WebCore {
@@ -45,17 +41,11 @@ class InspectorFrontendHost;
class ScriptGlobalObject {
public:
- static bool set(JSC::ExecState*, const char* name, const Deprecated::ScriptObject&);
-#if ENABLE(INSPECTOR)
- static bool set(JSC::ExecState*, const char* name, InspectorFrontendHost*);
-#endif
+ WEBCORE_EXPORT static bool set(JSC::ExecState&, const char* name, InspectorFrontendHost&);
+ static bool get(JSC::ExecState&, const char* name, JSC::JSObject*&);
- static bool get(JSC::ExecState*, const char* name, Deprecated::ScriptObject&);
- static bool remove(JSC::ExecState*, const char* name);
private:
- ScriptGlobalObject() { }
+ ScriptGlobalObject() = delete;
};
} // namespace WebCore
-
-#endif // ScriptGlobalObject_h