Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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. | |
| 4 | |
| 5 module content; | |
| 6 | |
| 7 enum ServicePortError { | |
|
scheib
2015/06/24 05:20:06
SUCCESS is a strange value for an error.
How abou
Marijn Kruisselbrink
2015/06/24 17:33:54
Agreed, changed it to ServicePortConnectResult
| |
| 8 SUCCESS, | |
| 9 ABORT, | |
| 10 MAX=ABORT | |
| 11 }; | |
| 12 | |
| 13 struct MojoTransferredMessagePort { | |
| 14 int32 id; | |
| 15 bool send_messages_as_values; | |
| 16 }; | |
| 17 | |
| 18 interface ServicePortService { | |
| 19 SetClient(ServicePortServiceClient client); | |
| 20 | |
| 21 Connect(string target_url, string origin) | |
| 22 => (ServicePortError err, int32 port_id); | |
| 23 | |
| 24 PostMessage(int32 port_id, string message, array<MojoTransferredMessagePort> p orts); | |
| 25 ClosePort(int32 port_id); | |
| 26 }; | |
| 27 | |
| 28 interface ServicePortServiceClient { | |
| 29 PostMessage(int32 port_id, string message, array<MojoTransferredMessagePort> p orts, array<int32> new_routing_ids); | |
| 30 }; | |
| OLD | NEW |