/* * DO NOT EDIT. THIS FILE IS GENERATED FROM nsIStreamProviderProxy.idl */ #ifndef __gen_nsIStreamProviderProxy_h__ #define __gen_nsIStreamProviderProxy_h__ #ifndef __gen_nsIStreamProvider_h__ #include "nsIStreamProvider.h" #endif /* For IDL files that don't want to include root IDL files. */ #ifndef NS_NO_VTABLE #define NS_NO_VTABLE #endif class nsIEventQueue; /* forward declaration */ /* starting interface: nsIStreamProviderProxy */ #define NS_ISTREAMPROVIDERPROXY_IID_STR "5c3b0bac-605a-49ac-880e-5c8b993f7d2b" #define NS_ISTREAMPROVIDERPROXY_IID \ {0x5c3b0bac, 0x605a, 0x49ac, \ { 0x88, 0x0e, 0x5c, 0x8b, 0x99, 0x3f, 0x7d, 0x2b }} /** * A stream provider proxy is used to ship data over to another thread specified * by the thread's event queue. The "true" stream provider's methods are * invoked on the other thread. * * This interface only provides the initialization needed after construction. * Otherwise, these objects may be used as a nsIStreamProvider. */ class NS_NO_VTABLE nsIStreamProviderProxy : public nsIStreamProvider { public: NS_DEFINE_STATIC_IID_ACCESSOR(NS_ISTREAMPROVIDERPROXY_IID) /** * Initializes an nsIStreamProviderProxy. * * @param aProvider - receives provider notifications on the other thread. * @param aEventQ - may be NULL indicating the calling thread's event queue. */ /* void init (in nsIStreamProvider aProvider, in nsIEventQueue aEventQ, in unsigned long aBufferSegmentSize, in unsigned long aBufferMaxSize); */ NS_IMETHOD Init(nsIStreamProvider *aProvider, nsIEventQueue *aEventQ, PRUint32 aBufferSegmentSize, PRUint32 aBufferMaxSize) = 0; }; /* Use this macro when declaring classes that implement this interface. */ #define NS_DECL_NSISTREAMPROVIDERPROXY \ NS_IMETHOD Init(nsIStreamProvider *aProvider, nsIEventQueue *aEventQ, PRUint32 aBufferSegmentSize, PRUint32 aBufferMaxSize); /* Use this macro to declare functions that forward the behavior of this interface to another object. */ #define NS_FORWARD_NSISTREAMPROVIDERPROXY(_to) \ NS_IMETHOD Init(nsIStreamProvider *aProvider, nsIEventQueue *aEventQ, PRUint32 aBufferSegmentSize, PRUint32 aBufferMaxSize) { return _to Init(aProvider, aEventQ, aBufferSegmentSize, aBufferMaxSize); } /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */ #define NS_FORWARD_SAFE_NSISTREAMPROVIDERPROXY(_to) \ NS_IMETHOD Init(nsIStreamProvider *aProvider, nsIEventQueue *aEventQ, PRUint32 aBufferSegmentSize, PRUint32 aBufferMaxSize) { return !_to ? NS_ERROR_NULL_POINTER : _to->Init(aProvider, aEventQ, aBufferSegmentSize, aBufferMaxSize); } #if 0 /* Use the code below as a template for the implementation class for this interface. */ /* Header file */ class nsStreamProviderProxy : public nsIStreamProviderProxy { public: NS_DECL_ISUPPORTS NS_DECL_NSISTREAMPROVIDERPROXY nsStreamProviderProxy(); virtual ~nsStreamProviderProxy(); /* additional members */ }; /* Implementation file */ NS_IMPL_ISUPPORTS1(nsStreamProviderProxy, nsIStreamProviderProxy) nsStreamProviderProxy::nsStreamProviderProxy() { NS_INIT_ISUPPORTS(); /* member initializers and constructor code */ } nsStreamProviderProxy::~nsStreamProviderProxy() { /* destructor code */ } /* void init (in nsIStreamProvider aProvider, in nsIEventQueue aEventQ, in unsigned long aBufferSegmentSize, in unsigned long aBufferMaxSize); */ NS_IMETHODIMP nsStreamProviderProxy::Init(nsIStreamProvider *aProvider, nsIEventQueue *aEventQ, PRUint32 aBufferSegmentSize, PRUint32 aBufferMaxSize) { return NS_ERROR_NOT_IMPLEMENTED; } /* End of implementation class template. */ #endif #endif /* __gen_nsIStreamProviderProxy_h__ */ .