1// Copyright 2021 The Chromium Authors. All rights reserved. 2// Use of this source code is governed by a BSD-style license that can be 3// found in the LICENSE file. 4// 5// **** DO NOT EDIT - this file was automatically generated. **** 6syntax = "proto3"; 7 8package cast.v2; 9 10import "cast/cast_core/api/v2/cast_message.proto"; 11import "cast/cast_core/api/v2/url_rewrite.proto"; 12import "cast/cast_core/api/web/message_channel.proto"; 13 14option optimize_for = LITE_RUNTIME; 15 16// Cast application Service 17// 18// This service is implemented by the Runtime and represents services 19// specific to a Cast application. 20service RuntimeApplicationService { 21 // DEPRECATED 22 // Sends a Cast message to the runtime. 23 rpc SendCastMessage(CastMessageRequest) returns (CastMessageResponse); 24 25 // Set the URL rewrite rules that the Runtime will use to contact the MSP 26 // This is called when the rewrite rules are changed 27 // A non streaming API for simplicity 28 rpc SetUrlRewriteRules(SetUrlRewriteRulesRequest) 29 returns (SetUrlRewriteRulesResponse); 30 31 // DEPRECATED 32 // "MessageConnectorService" provides the transport for MessagePorts. 33 // MessagePorts are connected using other services (e.g. ApiBindings), then 34 // registered with the MessageConnectorService to communicate over IPC 35 rpc PostMessage(cast.web.Message) returns (cast.web.MessagePortStatus); 36} 37 38// Request to set the URL rewrite rules on the runtime application. 39message SetUrlRewriteRulesRequest { 40 // URL rewrite rules. 41 UrlRequestRewriteRules rules = 1; 42} 43 44message SetUrlRewriteRulesResponse {} 45