diff options
author | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-06-27 06:07:23 +0000 |
---|---|---|
committer | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-06-27 06:07:23 +0000 |
commit | 1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c (patch) | |
tree | 46dcd36c86e7fbc6e5df36deb463b33e9967a6f7 /Source/WebCore/bindings/js/ScheduledAction.h | |
parent | 32761a6cee1d0dee366b885b7b9c777e67885688 (diff) | |
download | WebKitGtk-tarball-master.tar.gz |
webkitgtk-2.16.5HEADwebkitgtk-2.16.5master
Diffstat (limited to 'Source/WebCore/bindings/js/ScheduledAction.h')
-rw-r--r-- | Source/WebCore/bindings/js/ScheduledAction.h | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/Source/WebCore/bindings/js/ScheduledAction.h b/Source/WebCore/bindings/js/ScheduledAction.h index 19add3fe8..dac8579ea 100644 --- a/Source/WebCore/bindings/js/ScheduledAction.h +++ b/Source/WebCore/bindings/js/ScheduledAction.h @@ -17,14 +17,13 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -#ifndef ScheduledAction_h -#define ScheduledAction_h +#pragma once #include "JSDOMBinding.h" #include <heap/Strong.h> #include <heap/StrongInlines.h> +#include <memory> #include <runtime/JSCell.h> -#include <wtf/PassOwnPtr.h> #include <wtf/Vector.h> #include <wtf/text/WTFString.h> @@ -46,22 +45,22 @@ namespace WebCore { class ScheduledAction { WTF_MAKE_NONCOPYABLE(ScheduledAction); WTF_MAKE_FAST_ALLOCATED; public: - static PassOwnPtr<ScheduledAction> create(JSC::ExecState*, DOMWrapperWorld& isolatedWorld, ContentSecurityPolicy*); + static std::unique_ptr<ScheduledAction> create(JSC::ExecState*, DOMWrapperWorld& isolatedWorld, ContentSecurityPolicy*); - void execute(ScriptExecutionContext*); + void execute(ScriptExecutionContext&); private: ScheduledAction(JSC::ExecState*, JSC::JSValue function, DOMWrapperWorld& isolatedWorld); ScheduledAction(const String& code, DOMWrapperWorld& isolatedWorld) - : m_function(*isolatedWorld.vm()) + : m_function(isolatedWorld.vm()) , m_code(code) , m_isolatedWorld(&isolatedWorld) { } - void executeFunctionInContext(JSC::JSGlobalObject*, JSC::JSValue thisValue, ScriptExecutionContext*); - void execute(Document*); - void execute(WorkerGlobalScope*); + void executeFunctionInContext(JSC::JSGlobalObject*, JSC::JSValue thisValue, ScriptExecutionContext&); + void execute(Document&); + void execute(WorkerGlobalScope&); JSC::Strong<JSC::Unknown> m_function; Vector<JSC::Strong<JSC::Unknown>> m_args; @@ -70,5 +69,3 @@ namespace WebCore { }; } // namespace WebCore - -#endif // ScheduledAction_h |