Wed, 31 Dec 2014 07:16:47 +0100
Revert simplistic fix pending revisit of Mozilla integration attempt.
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 |
michael@0 | 3 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 4 | |
michael@0 | 5 | #include "nsISupports.idl" |
michael@0 | 6 | |
michael@0 | 7 | [scriptable, uuid(98e31d3b-6cad-4cab-b4b3-4afff566ea65)] |
michael@0 | 8 | interface nsINetworkEventListener : nsISupports { |
michael@0 | 9 | void onEvent(in jsval result); |
michael@0 | 10 | }; |
michael@0 | 11 | |
michael@0 | 12 | [scriptable, uuid(f9d9c694-0aac-4f9a-98ac-7788f954239a)] |
michael@0 | 13 | interface nsINetworkWorker : nsISupports { |
michael@0 | 14 | void start(in nsINetworkEventListener listener); |
michael@0 | 15 | void shutdown(); |
michael@0 | 16 | [implicit_jscontext] |
michael@0 | 17 | void postMessage(in jsval options); |
michael@0 | 18 | }; |