Speculative fix for uninit read in TransportSecurityState.
[chromium-blink-merge.git] / content / common / service_port_service.mojom
blob41cee6a4ea99503e5c73efab2cc7bed3cab8989a
1 // Copyright 2015 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.
5 module content;
7 enum ServicePortConnectResult {
8   ACCEPT,
9   REJECT
12 struct MojoTransferredMessagePort {
13   int32 id;
14   bool send_messages_as_values;
17 interface ServicePortService {
18   SetClient(ServicePortServiceClient client);
20   Connect(string target_url, string origin)
21       => (ServicePortConnectResult result, int32 port_id);
23   PostMessage(int32 port_id, string message,
24               array<MojoTransferredMessagePort> ports);
25   ClosePort(int32 port_id);
28 interface ServicePortServiceClient {
29   PostMessage(int32 port_id, string message,
30               array<MojoTransferredMessagePort> ports,
31               array<int32> new_routing_ids);
34 interface ServicePortDispatcher {
35   Connect(string target_url, string origin, int32 port_id)
36       => (ServicePortConnectResult result, string name, string data);