Make MessagePortChannel::takeAllMessagesFromRemote asynchronous.
authorbeidson@apple.com <beidson@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 3 Jan 2018 00:51:01 +0000 (00:51 +0000)
committerbeidson@apple.com <beidson@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 3 Jan 2018 00:51:01 +0000 (00:51 +0000)
commit5a34b06d652e977a04c8b20f254b44922b9304b2
treeb560f0924c76dc3a1a95c49d234ba8e8558b65e0
parentb90e995c10f55af46dfa5f5ea0e84f8a641a5ab3
Make MessagePortChannel::takeAllMessagesFromRemote asynchronous.
https://bugs.webkit.org/show_bug.cgi?id=181205

Reviewed by Alex Christensen.

No new tests (No behavior change)

This is needed for the ongoing WK2 MessagePort work.

For WK1 in-process MessagePorts it is still synchronous; no behavior change.

* dom/InProcessMessagePortChannel.cpp:
(WebCore::InProcessMessagePortChannel::takeAllMessagesFromRemote):
* dom/InProcessMessagePortChannel.h:

* dom/MessagePort.cpp:
(WebCore::MessagePort::dispatchMessages):
* dom/MessagePortChannel.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@226343 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/dom/InProcessMessagePortChannel.cpp
Source/WebCore/dom/InProcessMessagePortChannel.h
Source/WebCore/dom/MessagePort.cpp
Source/WebCore/dom/MessagePortChannel.h