LCOV - code coverage report
Current view: directory - objdir/dist/include - imgIRequest.h (source / functions) Found Hit Coverage
Test: app.info Lines: 1 1 100.0 %
Date: 2012-06-02 Functions: 1 1 100.0 %

       1                 : /*
       2                 :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/image/public/imgIRequest.idl
       3                 :  */
       4                 : 
       5                 : #ifndef __gen_imgIRequest_h__
       6                 : #define __gen_imgIRequest_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 imgIContainer; /* forward declaration */
      22                 : 
      23                 : class imgIDecoderObserver; /* forward declaration */
      24                 : 
      25                 : class nsIURI; /* forward declaration */
      26                 : 
      27                 : class nsIPrincipal; /* forward declaration */
      28                 : 
      29                 : 
      30                 : /* starting interface:    imgIRequest */
      31                 : #define IMGIREQUEST_IID_STR "d35a9adb-8328-4b64-b06f-72a165acd080"
      32                 : 
      33                 : #define IMGIREQUEST_IID \
      34                 :   {0xd35a9adb, 0x8328, 0x4b64, \
      35                 :     { 0xb0, 0x6f, 0x72, 0xa1, 0x65, 0xac, 0xd0, 0x80 }}
      36                 : 
      37              31 : class NS_NO_VTABLE NS_SCRIPTABLE imgIRequest : public nsIRequest {
      38                 :  public: 
      39                 : 
      40                 :   NS_DECLARE_STATIC_IID_ACCESSOR(IMGIREQUEST_IID)
      41                 : 
      42                 :   /* readonly attribute imgIContainer image; */
      43                 :   NS_SCRIPTABLE NS_IMETHOD GetImage(imgIContainer * *aImage) = 0;
      44                 : 
      45                 :   enum {
      46                 :     STATUS_NONE = 0,
      47                 :     STATUS_SIZE_AVAILABLE = 1,
      48                 :     STATUS_LOAD_PARTIAL = 2,
      49                 :     STATUS_LOAD_COMPLETE = 4,
      50                 :     STATUS_ERROR = 8,
      51                 :     STATUS_FRAME_COMPLETE = 16,
      52                 :     STATUS_DECODE_COMPLETE = 32
      53                 :   };
      54                 : 
      55                 :   /* readonly attribute unsigned long imageStatus; */
      56                 :   NS_SCRIPTABLE NS_IMETHOD GetImageStatus(PRUint32 *aImageStatus) = 0;
      57                 : 
      58                 :   /* readonly attribute nsIURI URI; */
      59                 :   NS_SCRIPTABLE NS_IMETHOD GetURI(nsIURI * *aURI) = 0;
      60                 : 
      61                 :   /* readonly attribute imgIDecoderObserver decoderObserver; */
      62                 :   NS_SCRIPTABLE NS_IMETHOD GetDecoderObserver(imgIDecoderObserver * *aDecoderObserver) = 0;
      63                 : 
      64                 :   /* readonly attribute string mimeType; */
      65                 :   NS_SCRIPTABLE NS_IMETHOD GetMimeType(char * *aMimeType) = 0;
      66                 : 
      67                 :   /* imgIRequest clone (in imgIDecoderObserver aObserver); */
      68                 :   NS_SCRIPTABLE NS_IMETHOD Clone(imgIDecoderObserver *aObserver, imgIRequest * *_retval NS_OUTPARAM) = 0;
      69                 : 
      70                 :   /* readonly attribute nsIPrincipal imagePrincipal; */
      71                 :   NS_SCRIPTABLE NS_IMETHOD GetImagePrincipal(nsIPrincipal * *aImagePrincipal) = 0;
      72                 : 
      73                 :   enum {
      74                 :     CORS_NONE = 1,
      75                 :     CORS_ANONYMOUS = 2,
      76                 :     CORS_USE_CREDENTIALS = 3
      77                 :   };
      78                 : 
      79                 :   /* readonly attribute long CORSMode; */
      80                 :   NS_SCRIPTABLE NS_IMETHOD GetCORSMode(PRInt32 *aCORSMode) = 0;
      81                 : 
      82                 :   /* void cancelAndForgetObserver (in nsresult aStatus); */
      83                 :   NS_SCRIPTABLE NS_IMETHOD CancelAndForgetObserver(nsresult aStatus) = 0;
      84                 : 
      85                 :   /* void requestDecode (); */
      86                 :   NS_SCRIPTABLE NS_IMETHOD RequestDecode(void) = 0;
      87                 : 
      88                 :   /* void lockImage (); */
      89                 :   NS_SCRIPTABLE NS_IMETHOD LockImage(void) = 0;
      90                 : 
      91                 :   /* void unlockImage (); */
      92                 :   NS_SCRIPTABLE NS_IMETHOD UnlockImage(void) = 0;
      93                 : 
      94                 :   /* void requestDiscard (); */
      95                 :   NS_SCRIPTABLE NS_IMETHOD RequestDiscard(void) = 0;
      96                 : 
      97                 :   /* imgIRequest getStaticRequest (); */
      98                 :   NS_SCRIPTABLE NS_IMETHOD GetStaticRequest(imgIRequest * *_retval NS_OUTPARAM) = 0;
      99                 : 
     100                 :   /* void incrementAnimationConsumers (); */
     101                 :   NS_SCRIPTABLE NS_IMETHOD IncrementAnimationConsumers(void) = 0;
     102                 : 
     103                 :   /* void decrementAnimationConsumers (); */
     104                 :   NS_SCRIPTABLE NS_IMETHOD DecrementAnimationConsumers(void) = 0;
     105                 : 
     106                 : };
     107                 : 
     108                 :   NS_DEFINE_STATIC_IID_ACCESSOR(imgIRequest, IMGIREQUEST_IID)
     109                 : 
     110                 : /* Use this macro when declaring classes that implement this interface. */
     111                 : #define NS_DECL_IMGIREQUEST \
     112                 :   NS_SCRIPTABLE NS_IMETHOD GetImage(imgIContainer * *aImage); \
     113                 :   NS_SCRIPTABLE NS_IMETHOD GetImageStatus(PRUint32 *aImageStatus); \
     114                 :   NS_SCRIPTABLE NS_IMETHOD GetURI(nsIURI * *aURI); \
     115                 :   NS_SCRIPTABLE NS_IMETHOD GetDecoderObserver(imgIDecoderObserver * *aDecoderObserver); \
     116                 :   NS_SCRIPTABLE NS_IMETHOD GetMimeType(char * *aMimeType); \
     117                 :   NS_SCRIPTABLE NS_IMETHOD Clone(imgIDecoderObserver *aObserver, imgIRequest * *_retval NS_OUTPARAM); \
     118                 :   NS_SCRIPTABLE NS_IMETHOD GetImagePrincipal(nsIPrincipal * *aImagePrincipal); \
     119                 :   NS_SCRIPTABLE NS_IMETHOD GetCORSMode(PRInt32 *aCORSMode); \
     120                 :   NS_SCRIPTABLE NS_IMETHOD CancelAndForgetObserver(nsresult aStatus); \
     121                 :   NS_SCRIPTABLE NS_IMETHOD RequestDecode(void); \
     122                 :   NS_SCRIPTABLE NS_IMETHOD LockImage(void); \
     123                 :   NS_SCRIPTABLE NS_IMETHOD UnlockImage(void); \
     124                 :   NS_SCRIPTABLE NS_IMETHOD RequestDiscard(void); \
     125                 :   NS_SCRIPTABLE NS_IMETHOD GetStaticRequest(imgIRequest * *_retval NS_OUTPARAM); \
     126                 :   NS_SCRIPTABLE NS_IMETHOD IncrementAnimationConsumers(void); \
     127                 :   NS_SCRIPTABLE NS_IMETHOD DecrementAnimationConsumers(void); 
     128                 : 
     129                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     130                 : #define NS_FORWARD_IMGIREQUEST(_to) \
     131                 :   NS_SCRIPTABLE NS_IMETHOD GetImage(imgIContainer * *aImage) { return _to GetImage(aImage); } \
     132                 :   NS_SCRIPTABLE NS_IMETHOD GetImageStatus(PRUint32 *aImageStatus) { return _to GetImageStatus(aImageStatus); } \
     133                 :   NS_SCRIPTABLE NS_IMETHOD GetURI(nsIURI * *aURI) { return _to GetURI(aURI); } \
     134                 :   NS_SCRIPTABLE NS_IMETHOD GetDecoderObserver(imgIDecoderObserver * *aDecoderObserver) { return _to GetDecoderObserver(aDecoderObserver); } \
     135                 :   NS_SCRIPTABLE NS_IMETHOD GetMimeType(char * *aMimeType) { return _to GetMimeType(aMimeType); } \
     136                 :   NS_SCRIPTABLE NS_IMETHOD Clone(imgIDecoderObserver *aObserver, imgIRequest * *_retval NS_OUTPARAM) { return _to Clone(aObserver, _retval); } \
     137                 :   NS_SCRIPTABLE NS_IMETHOD GetImagePrincipal(nsIPrincipal * *aImagePrincipal) { return _to GetImagePrincipal(aImagePrincipal); } \
     138                 :   NS_SCRIPTABLE NS_IMETHOD GetCORSMode(PRInt32 *aCORSMode) { return _to GetCORSMode(aCORSMode); } \
     139                 :   NS_SCRIPTABLE NS_IMETHOD CancelAndForgetObserver(nsresult aStatus) { return _to CancelAndForgetObserver(aStatus); } \
     140                 :   NS_SCRIPTABLE NS_IMETHOD RequestDecode(void) { return _to RequestDecode(); } \
     141                 :   NS_SCRIPTABLE NS_IMETHOD LockImage(void) { return _to LockImage(); } \
     142                 :   NS_SCRIPTABLE NS_IMETHOD UnlockImage(void) { return _to UnlockImage(); } \
     143                 :   NS_SCRIPTABLE NS_IMETHOD RequestDiscard(void) { return _to RequestDiscard(); } \
     144                 :   NS_SCRIPTABLE NS_IMETHOD GetStaticRequest(imgIRequest * *_retval NS_OUTPARAM) { return _to GetStaticRequest(_retval); } \
     145                 :   NS_SCRIPTABLE NS_IMETHOD IncrementAnimationConsumers(void) { return _to IncrementAnimationConsumers(); } \
     146                 :   NS_SCRIPTABLE NS_IMETHOD DecrementAnimationConsumers(void) { return _to DecrementAnimationConsumers(); } 
     147                 : 
     148                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     149                 : #define NS_FORWARD_SAFE_IMGIREQUEST(_to) \
     150                 :   NS_SCRIPTABLE NS_IMETHOD GetImage(imgIContainer * *aImage) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetImage(aImage); } \
     151                 :   NS_SCRIPTABLE NS_IMETHOD GetImageStatus(PRUint32 *aImageStatus) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetImageStatus(aImageStatus); } \
     152                 :   NS_SCRIPTABLE NS_IMETHOD GetURI(nsIURI * *aURI) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetURI(aURI); } \
     153                 :   NS_SCRIPTABLE NS_IMETHOD GetDecoderObserver(imgIDecoderObserver * *aDecoderObserver) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDecoderObserver(aDecoderObserver); } \
     154                 :   NS_SCRIPTABLE NS_IMETHOD GetMimeType(char * *aMimeType) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMimeType(aMimeType); } \
     155                 :   NS_SCRIPTABLE NS_IMETHOD Clone(imgIDecoderObserver *aObserver, imgIRequest * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->Clone(aObserver, _retval); } \
     156                 :   NS_SCRIPTABLE NS_IMETHOD GetImagePrincipal(nsIPrincipal * *aImagePrincipal) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetImagePrincipal(aImagePrincipal); } \
     157                 :   NS_SCRIPTABLE NS_IMETHOD GetCORSMode(PRInt32 *aCORSMode) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCORSMode(aCORSMode); } \
     158                 :   NS_SCRIPTABLE NS_IMETHOD CancelAndForgetObserver(nsresult aStatus) { return !_to ? NS_ERROR_NULL_POINTER : _to->CancelAndForgetObserver(aStatus); } \
     159                 :   NS_SCRIPTABLE NS_IMETHOD RequestDecode(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->RequestDecode(); } \
     160                 :   NS_SCRIPTABLE NS_IMETHOD LockImage(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->LockImage(); } \
     161                 :   NS_SCRIPTABLE NS_IMETHOD UnlockImage(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->UnlockImage(); } \
     162                 :   NS_SCRIPTABLE NS_IMETHOD RequestDiscard(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->RequestDiscard(); } \
     163                 :   NS_SCRIPTABLE NS_IMETHOD GetStaticRequest(imgIRequest * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStaticRequest(_retval); } \
     164                 :   NS_SCRIPTABLE NS_IMETHOD IncrementAnimationConsumers(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->IncrementAnimationConsumers(); } \
     165                 :   NS_SCRIPTABLE NS_IMETHOD DecrementAnimationConsumers(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->DecrementAnimationConsumers(); } 
     166                 : 
     167                 : #if 0
     168                 : /* Use the code below as a template for the implementation class for this interface. */
     169                 : 
     170                 : /* Header file */
     171                 : class _MYCLASS_ : public imgIRequest
     172                 : {
     173                 : public:
     174                 :   NS_DECL_ISUPPORTS
     175                 :   NS_DECL_IMGIREQUEST
     176                 : 
     177                 :   _MYCLASS_();
     178                 : 
     179                 : private:
     180                 :   ~_MYCLASS_();
     181                 : 
     182                 : protected:
     183                 :   /* additional members */
     184                 : };
     185                 : 
     186                 : /* Implementation file */
     187                 : NS_IMPL_ISUPPORTS1(_MYCLASS_, imgIRequest)
     188                 : 
     189                 : _MYCLASS_::_MYCLASS_()
     190                 : {
     191                 :   /* member initializers and constructor code */
     192                 : }
     193                 : 
     194                 : _MYCLASS_::~_MYCLASS_()
     195                 : {
     196                 :   /* destructor code */
     197                 : }
     198                 : 
     199                 : /* readonly attribute imgIContainer image; */
     200                 : NS_IMETHODIMP _MYCLASS_::GetImage(imgIContainer * *aImage)
     201                 : {
     202                 :     return NS_ERROR_NOT_IMPLEMENTED;
     203                 : }
     204                 : 
     205                 : /* readonly attribute unsigned long imageStatus; */
     206                 : NS_IMETHODIMP _MYCLASS_::GetImageStatus(PRUint32 *aImageStatus)
     207                 : {
     208                 :     return NS_ERROR_NOT_IMPLEMENTED;
     209                 : }
     210                 : 
     211                 : /* readonly attribute nsIURI URI; */
     212                 : NS_IMETHODIMP _MYCLASS_::GetURI(nsIURI * *aURI)
     213                 : {
     214                 :     return NS_ERROR_NOT_IMPLEMENTED;
     215                 : }
     216                 : 
     217                 : /* readonly attribute imgIDecoderObserver decoderObserver; */
     218                 : NS_IMETHODIMP _MYCLASS_::GetDecoderObserver(imgIDecoderObserver * *aDecoderObserver)
     219                 : {
     220                 :     return NS_ERROR_NOT_IMPLEMENTED;
     221                 : }
     222                 : 
     223                 : /* readonly attribute string mimeType; */
     224                 : NS_IMETHODIMP _MYCLASS_::GetMimeType(char * *aMimeType)
     225                 : {
     226                 :     return NS_ERROR_NOT_IMPLEMENTED;
     227                 : }
     228                 : 
     229                 : /* imgIRequest clone (in imgIDecoderObserver aObserver); */
     230                 : NS_IMETHODIMP _MYCLASS_::Clone(imgIDecoderObserver *aObserver, imgIRequest * *_retval NS_OUTPARAM)
     231                 : {
     232                 :     return NS_ERROR_NOT_IMPLEMENTED;
     233                 : }
     234                 : 
     235                 : /* readonly attribute nsIPrincipal imagePrincipal; */
     236                 : NS_IMETHODIMP _MYCLASS_::GetImagePrincipal(nsIPrincipal * *aImagePrincipal)
     237                 : {
     238                 :     return NS_ERROR_NOT_IMPLEMENTED;
     239                 : }
     240                 : 
     241                 : /* readonly attribute long CORSMode; */
     242                 : NS_IMETHODIMP _MYCLASS_::GetCORSMode(PRInt32 *aCORSMode)
     243                 : {
     244                 :     return NS_ERROR_NOT_IMPLEMENTED;
     245                 : }
     246                 : 
     247                 : /* void cancelAndForgetObserver (in nsresult aStatus); */
     248                 : NS_IMETHODIMP _MYCLASS_::CancelAndForgetObserver(nsresult aStatus)
     249                 : {
     250                 :     return NS_ERROR_NOT_IMPLEMENTED;
     251                 : }
     252                 : 
     253                 : /* void requestDecode (); */
     254                 : NS_IMETHODIMP _MYCLASS_::RequestDecode()
     255                 : {
     256                 :     return NS_ERROR_NOT_IMPLEMENTED;
     257                 : }
     258                 : 
     259                 : /* void lockImage (); */
     260                 : NS_IMETHODIMP _MYCLASS_::LockImage()
     261                 : {
     262                 :     return NS_ERROR_NOT_IMPLEMENTED;
     263                 : }
     264                 : 
     265                 : /* void unlockImage (); */
     266                 : NS_IMETHODIMP _MYCLASS_::UnlockImage()
     267                 : {
     268                 :     return NS_ERROR_NOT_IMPLEMENTED;
     269                 : }
     270                 : 
     271                 : /* void requestDiscard (); */
     272                 : NS_IMETHODIMP _MYCLASS_::RequestDiscard()
     273                 : {
     274                 :     return NS_ERROR_NOT_IMPLEMENTED;
     275                 : }
     276                 : 
     277                 : /* imgIRequest getStaticRequest (); */
     278                 : NS_IMETHODIMP _MYCLASS_::GetStaticRequest(imgIRequest * *_retval NS_OUTPARAM)
     279                 : {
     280                 :     return NS_ERROR_NOT_IMPLEMENTED;
     281                 : }
     282                 : 
     283                 : /* void incrementAnimationConsumers (); */
     284                 : NS_IMETHODIMP _MYCLASS_::IncrementAnimationConsumers()
     285                 : {
     286                 :     return NS_ERROR_NOT_IMPLEMENTED;
     287                 : }
     288                 : 
     289                 : /* void decrementAnimationConsumers (); */
     290                 : NS_IMETHODIMP _MYCLASS_::DecrementAnimationConsumers()
     291                 : {
     292                 :     return NS_ERROR_NOT_IMPLEMENTED;
     293                 : }
     294                 : 
     295                 : /* End of implementation class template. */
     296                 : #endif
     297                 : 
     298                 : 
     299                 : #endif /* __gen_imgIRequest_h__ */

Generated by: LCOV version 1.7