1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/netwerk/base/public/nsIAsyncStreamCopier.idl
3 : */
4 :
5 : #ifndef __gen_nsIAsyncStreamCopier_h__
6 : #define __gen_nsIAsyncStreamCopier_h__
7 :
8 :
9 : #ifndef __gen_nsIRequest_h__
10 : #include "nsIRequest.h"
11 : #endif
12 :
13 : /* For IDL files that don't want to include root IDL files. */
14 : #ifndef NS_NO_VTABLE
15 : #define NS_NO_VTABLE
16 : #endif
17 : class nsIInputStream; /* forward declaration */
18 :
19 : class nsIOutputStream; /* forward declaration */
20 :
21 : class nsIRequestObserver; /* forward declaration */
22 :
23 : class nsIEventTarget; /* forward declaration */
24 :
25 :
26 : /* starting interface: nsIAsyncStreamCopier */
27 : #define NS_IASYNCSTREAMCOPIER_IID_STR "5a19ca27-e041-4aca-8287-eb248d4c50c0"
28 :
29 : #define NS_IASYNCSTREAMCOPIER_IID \
30 : {0x5a19ca27, 0xe041, 0x4aca, \
31 : { 0x82, 0x87, 0xeb, 0x24, 0x8d, 0x4c, 0x50, 0xc0 }}
32 :
33 399 : class NS_NO_VTABLE NS_SCRIPTABLE nsIAsyncStreamCopier : public nsIRequest {
34 : public:
35 :
36 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IASYNCSTREAMCOPIER_IID)
37 :
38 : /* void init (in nsIInputStream aSource, in nsIOutputStream aSink, in nsIEventTarget aTarget, in boolean aSourceBuffered, in boolean aSinkBuffered, in unsigned long aChunkSize, in boolean aCloseSource, in boolean aCloseSink); */
39 : NS_SCRIPTABLE NS_IMETHOD Init(nsIInputStream *aSource, nsIOutputStream *aSink, nsIEventTarget *aTarget, bool aSourceBuffered, bool aSinkBuffered, PRUint32 aChunkSize, bool aCloseSource, bool aCloseSink) = 0;
40 :
41 : /* void asyncCopy (in nsIRequestObserver aObserver, in nsISupports aObserverContext); */
42 : NS_SCRIPTABLE NS_IMETHOD AsyncCopy(nsIRequestObserver *aObserver, nsISupports *aObserverContext) = 0;
43 :
44 : };
45 :
46 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIAsyncStreamCopier, NS_IASYNCSTREAMCOPIER_IID)
47 :
48 : /* Use this macro when declaring classes that implement this interface. */
49 : #define NS_DECL_NSIASYNCSTREAMCOPIER \
50 : NS_SCRIPTABLE NS_IMETHOD Init(nsIInputStream *aSource, nsIOutputStream *aSink, nsIEventTarget *aTarget, bool aSourceBuffered, bool aSinkBuffered, PRUint32 aChunkSize, bool aCloseSource, bool aCloseSink); \
51 : NS_SCRIPTABLE NS_IMETHOD AsyncCopy(nsIRequestObserver *aObserver, nsISupports *aObserverContext);
52 :
53 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
54 : #define NS_FORWARD_NSIASYNCSTREAMCOPIER(_to) \
55 : NS_SCRIPTABLE NS_IMETHOD Init(nsIInputStream *aSource, nsIOutputStream *aSink, nsIEventTarget *aTarget, bool aSourceBuffered, bool aSinkBuffered, PRUint32 aChunkSize, bool aCloseSource, bool aCloseSink) { return _to Init(aSource, aSink, aTarget, aSourceBuffered, aSinkBuffered, aChunkSize, aCloseSource, aCloseSink); } \
56 : NS_SCRIPTABLE NS_IMETHOD AsyncCopy(nsIRequestObserver *aObserver, nsISupports *aObserverContext) { return _to AsyncCopy(aObserver, aObserverContext); }
57 :
58 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
59 : #define NS_FORWARD_SAFE_NSIASYNCSTREAMCOPIER(_to) \
60 : NS_SCRIPTABLE NS_IMETHOD Init(nsIInputStream *aSource, nsIOutputStream *aSink, nsIEventTarget *aTarget, bool aSourceBuffered, bool aSinkBuffered, PRUint32 aChunkSize, bool aCloseSource, bool aCloseSink) { return !_to ? NS_ERROR_NULL_POINTER : _to->Init(aSource, aSink, aTarget, aSourceBuffered, aSinkBuffered, aChunkSize, aCloseSource, aCloseSink); } \
61 : NS_SCRIPTABLE NS_IMETHOD AsyncCopy(nsIRequestObserver *aObserver, nsISupports *aObserverContext) { return !_to ? NS_ERROR_NULL_POINTER : _to->AsyncCopy(aObserver, aObserverContext); }
62 :
63 : #if 0
64 : /* Use the code below as a template for the implementation class for this interface. */
65 :
66 : /* Header file */
67 : class nsAsyncStreamCopier : public nsIAsyncStreamCopier
68 : {
69 : public:
70 : NS_DECL_ISUPPORTS
71 : NS_DECL_NSIASYNCSTREAMCOPIER
72 :
73 : nsAsyncStreamCopier();
74 :
75 : private:
76 : ~nsAsyncStreamCopier();
77 :
78 : protected:
79 : /* additional members */
80 : };
81 :
82 : /* Implementation file */
83 : NS_IMPL_ISUPPORTS1(nsAsyncStreamCopier, nsIAsyncStreamCopier)
84 :
85 : nsAsyncStreamCopier::nsAsyncStreamCopier()
86 : {
87 : /* member initializers and constructor code */
88 : }
89 :
90 : nsAsyncStreamCopier::~nsAsyncStreamCopier()
91 : {
92 : /* destructor code */
93 : }
94 :
95 : /* void init (in nsIInputStream aSource, in nsIOutputStream aSink, in nsIEventTarget aTarget, in boolean aSourceBuffered, in boolean aSinkBuffered, in unsigned long aChunkSize, in boolean aCloseSource, in boolean aCloseSink); */
96 : NS_IMETHODIMP nsAsyncStreamCopier::Init(nsIInputStream *aSource, nsIOutputStream *aSink, nsIEventTarget *aTarget, bool aSourceBuffered, bool aSinkBuffered, PRUint32 aChunkSize, bool aCloseSource, bool aCloseSink)
97 : {
98 : return NS_ERROR_NOT_IMPLEMENTED;
99 : }
100 :
101 : /* void asyncCopy (in nsIRequestObserver aObserver, in nsISupports aObserverContext); */
102 : NS_IMETHODIMP nsAsyncStreamCopier::AsyncCopy(nsIRequestObserver *aObserver, nsISupports *aObserverContext)
103 : {
104 : return NS_ERROR_NOT_IMPLEMENTED;
105 : }
106 :
107 : /* End of implementation class template. */
108 : #endif
109 :
110 :
111 : #endif /* __gen_nsIAsyncStreamCopier_h__ */
|