aboutsummaryrefslogtreecommitdiff
path: root/cast/cast_core/api/v2/core_message_port_application_service.proto
diff options
context:
space:
mode:
authorGoogler <noreply@google.com>2021-05-12 11:01:11 -0700
committerOpenscreen LUCI CQ <openscreen-scoped@luci-project-accounts.iam.gserviceaccount.com>2021-06-24 03:38:26 +0000
commit5df61d7305d4122d4724cab3edd03946c12326d7 (patch)
tree940b731e87181ba622ac6b2e571868ec4d607bff /cast/cast_core/api/v2/core_message_port_application_service.proto
parentf3b911c8dbd011a8f96802ad6e3a4998799ebd9c (diff)
downloadopenscreen-5df61d7305d4122d4724cab3edd03946c12326d7.tar.gz
Internal change
PiperOrigin-RevId: 373407178 Change-Id: Ica1520f3a0f004f976840ce7b32ecb2d219bc600 Reviewed-on: https://chromium-review.googlesource.com/c/openscreen/+/2984101 Reviewed-by: Ryan Keane <rwkeane@google.com> Commit-Queue: Ryan Keane <rwkeane@google.com>
Diffstat (limited to 'cast/cast_core/api/v2/core_message_port_application_service.proto')
-rw-r--r--cast/cast_core/api/v2/core_message_port_application_service.proto30
1 files changed, 30 insertions, 0 deletions
diff --git a/cast/cast_core/api/v2/core_message_port_application_service.proto b/cast/cast_core/api/v2/core_message_port_application_service.proto
new file mode 100644
index 00000000..9dcd918e
--- /dev/null
+++ b/cast/cast_core/api/v2/core_message_port_application_service.proto
@@ -0,0 +1,30 @@
+// Copyright 2021 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+//
+// **** DO NOT EDIT - this file was automatically generated. ****
+syntax = "proto3";
+
+package cast.v2;
+
+import "cast/cast_core/api/bindings/api_bindings.proto";
+import "cast/cast_core/api/web/message_channel.proto";
+
+option optimize_for = LITE_RUNTIME;
+
+// This service runs in Cast Core for a particular app. It uses a MessagePort to
+// communicate with the app.
+service CoreMessagePortApplicationService {
+ // Posts messages between MessagePorts. MessagePorts are connected using other
+ // services (e.g. ApiBindings), then registered with the
+ // MessageConnectorService to communicate over IPC.
+ rpc PostMessage(cast.web.Message) returns (cast.web.MessagePortStatus);
+
+ // Gets the list of bindings to early-inject into javascript at page load.
+ rpc GetAll(cast.bindings.GetAllRequest)
+ returns (cast.bindings.GetAllResponse);
+
+ // Connects to a binding returned by GetAll.
+ rpc Connect(cast.bindings.ConnectRequest)
+ returns (cast.bindings.ConnectResponse);
+}