Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(168)

Side by Side Diff: content/common/service_port_service.mojom

Issue 1192713004: Update client side navigator.connect API to use ServicePortCollection [2/3] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: use mojo for all ServicePort related IPC Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698