dom/apps/src/InterAppCommService.js

changeset 2
7e26c7da4463
equal deleted inserted replaced
-1:000000000000 0:a05d2259f534
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 "use strict";
6
7 const { classes: Cc, interfaces: Ci, utils: Cu, results: Cr } = Components;
8
9 Cu.import("resource://gre/modules/XPCOMUtils.jsm");
10 Cu.import("resource://gre/modules/InterAppCommService.jsm");
11
12 function InterAppCommServiceProxy() {
13 }
14
15 InterAppCommServiceProxy.prototype = {
16 registerConnection: function(aKeyword, aHandlerPageURI, aManifestURI,
17 aDescription, aRules) {
18 InterAppCommService.
19 registerConnection(aKeyword, aHandlerPageURI, aManifestURI,
20 aDescription, aRules);
21 },
22
23 classID: Components.ID("{3dd15ce6-e7be-11e2-82bc-77967e7a63e6}"),
24
25 QueryInterface: XPCOMUtils.generateQI([Ci.nsIInterAppCommService])
26 }
27
28 this.NSGetFactory = XPCOMUtils.generateNSGetFactory([InterAppCommServiceProxy]);

mercurial