summaryrefslogtreecommitdiff
path: root/Source/WebCore/workers/WorkerLoaderProxy.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/workers/WorkerLoaderProxy.h')
-rw-r--r--Source/WebCore/workers/WorkerLoaderProxy.h11
1 files changed, 3 insertions, 8 deletions
diff --git a/Source/WebCore/workers/WorkerLoaderProxy.h b/Source/WebCore/workers/WorkerLoaderProxy.h
index 62931248d..b88f82ac0 100644
--- a/Source/WebCore/workers/WorkerLoaderProxy.h
+++ b/Source/WebCore/workers/WorkerLoaderProxy.h
@@ -28,12 +28,9 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef WorkerLoaderProxy_h
-#define WorkerLoaderProxy_h
+#pragma once
#include "ScriptExecutionContext.h"
-#include <wtf/Forward.h>
-#include <wtf/PassOwnPtr.h>
namespace WebCore {
@@ -47,14 +44,12 @@ namespace WebCore {
virtual ~WorkerLoaderProxy() { }
// Posts a task to the thread which runs the loading code (normally, the main thread).
- virtual void postTaskToLoader(PassOwnPtr<ScriptExecutionContext::Task>) = 0;
+ virtual void postTaskToLoader(ScriptExecutionContext::Task&&) = 0;
// Posts callbacks from loading code to the WorkerGlobalScope. The 'mode' is used to differentiate
// specific synchronous loading requests so they can be 'nested', per spec.
// Returns true if the task was posted successfully.
- virtual bool postTaskForModeToWorkerGlobalScope(PassOwnPtr<ScriptExecutionContext::Task>, const String& mode) = 0;
+ virtual bool postTaskForModeToWorkerGlobalScope(ScriptExecutionContext::Task&&, const String& mode) = 0;
};
} // namespace WebCore
-
-#endif // WorkerLoaderProxy_h