Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(210)

Unified Diff: third_party/WebKit/Source/core/dom/MessagePort.cpp

Issue 2755223002: Enable Blink to pass extra Mojo handles across MessagePorts
Patch Set: Finish plumbing Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/common/message_port.cc ('k') | third_party/WebKit/public/platform/WebMessagePortChannel.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/dom/MessagePort.cpp
diff --git a/third_party/WebKit/Source/core/dom/MessagePort.cpp b/third_party/WebKit/Source/core/dom/MessagePort.cpp
index 4e4a711cb3ab4bb7aee8fdb7b9b9f0cae920bbe6..840848537d073b0521034150c6ad9ba047647edf 100644
--- a/third_party/WebKit/Source/core/dom/MessagePort.cpp
+++ b/third_party/WebKit/Source/core/dom/MessagePort.cpp
@@ -86,7 +86,9 @@ void MessagePort::postMessage(ScriptState* scriptState,
WebString messageString = message->toWireString();
WebMessagePortChannelArray webChannels =
toWebMessagePortChannelArray(std::move(channels));
- m_entangledChannel->postMessage(messageString, std::move(webChannels));
+ WebVector<mojo::ScopedHandle> handles;
+ m_entangledChannel->postMessage(messageString, std::move(webChannels),
+ std::move(handles));
}
// static
@@ -169,7 +171,8 @@ static bool tryGetMessageFrom(WebMessagePortChannel& webChannel,
MessagePortChannelArray& channels) {
WebString messageString;
WebMessagePortChannelArray webChannels;
- if (!webChannel.tryGetMessage(&messageString, webChannels))
+ WebVector<mojo::ScopedHandle> handles;
+ if (!webChannel.tryGetMessage(&messageString, webChannels, handles))
return false;
if (webChannels.size()) {
« no previous file with comments | « content/common/message_port.cc ('k') | third_party/WebKit/public/platform/WebMessagePortChannel.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698