netwerk/base/public/nsISimpleStreamListener.idl

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/netwerk/base/public/nsISimpleStreamListener.idl	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,25 @@
     1.4 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.5 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.6 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.7 +
     1.8 +#include "nsIStreamListener.idl"
     1.9 +
    1.10 +interface nsIOutputStream;
    1.11 +
    1.12 +/**
    1.13 + * A simple stream listener can be used with AsyncRead to supply data to
    1.14 + * a output stream.
    1.15 + */
    1.16 +[scriptable, uuid(a9b84f6a-0824-4278-bae6-bfca0570a26e)]
    1.17 +interface nsISimpleStreamListener : nsIStreamListener
    1.18 +{
    1.19 +    /**
    1.20 +     * Initialize the simple stream listener.
    1.21 +     *
    1.22 +     * @param aSink data will be read from the channel to this output stream.
    1.23 +     *              Must implement writeFrom.
    1.24 +     * @param aObserver optional stream observer (can be NULL)
    1.25 +     */
    1.26 +    void init(in nsIOutputStream aSink,
    1.27 +              in nsIRequestObserver aObserver);
    1.28 +};

mercurial