1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/image/public/imgILoader.idl
3 : */
4 :
5 : #ifndef __gen_imgILoader_h__
6 : #define __gen_imgILoader_h__
7 :
8 :
9 : #ifndef __gen_nsISupports_h__
10 : #include "nsISupports.h"
11 : #endif
12 :
13 : #ifndef __gen_nsIRequest_h__
14 : #include "nsIRequest.h"
15 : #endif
16 :
17 : /* For IDL files that don't want to include root IDL files. */
18 : #ifndef NS_NO_VTABLE
19 : #define NS_NO_VTABLE
20 : #endif
21 : class imgIDecoderObserver; /* forward declaration */
22 :
23 : class imgIRequest; /* forward declaration */
24 :
25 : class nsIChannel; /* forward declaration */
26 :
27 : class nsILoadGroup; /* forward declaration */
28 :
29 : class nsIPrincipal; /* forward declaration */
30 :
31 : class nsIStreamListener; /* forward declaration */
32 :
33 : class nsIURI; /* forward declaration */
34 :
35 : class nsISimpleEnumerator; /* forward declaration */
36 :
37 : class nsIChannelPolicy; /* forward declaration */
38 :
39 :
40 : /* starting interface: imgILoader */
41 : #define IMGILOADER_IID_STR "20a5e3e9-0d5b-482c-9f41-942b5f19e5a3"
42 :
43 : #define IMGILOADER_IID \
44 : {0x20a5e3e9, 0x0d5b, 0x482c, \
45 : { 0x9f, 0x41, 0x94, 0x2b, 0x5f, 0x19, 0xe5, 0xa3 }}
46 :
47 1647 : class NS_NO_VTABLE NS_SCRIPTABLE imgILoader : public nsISupports {
48 : public:
49 :
50 : NS_DECLARE_STATIC_IID_ACCESSOR(IMGILOADER_IID)
51 :
52 : enum {
53 : LOAD_CORS_ANONYMOUS = 65536U,
54 : LOAD_CORS_USE_CREDENTIALS = 131072U
55 : };
56 :
57 : /* imgIRequest loadImage (in nsIURI aURI, in nsIURI aInitialDocumentURL, in nsIURI aReferrerURI, in nsIPrincipal aLoadingPrincipal, in nsILoadGroup aLoadGroup, in imgIDecoderObserver aObserver, in nsISupports aCX, in nsLoadFlags aLoadFlags, in nsISupports cacheKey, in imgIRequest aRequest, in nsIChannelPolicy channelPolicy); */
58 : NS_SCRIPTABLE NS_IMETHOD LoadImage(nsIURI *aURI, nsIURI *aInitialDocumentURL, nsIURI *aReferrerURI, nsIPrincipal *aLoadingPrincipal, nsILoadGroup *aLoadGroup, imgIDecoderObserver *aObserver, nsISupports *aCX, nsLoadFlags aLoadFlags, nsISupports *cacheKey, imgIRequest *aRequest, nsIChannelPolicy *channelPolicy, imgIRequest * *_retval NS_OUTPARAM) = 0;
59 :
60 : /* imgIRequest loadImageWithChannel (in nsIChannel aChannel, in imgIDecoderObserver aObserver, in nsISupports cx, out nsIStreamListener aListener); */
61 : NS_SCRIPTABLE NS_IMETHOD LoadImageWithChannel(nsIChannel *aChannel, imgIDecoderObserver *aObserver, nsISupports *cx, nsIStreamListener * *aListener NS_OUTPARAM, imgIRequest * *_retval NS_OUTPARAM) = 0;
62 :
63 : /* boolean supportImageWithMimeType (in string mimeType); */
64 : NS_SCRIPTABLE NS_IMETHOD SupportImageWithMimeType(const char * mimeType, bool *_retval NS_OUTPARAM) = 0;
65 :
66 : };
67 :
68 : NS_DEFINE_STATIC_IID_ACCESSOR(imgILoader, IMGILOADER_IID)
69 :
70 : /* Use this macro when declaring classes that implement this interface. */
71 : #define NS_DECL_IMGILOADER \
72 : NS_SCRIPTABLE NS_IMETHOD LoadImage(nsIURI *aURI, nsIURI *aInitialDocumentURL, nsIURI *aReferrerURI, nsIPrincipal *aLoadingPrincipal, nsILoadGroup *aLoadGroup, imgIDecoderObserver *aObserver, nsISupports *aCX, nsLoadFlags aLoadFlags, nsISupports *cacheKey, imgIRequest *aRequest, nsIChannelPolicy *channelPolicy, imgIRequest * *_retval NS_OUTPARAM); \
73 : NS_SCRIPTABLE NS_IMETHOD LoadImageWithChannel(nsIChannel *aChannel, imgIDecoderObserver *aObserver, nsISupports *cx, nsIStreamListener * *aListener NS_OUTPARAM, imgIRequest * *_retval NS_OUTPARAM); \
74 : NS_SCRIPTABLE NS_IMETHOD SupportImageWithMimeType(const char * mimeType, bool *_retval NS_OUTPARAM);
75 :
76 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
77 : #define NS_FORWARD_IMGILOADER(_to) \
78 : NS_SCRIPTABLE NS_IMETHOD LoadImage(nsIURI *aURI, nsIURI *aInitialDocumentURL, nsIURI *aReferrerURI, nsIPrincipal *aLoadingPrincipal, nsILoadGroup *aLoadGroup, imgIDecoderObserver *aObserver, nsISupports *aCX, nsLoadFlags aLoadFlags, nsISupports *cacheKey, imgIRequest *aRequest, nsIChannelPolicy *channelPolicy, imgIRequest * *_retval NS_OUTPARAM) { return _to LoadImage(aURI, aInitialDocumentURL, aReferrerURI, aLoadingPrincipal, aLoadGroup, aObserver, aCX, aLoadFlags, cacheKey, aRequest, channelPolicy, _retval); } \
79 : NS_SCRIPTABLE NS_IMETHOD LoadImageWithChannel(nsIChannel *aChannel, imgIDecoderObserver *aObserver, nsISupports *cx, nsIStreamListener * *aListener NS_OUTPARAM, imgIRequest * *_retval NS_OUTPARAM) { return _to LoadImageWithChannel(aChannel, aObserver, cx, aListener, _retval); } \
80 : NS_SCRIPTABLE NS_IMETHOD SupportImageWithMimeType(const char * mimeType, bool *_retval NS_OUTPARAM) { return _to SupportImageWithMimeType(mimeType, _retval); }
81 :
82 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
83 : #define NS_FORWARD_SAFE_IMGILOADER(_to) \
84 : NS_SCRIPTABLE NS_IMETHOD LoadImage(nsIURI *aURI, nsIURI *aInitialDocumentURL, nsIURI *aReferrerURI, nsIPrincipal *aLoadingPrincipal, nsILoadGroup *aLoadGroup, imgIDecoderObserver *aObserver, nsISupports *aCX, nsLoadFlags aLoadFlags, nsISupports *cacheKey, imgIRequest *aRequest, nsIChannelPolicy *channelPolicy, imgIRequest * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->LoadImage(aURI, aInitialDocumentURL, aReferrerURI, aLoadingPrincipal, aLoadGroup, aObserver, aCX, aLoadFlags, cacheKey, aRequest, channelPolicy, _retval); } \
85 : NS_SCRIPTABLE NS_IMETHOD LoadImageWithChannel(nsIChannel *aChannel, imgIDecoderObserver *aObserver, nsISupports *cx, nsIStreamListener * *aListener NS_OUTPARAM, imgIRequest * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->LoadImageWithChannel(aChannel, aObserver, cx, aListener, _retval); } \
86 : NS_SCRIPTABLE NS_IMETHOD SupportImageWithMimeType(const char * mimeType, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->SupportImageWithMimeType(mimeType, _retval); }
87 :
88 : #if 0
89 : /* Use the code below as a template for the implementation class for this interface. */
90 :
91 : /* Header file */
92 : class _MYCLASS_ : public imgILoader
93 : {
94 : public:
95 : NS_DECL_ISUPPORTS
96 : NS_DECL_IMGILOADER
97 :
98 : _MYCLASS_();
99 :
100 : private:
101 : ~_MYCLASS_();
102 :
103 : protected:
104 : /* additional members */
105 : };
106 :
107 : /* Implementation file */
108 : NS_IMPL_ISUPPORTS1(_MYCLASS_, imgILoader)
109 :
110 : _MYCLASS_::_MYCLASS_()
111 : {
112 : /* member initializers and constructor code */
113 : }
114 :
115 : _MYCLASS_::~_MYCLASS_()
116 : {
117 : /* destructor code */
118 : }
119 :
120 : /* imgIRequest loadImage (in nsIURI aURI, in nsIURI aInitialDocumentURL, in nsIURI aReferrerURI, in nsIPrincipal aLoadingPrincipal, in nsILoadGroup aLoadGroup, in imgIDecoderObserver aObserver, in nsISupports aCX, in nsLoadFlags aLoadFlags, in nsISupports cacheKey, in imgIRequest aRequest, in nsIChannelPolicy channelPolicy); */
121 : NS_IMETHODIMP _MYCLASS_::LoadImage(nsIURI *aURI, nsIURI *aInitialDocumentURL, nsIURI *aReferrerURI, nsIPrincipal *aLoadingPrincipal, nsILoadGroup *aLoadGroup, imgIDecoderObserver *aObserver, nsISupports *aCX, nsLoadFlags aLoadFlags, nsISupports *cacheKey, imgIRequest *aRequest, nsIChannelPolicy *channelPolicy, imgIRequest * *_retval NS_OUTPARAM)
122 : {
123 : return NS_ERROR_NOT_IMPLEMENTED;
124 : }
125 :
126 : /* imgIRequest loadImageWithChannel (in nsIChannel aChannel, in imgIDecoderObserver aObserver, in nsISupports cx, out nsIStreamListener aListener); */
127 : NS_IMETHODIMP _MYCLASS_::LoadImageWithChannel(nsIChannel *aChannel, imgIDecoderObserver *aObserver, nsISupports *cx, nsIStreamListener * *aListener NS_OUTPARAM, imgIRequest * *_retval NS_OUTPARAM)
128 : {
129 : return NS_ERROR_NOT_IMPLEMENTED;
130 : }
131 :
132 : /* boolean supportImageWithMimeType (in string mimeType); */
133 : NS_IMETHODIMP _MYCLASS_::SupportImageWithMimeType(const char * mimeType, bool *_retval NS_OUTPARAM)
134 : {
135 : return NS_ERROR_NOT_IMPLEMENTED;
136 : }
137 :
138 : /* End of implementation class template. */
139 : #endif
140 :
141 :
142 : #endif /* __gen_imgILoader_h__ */
|