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

Unified Diff: third_party/WebKit/public/platform/WebMessagePortChannel.h

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 | « third_party/WebKit/Source/core/dom/MessagePort.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/public/platform/WebMessagePortChannel.h
diff --git a/third_party/WebKit/public/platform/WebMessagePortChannel.h b/third_party/WebKit/public/platform/WebMessagePortChannel.h
index 857155329e1651580016fffe2c1d6247d3a79412..b1617ec35d7c02d53ee1c731d8572aab3c9ac908 100644
--- a/third_party/WebKit/public/platform/WebMessagePortChannel.h
+++ b/third_party/WebKit/public/platform/WebMessagePortChannel.h
@@ -31,9 +31,11 @@
#ifndef WebMessagePortChannel_h
#define WebMessagePortChannel_h
+#include <memory>
+
#include "WebCommon.h"
#include "WebVector.h"
-#include <memory>
+#include "mojo/public/cpp/system/handle.h"
namespace blink {
@@ -51,8 +53,12 @@ class WebMessagePortChannel {
virtual void setClient(WebMessagePortChannelClient*) = 0;
// Callee receives ownership of the passed vector.
// FIXME: Blob refs should be passed to maintain ref counts. crbug.com/351753
- virtual void postMessage(const WebString&, WebMessagePortChannelArray) = 0;
- virtual bool tryGetMessage(WebString*, WebMessagePortChannelArray&) = 0;
+ virtual void postMessage(const WebString&,
+ WebMessagePortChannelArray,
+ WebVector<mojo::ScopedHandle>) = 0;
+ virtual bool tryGetMessage(WebString*,
+ WebMessagePortChannelArray&,
+ WebVector<mojo::ScopedHandle>&) = 0;
};
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/dom/MessagePort.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698