dom/interfaces/apps/nsIInterAppCommService.idl

changeset 0
6474c204b198
equal deleted inserted replaced
-1:000000000000 0:10fc1e254dc2
1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
3 * You can obtain one at http://mozilla.org/MPL/2.0/. */
4
5 #include "domstubs.idl"
6
7 interface nsIURI;
8
9 /**
10 * Implemented by the contract id @mozilla.org/inter-app-communication-service;1
11 *
12 * This interface contains helpers for Inter-App Communication API [1] related
13 * purposes. A singleton service of this interface will be instantiated during
14 * the system boot-up, which plays the role of the central service receiving
15 * messages from and interacting with the content processes.
16 *
17 * [1] https://wiki.mozilla.org/WebAPI/Inter_App_Communication_Alt_proposal
18 */
19 [scriptable, uuid(b3d711a4-c6a4-11e3-8fd3-738e7fbcb6d6)]
20 interface nsIInterAppCommService : nsISupports
21 {
22 /*
23 * Registration of a page that wants to be connected to other apps through
24 * the Inter-App Communication API.
25 *
26 * @param keyword The connection's keyword.
27 * @param handlerPageURI The URI of the handler's page.
28 * @param manifestURI The webapp's manifest URI.
29 * @param description The connection's description.
30 * @param rules The connection's rules.
31 */
32 void registerConnection(in DOMString keyword,
33 in nsIURI handlerPageURI,
34 in nsIURI manifestURI,
35 in DOMString description,
36 in jsval rules);
37 };

mercurial