summaryrefslogtreecommitdiff
path: root/chromium/qtwebengine/browser
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/qtwebengine/browser')
-rw-r--r--chromium/qtwebengine/browser/BUILD.gn7
-rw-r--r--chromium/qtwebengine/browser/qtwebchannel.mojom18
2 files changed, 25 insertions, 0 deletions
diff --git a/chromium/qtwebengine/browser/BUILD.gn b/chromium/qtwebengine/browser/BUILD.gn
index 143a171bd6f..4bbb64b1c62 100644
--- a/chromium/qtwebengine/browser/BUILD.gn
+++ b/chromium/qtwebengine/browser/BUILD.gn
@@ -1,5 +1,12 @@
import("//chrome/common/features.gni")
import("//tools/grit/grit_rule.gni")
+import ("//mojo/public/tools/bindings/mojom.gni")
+
+mojom("interfaces") {
+ sources = [
+ "qtwebchannel.mojom",
+ ]
+}
grit("qt_webengine_resources") {
source = "qt_webengine_resources.grd"
diff --git a/chromium/qtwebengine/browser/qtwebchannel.mojom b/chromium/qtwebengine/browser/qtwebchannel.mojom
new file mode 100644
index 00000000000..622e6a40421
--- /dev/null
+++ b/chromium/qtwebengine/browser/qtwebchannel.mojom
@@ -0,0 +1,18 @@
+module qtwebchannel.mojom;
+
+// Render process interface exposed to the browser
+// There is one instance of this interface per render frame host in the browser process
+
+interface WebChannelTransportRender {
+ SetWorldId(uint32 worldId);
+ ResetWorldId();
+ DispatchWebChannelMessage(array<uint8> binaryJson, uint32 worldId);
+};
+
+// Browser process interface exposed to the renderer
+// There is one instance of this interface per render frame in the render process
+
+interface WebChannelTransportHost {
+ DispatchWebChannelMessage(array<uint8> binaryJson);
+};
+