Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
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/. */
5 #include "nsISupports.idl"
7 /**
8 * Handle WAP Push notifications.
9 */
10 [scriptable, uuid(fd6f7f6b-a67e-4892-930d-fca864df8fe7)]
11 interface nsIWapPushApplication : nsISupports
12 {
13 /**
14 * Receive WAP Push message.
15 *
16 * @param aData
17 * An array containing raw PDU data.
18 * @param aLength
19 * Length of aData.
20 * @param aOffset
21 * Start offset of aData containing message body of the Push PDU.
22 * @param options
23 * An object containing various attributes from lower transport layer.
24 */
25 void receiveWapPush([array, size_is(aLength)] in octet aData,
26 in unsigned long aLength,
27 in unsigned long aOffset,
28 in jsval aOptions);
29 };