dom/interfaces/apps/nsIInterAppCommService.idl

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

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

mercurial