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

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: fix windows SendMessage annoyance Created 5 years, 5 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 ServicePortConnectResult {
8 ACCEPT,
9 REJECT
10 };
11
12 struct MojoTransferredMessagePort {
13 int32 id;
14 bool send_messages_as_values;
15 };
16
17 interface ServicePortService {
18 SetClient(ServicePortServiceClient client);
19
20 Connect(string target_url, string origin)
21 => (ServicePortConnectResult result, int32 port_id);
22
23 PostMessage(int32 port_id, string message, array<MojoTransferredMessagePort> p orts);
Tom Sepez 2015/06/29 18:31:19 nit: 80 cols.
Marijn Kruisselbrink 2015/06/29 19:33:39 Done. If that's the required style, somebody shou
24 ClosePort(int32 port_id);
25 };
26
27 interface ServicePortServiceClient {
28 PostMessage(int32 port_id, string message, array<MojoTransferredMessagePort> p orts, array<int32> new_routing_ids);
Tom Sepez 2015/06/29 18:31:19 nit: here too.
29 };
Tom Sepez 2015/06/29 18:31:19 do the elements of the two arrays correspond to ea
Marijn Kruisselbrink 2015/06/29 19:33:39 Yes, the elements correspond to each other. I thou
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698