michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #include "nsIStreamListener.idl" michael@0: michael@0: [scriptable, uuid(7e1aa658-6e3f-4521-9946-9685a169f764)] michael@0: interface nsISyncStreamListener : nsIStreamListener michael@0: { michael@0: /** michael@0: * Returns an input stream that when read will fetch data delivered to the michael@0: * sync stream listener. The nsIInputStream implementation will wait for michael@0: * OnDataAvailable events before returning from Read. michael@0: * michael@0: * NOTE: Reading from the returned nsIInputStream may spin the current michael@0: * thread's event queue, which could result in any event being processed. michael@0: */ michael@0: readonly attribute nsIInputStream inputStream; michael@0: };