// 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 .proto was automatically generated. **** syntax = "proto3"; package cast.v2; import "cast/cast_core/api/v2/cast_message.proto"; import "cast/cast_core/api/v2/url_rewrite.proto"; import "cast/cast_core/api/web/message_channel.proto"; option optimize_for = LITE_RUNTIME; // Cast application Service // // This service is implemented by the Runtime and represents services // specific to a Cast application. service RuntimeApplicationService { // Sends a Cast message to the runtime. rpc SendCastMessage(CastMessageRequest) returns (CastMessageResponse); // Set the URL rewrite rules that the Runtime will use to contact the MSP // This is called when the rewrite rules are changed // A non streaming API for simplicity rpc SetUrlRewriteRules(SetUrlRewriteRulesRequest) returns (SetUrlRewriteRulesResponse); // "MessageConnectorService" provides the transport for 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); } // Request to set the URL rewrite rules on the runtime application. message SetUrlRewriteRulesRequest { // URL rewrite rules. UrlRequestRewriteRules rules = 1; } message SetUrlRewriteRulesResponse {}