summaryrefslogtreecommitdiff
path: root/Source/WebCore/workers/WorkerObjectProxy.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/workers/WorkerObjectProxy.h')
-rw-r--r--Source/WebCore/workers/WorkerObjectProxy.h11
1 files changed, 4 insertions, 7 deletions
diff --git a/Source/WebCore/workers/WorkerObjectProxy.h b/Source/WebCore/workers/WorkerObjectProxy.h
index e6a4b7d73..e89c84cef 100644
--- a/Source/WebCore/workers/WorkerObjectProxy.h
+++ b/Source/WebCore/workers/WorkerObjectProxy.h
@@ -28,12 +28,11 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef WorkerObjectProxy_h
-#define WorkerObjectProxy_h
+#pragma once
#include "WorkerReportingProxy.h"
#include "MessagePort.h"
-#include <wtf/PassOwnPtr.h>
+#include <memory>
namespace WebCore {
@@ -42,15 +41,13 @@ namespace WebCore {
// A proxy to talk to the worker object.
class WorkerObjectProxy : public WorkerReportingProxy {
public:
- virtual void postMessageToWorkerObject(PassRefPtr<SerializedScriptValue>, PassOwnPtr<MessagePortChannelArray>) = 0;
+ virtual void postMessageToWorkerObject(RefPtr<SerializedScriptValue>&&, std::unique_ptr<MessagePortChannelArray>) = 0;
virtual void confirmMessageFromWorkerObject(bool hasPendingActivity) = 0;
virtual void reportPendingActivity(bool hasPendingActivity) = 0;
// No need to notify the parent page context when dedicated workers are closing.
- virtual void workerGlobalScopeClosed() override { }
+ void workerGlobalScopeClosed() override { }
};
} // namespace WebCore
-
-#endif // WorkerObjectProxy_h