LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/dist/include - imgIRequest.h (source / functions) Hit Total Coverage
Test: output.info Lines: 1 1 100.0 %
Date: 2017-07-14 16:53:18 Functions: 1 1 100.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /*
       2             :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/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 imgINotificationObserver; /* 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 "db0a945c-3883-424a-98d0-2ee0523b0255"
      32             : 
      33             : #define IMGIREQUEST_IID \
      34             :   {0xdb0a945c, 0x3883, 0x424a, \
      35             :     { 0x98, 0xd0, 0x2e, 0xe0, 0x52, 0x3b, 0x02, 0x55 }}
      36             : 
      37         137 : class NS_NO_VTABLE imgIRequest : public nsIRequest {
      38             :  public:
      39             : 
      40             :   NS_DECLARE_STATIC_IID_ACCESSOR(IMGIREQUEST_IID)
      41             : 
      42             :   /* readonly attribute imgIContainer image; */
      43             :   NS_IMETHOD GetImage(imgIContainer * *aImage) = 0;
      44             : 
      45             :   enum {
      46             :     STATUS_NONE = 0,
      47             :     STATUS_SIZE_AVAILABLE = 1,
      48             :     STATUS_LOAD_COMPLETE = 2,
      49             :     STATUS_ERROR = 4,
      50             :     STATUS_FRAME_COMPLETE = 8,
      51             :     STATUS_DECODE_COMPLETE = 16,
      52             :     STATUS_IS_ANIMATED = 32,
      53             :     STATUS_HAS_TRANSPARENCY = 64
      54             :   };
      55             : 
      56             :   /* readonly attribute unsigned long imageStatus; */
      57             :   NS_IMETHOD GetImageStatus(uint32_t *aImageStatus) = 0;
      58             : 
      59             :   /* [noscript] readonly attribute nsresult imageErrorCode; */
      60             :   NS_IMETHOD GetImageErrorCode(nsresult *aImageErrorCode) = 0;
      61             : 
      62             :   /* readonly attribute nsIURI URI; */
      63             :   NS_IMETHOD GetURI(nsIURI * *aURI) = 0;
      64             : 
      65             :   /* readonly attribute nsIURI currentURI; */
      66             :   NS_IMETHOD GetCurrentURI(nsIURI * *aCurrentURI) = 0;
      67             : 
      68             :   /* readonly attribute imgINotificationObserver notificationObserver; */
      69             :   NS_IMETHOD GetNotificationObserver(imgINotificationObserver * *aNotificationObserver) = 0;
      70             : 
      71             :   /* readonly attribute string mimeType; */
      72             :   NS_IMETHOD GetMimeType(char * *aMimeType) = 0;
      73             : 
      74             :   /* imgIRequest clone (in imgINotificationObserver aObserver); */
      75             :   NS_IMETHOD Clone(imgINotificationObserver *aObserver, imgIRequest * *_retval) = 0;
      76             : 
      77             :   /* readonly attribute nsIPrincipal imagePrincipal; */
      78             :   NS_IMETHOD GetImagePrincipal(nsIPrincipal * *aImagePrincipal) = 0;
      79             : 
      80             :   /* readonly attribute bool multipart; */
      81             :   NS_IMETHOD GetMultipart(bool *aMultipart) = 0;
      82             : 
      83             :   enum {
      84             :     CORS_NONE = 1,
      85             :     CORS_ANONYMOUS = 2,
      86             :     CORS_USE_CREDENTIALS = 3
      87             :   };
      88             : 
      89             :   /* readonly attribute long CORSMode; */
      90             :   NS_IMETHOD GetCORSMode(int32_t *aCORSMode) = 0;
      91             : 
      92             :   /* void cancelAndForgetObserver (in nsresult aStatus); */
      93             :   NS_IMETHOD CancelAndForgetObserver(nsresult aStatus) = 0;
      94             : 
      95             :   /* void startDecoding (in uint32_t aFlags); */
      96             :   NS_IMETHOD StartDecoding(uint32_t aFlags) = 0;
      97             : 
      98             :   /* [noscript,notxpcom] boolean startDecodingWithResult (in uint32_t aFlags); */
      99             :   NS_IMETHOD_(bool) StartDecodingWithResult(uint32_t aFlags) = 0;
     100             : 
     101             :   /* void lockImage (); */
     102             :   NS_IMETHOD LockImage(void) = 0;
     103             : 
     104             :   /* void unlockImage (); */
     105             :   NS_IMETHOD UnlockImage(void) = 0;
     106             : 
     107             :   /* void requestDiscard (); */
     108             :   NS_IMETHOD RequestDiscard(void) = 0;
     109             : 
     110             :   /* imgIRequest getStaticRequest (); */
     111             :   NS_IMETHOD GetStaticRequest(imgIRequest * *_retval) = 0;
     112             : 
     113             :   /* void incrementAnimationConsumers (); */
     114             :   NS_IMETHOD IncrementAnimationConsumers(void) = 0;
     115             : 
     116             :   /* void decrementAnimationConsumers (); */
     117             :   NS_IMETHOD DecrementAnimationConsumers(void) = 0;
     118             : 
     119             :   enum {
     120             :     CATEGORY_FRAME_INIT = 1U,
     121             :     CATEGORY_SIZE_QUERY = 2U,
     122             :     CATEGORY_DISPLAY = 4U
     123             :   };
     124             : 
     125             :   /* void boostPriority (in uint32_t aCategory); */
     126             :   NS_IMETHOD BoostPriority(uint32_t aCategory) = 0;
     127             : 
     128             : };
     129             : 
     130             :   NS_DEFINE_STATIC_IID_ACCESSOR(imgIRequest, IMGIREQUEST_IID)
     131             : 
     132             : /* Use this macro when declaring classes that implement this interface. */
     133             : #define NS_DECL_IMGIREQUEST \
     134             :   NS_IMETHOD GetImage(imgIContainer * *aImage) override; \
     135             :   NS_IMETHOD GetImageStatus(uint32_t *aImageStatus) override; \
     136             :   NS_IMETHOD GetImageErrorCode(nsresult *aImageErrorCode) override; \
     137             :   NS_IMETHOD GetURI(nsIURI * *aURI) override; \
     138             :   NS_IMETHOD GetCurrentURI(nsIURI * *aCurrentURI) override; \
     139             :   NS_IMETHOD GetNotificationObserver(imgINotificationObserver * *aNotificationObserver) override; \
     140             :   NS_IMETHOD GetMimeType(char * *aMimeType) override; \
     141             :   NS_IMETHOD Clone(imgINotificationObserver *aObserver, imgIRequest * *_retval) override; \
     142             :   NS_IMETHOD GetImagePrincipal(nsIPrincipal * *aImagePrincipal) override; \
     143             :   NS_IMETHOD GetMultipart(bool *aMultipart) override; \
     144             :   NS_IMETHOD GetCORSMode(int32_t *aCORSMode) override; \
     145             :   NS_IMETHOD CancelAndForgetObserver(nsresult aStatus) override; \
     146             :   NS_IMETHOD StartDecoding(uint32_t aFlags) override; \
     147             :   NS_IMETHOD_(bool) StartDecodingWithResult(uint32_t aFlags) override; \
     148             :   NS_IMETHOD LockImage(void) override; \
     149             :   NS_IMETHOD UnlockImage(void) override; \
     150             :   NS_IMETHOD RequestDiscard(void) override; \
     151             :   NS_IMETHOD GetStaticRequest(imgIRequest * *_retval) override; \
     152             :   NS_IMETHOD IncrementAnimationConsumers(void) override; \
     153             :   NS_IMETHOD DecrementAnimationConsumers(void) override; \
     154             :   NS_IMETHOD BoostPriority(uint32_t aCategory) override; 
     155             : 
     156             : /* Use this macro when declaring the members of this interface when the
     157             :    class doesn't implement the interface. This is useful for forwarding. */
     158             : #define NS_DECL_NON_VIRTUAL_IMGIREQUEST \
     159             :   nsresult GetImage(imgIContainer * *aImage); \
     160             :   nsresult GetImageStatus(uint32_t *aImageStatus); \
     161             :   nsresult GetImageErrorCode(nsresult *aImageErrorCode); \
     162             :   nsresult GetURI(nsIURI * *aURI); \
     163             :   nsresult GetCurrentURI(nsIURI * *aCurrentURI); \
     164             :   nsresult GetNotificationObserver(imgINotificationObserver * *aNotificationObserver); \
     165             :   nsresult GetMimeType(char * *aMimeType); \
     166             :   nsresult Clone(imgINotificationObserver *aObserver, imgIRequest * *_retval); \
     167             :   nsresult GetImagePrincipal(nsIPrincipal * *aImagePrincipal); \
     168             :   nsresult GetMultipart(bool *aMultipart); \
     169             :   nsresult GetCORSMode(int32_t *aCORSMode); \
     170             :   nsresult CancelAndForgetObserver(nsresult aStatus); \
     171             :   nsresult StartDecoding(uint32_t aFlags); \
     172             :   nsresult_(bool) StartDecodingWithResult(uint32_t aFlags); \
     173             :   nsresult LockImage(void); \
     174             :   nsresult UnlockImage(void); \
     175             :   nsresult RequestDiscard(void); \
     176             :   nsresult GetStaticRequest(imgIRequest * *_retval); \
     177             :   nsresult IncrementAnimationConsumers(void); \
     178             :   nsresult DecrementAnimationConsumers(void); \
     179             :   nsresult BoostPriority(uint32_t aCategory); 
     180             : 
     181             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     182             : #define NS_FORWARD_IMGIREQUEST(_to) \
     183             :   NS_IMETHOD GetImage(imgIContainer * *aImage) override { return _to GetImage(aImage); } \
     184             :   NS_IMETHOD GetImageStatus(uint32_t *aImageStatus) override { return _to GetImageStatus(aImageStatus); } \
     185             :   NS_IMETHOD GetImageErrorCode(nsresult *aImageErrorCode) override { return _to GetImageErrorCode(aImageErrorCode); } \
     186             :   NS_IMETHOD GetURI(nsIURI * *aURI) override { return _to GetURI(aURI); } \
     187             :   NS_IMETHOD GetCurrentURI(nsIURI * *aCurrentURI) override { return _to GetCurrentURI(aCurrentURI); } \
     188             :   NS_IMETHOD GetNotificationObserver(imgINotificationObserver * *aNotificationObserver) override { return _to GetNotificationObserver(aNotificationObserver); } \
     189             :   NS_IMETHOD GetMimeType(char * *aMimeType) override { return _to GetMimeType(aMimeType); } \
     190             :   NS_IMETHOD Clone(imgINotificationObserver *aObserver, imgIRequest * *_retval) override { return _to Clone(aObserver, _retval); } \
     191             :   NS_IMETHOD GetImagePrincipal(nsIPrincipal * *aImagePrincipal) override { return _to GetImagePrincipal(aImagePrincipal); } \
     192             :   NS_IMETHOD GetMultipart(bool *aMultipart) override { return _to GetMultipart(aMultipart); } \
     193             :   NS_IMETHOD GetCORSMode(int32_t *aCORSMode) override { return _to GetCORSMode(aCORSMode); } \
     194             :   NS_IMETHOD CancelAndForgetObserver(nsresult aStatus) override { return _to CancelAndForgetObserver(aStatus); } \
     195             :   NS_IMETHOD StartDecoding(uint32_t aFlags) override { return _to StartDecoding(aFlags); } \
     196             :   NS_IMETHOD_(bool) StartDecodingWithResult(uint32_t aFlags) override { return _to StartDecodingWithResult(aFlags); } \
     197             :   NS_IMETHOD LockImage(void) override { return _to LockImage(); } \
     198             :   NS_IMETHOD UnlockImage(void) override { return _to UnlockImage(); } \
     199             :   NS_IMETHOD RequestDiscard(void) override { return _to RequestDiscard(); } \
     200             :   NS_IMETHOD GetStaticRequest(imgIRequest * *_retval) override { return _to GetStaticRequest(_retval); } \
     201             :   NS_IMETHOD IncrementAnimationConsumers(void) override { return _to IncrementAnimationConsumers(); } \
     202             :   NS_IMETHOD DecrementAnimationConsumers(void) override { return _to DecrementAnimationConsumers(); } \
     203             :   NS_IMETHOD BoostPriority(uint32_t aCategory) override { return _to BoostPriority(aCategory); } 
     204             : 
     205             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     206             : #define NS_FORWARD_SAFE_IMGIREQUEST(_to) \
     207             :   NS_IMETHOD GetImage(imgIContainer * *aImage) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetImage(aImage); } \
     208             :   NS_IMETHOD GetImageStatus(uint32_t *aImageStatus) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetImageStatus(aImageStatus); } \
     209             :   NS_IMETHOD GetImageErrorCode(nsresult *aImageErrorCode) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetImageErrorCode(aImageErrorCode); } \
     210             :   NS_IMETHOD GetURI(nsIURI * *aURI) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetURI(aURI); } \
     211             :   NS_IMETHOD GetCurrentURI(nsIURI * *aCurrentURI) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCurrentURI(aCurrentURI); } \
     212             :   NS_IMETHOD GetNotificationObserver(imgINotificationObserver * *aNotificationObserver) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNotificationObserver(aNotificationObserver); } \
     213             :   NS_IMETHOD GetMimeType(char * *aMimeType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMimeType(aMimeType); } \
     214             :   NS_IMETHOD Clone(imgINotificationObserver *aObserver, imgIRequest * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Clone(aObserver, _retval); } \
     215             :   NS_IMETHOD GetImagePrincipal(nsIPrincipal * *aImagePrincipal) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetImagePrincipal(aImagePrincipal); } \
     216             :   NS_IMETHOD GetMultipart(bool *aMultipart) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMultipart(aMultipart); } \
     217             :   NS_IMETHOD GetCORSMode(int32_t *aCORSMode) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCORSMode(aCORSMode); } \
     218             :   NS_IMETHOD CancelAndForgetObserver(nsresult aStatus) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CancelAndForgetObserver(aStatus); } \
     219             :   NS_IMETHOD StartDecoding(uint32_t aFlags) override { return !_to ? NS_ERROR_NULL_POINTER : _to->StartDecoding(aFlags); } \
     220             :   NS_IMETHOD_(bool) StartDecodingWithResult(uint32_t aFlags) override; \
     221             :   NS_IMETHOD LockImage(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->LockImage(); } \
     222             :   NS_IMETHOD UnlockImage(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->UnlockImage(); } \
     223             :   NS_IMETHOD RequestDiscard(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RequestDiscard(); } \
     224             :   NS_IMETHOD GetStaticRequest(imgIRequest * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStaticRequest(_retval); } \
     225             :   NS_IMETHOD IncrementAnimationConsumers(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->IncrementAnimationConsumers(); } \
     226             :   NS_IMETHOD DecrementAnimationConsumers(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DecrementAnimationConsumers(); } \
     227             :   NS_IMETHOD BoostPriority(uint32_t aCategory) override { return !_to ? NS_ERROR_NULL_POINTER : _to->BoostPriority(aCategory); } 
     228             : 
     229             : #if 0
     230             : /* Use the code below as a template for the implementation class for this interface. */
     231             : 
     232             : /* Header file */
     233             : class _MYCLASS_ : public imgIRequest
     234             : {
     235             : public:
     236             :   NS_DECL_ISUPPORTS
     237             :   NS_DECL_IMGIREQUEST
     238             : 
     239             :   _MYCLASS_();
     240             : 
     241             : private:
     242             :   ~_MYCLASS_();
     243             : 
     244             : protected:
     245             :   /* additional members */
     246             : };
     247             : 
     248             : /* Implementation file */
     249             : NS_IMPL_ISUPPORTS(_MYCLASS_, imgIRequest)
     250             : 
     251             : _MYCLASS_::_MYCLASS_()
     252             : {
     253             :   /* member initializers and constructor code */
     254             : }
     255             : 
     256             : _MYCLASS_::~_MYCLASS_()
     257             : {
     258             :   /* destructor code */
     259             : }
     260             : 
     261             : /* readonly attribute imgIContainer image; */
     262             : NS_IMETHODIMP _MYCLASS_::GetImage(imgIContainer * *aImage)
     263             : {
     264             :     return NS_ERROR_NOT_IMPLEMENTED;
     265             : }
     266             : 
     267             : /* readonly attribute unsigned long imageStatus; */
     268             : NS_IMETHODIMP _MYCLASS_::GetImageStatus(uint32_t *aImageStatus)
     269             : {
     270             :     return NS_ERROR_NOT_IMPLEMENTED;
     271             : }
     272             : 
     273             : /* [noscript] readonly attribute nsresult imageErrorCode; */
     274             : NS_IMETHODIMP _MYCLASS_::GetImageErrorCode(nsresult *aImageErrorCode)
     275             : {
     276             :     return NS_ERROR_NOT_IMPLEMENTED;
     277             : }
     278             : 
     279             : /* readonly attribute nsIURI URI; */
     280             : NS_IMETHODIMP _MYCLASS_::GetURI(nsIURI * *aURI)
     281             : {
     282             :     return NS_ERROR_NOT_IMPLEMENTED;
     283             : }
     284             : 
     285             : /* readonly attribute nsIURI currentURI; */
     286             : NS_IMETHODIMP _MYCLASS_::GetCurrentURI(nsIURI * *aCurrentURI)
     287             : {
     288             :     return NS_ERROR_NOT_IMPLEMENTED;
     289             : }
     290             : 
     291             : /* readonly attribute imgINotificationObserver notificationObserver; */
     292             : NS_IMETHODIMP _MYCLASS_::GetNotificationObserver(imgINotificationObserver * *aNotificationObserver)
     293             : {
     294             :     return NS_ERROR_NOT_IMPLEMENTED;
     295             : }
     296             : 
     297             : /* readonly attribute string mimeType; */
     298             : NS_IMETHODIMP _MYCLASS_::GetMimeType(char * *aMimeType)
     299             : {
     300             :     return NS_ERROR_NOT_IMPLEMENTED;
     301             : }
     302             : 
     303             : /* imgIRequest clone (in imgINotificationObserver aObserver); */
     304             : NS_IMETHODIMP _MYCLASS_::Clone(imgINotificationObserver *aObserver, imgIRequest * *_retval)
     305             : {
     306             :     return NS_ERROR_NOT_IMPLEMENTED;
     307             : }
     308             : 
     309             : /* readonly attribute nsIPrincipal imagePrincipal; */
     310             : NS_IMETHODIMP _MYCLASS_::GetImagePrincipal(nsIPrincipal * *aImagePrincipal)
     311             : {
     312             :     return NS_ERROR_NOT_IMPLEMENTED;
     313             : }
     314             : 
     315             : /* readonly attribute bool multipart; */
     316             : NS_IMETHODIMP _MYCLASS_::GetMultipart(bool *aMultipart)
     317             : {
     318             :     return NS_ERROR_NOT_IMPLEMENTED;
     319             : }
     320             : 
     321             : /* readonly attribute long CORSMode; */
     322             : NS_IMETHODIMP _MYCLASS_::GetCORSMode(int32_t *aCORSMode)
     323             : {
     324             :     return NS_ERROR_NOT_IMPLEMENTED;
     325             : }
     326             : 
     327             : /* void cancelAndForgetObserver (in nsresult aStatus); */
     328             : NS_IMETHODIMP _MYCLASS_::CancelAndForgetObserver(nsresult aStatus)
     329             : {
     330             :     return NS_ERROR_NOT_IMPLEMENTED;
     331             : }
     332             : 
     333             : /* void startDecoding (in uint32_t aFlags); */
     334             : NS_IMETHODIMP _MYCLASS_::StartDecoding(uint32_t aFlags)
     335             : {
     336             :     return NS_ERROR_NOT_IMPLEMENTED;
     337             : }
     338             : 
     339             : /* [noscript,notxpcom] boolean startDecodingWithResult (in uint32_t aFlags); */
     340             : NS_IMETHODIMP_(bool) _MYCLASS_::StartDecodingWithResult(uint32_t aFlags)
     341             : {
     342             :     return NS_ERROR_NOT_IMPLEMENTED;
     343             : }
     344             : 
     345             : /* void lockImage (); */
     346             : NS_IMETHODIMP _MYCLASS_::LockImage()
     347             : {
     348             :     return NS_ERROR_NOT_IMPLEMENTED;
     349             : }
     350             : 
     351             : /* void unlockImage (); */
     352             : NS_IMETHODIMP _MYCLASS_::UnlockImage()
     353             : {
     354             :     return NS_ERROR_NOT_IMPLEMENTED;
     355             : }
     356             : 
     357             : /* void requestDiscard (); */
     358             : NS_IMETHODIMP _MYCLASS_::RequestDiscard()
     359             : {
     360             :     return NS_ERROR_NOT_IMPLEMENTED;
     361             : }
     362             : 
     363             : /* imgIRequest getStaticRequest (); */
     364             : NS_IMETHODIMP _MYCLASS_::GetStaticRequest(imgIRequest * *_retval)
     365             : {
     366             :     return NS_ERROR_NOT_IMPLEMENTED;
     367             : }
     368             : 
     369             : /* void incrementAnimationConsumers (); */
     370             : NS_IMETHODIMP _MYCLASS_::IncrementAnimationConsumers()
     371             : {
     372             :     return NS_ERROR_NOT_IMPLEMENTED;
     373             : }
     374             : 
     375             : /* void decrementAnimationConsumers (); */
     376             : NS_IMETHODIMP _MYCLASS_::DecrementAnimationConsumers()
     377             : {
     378             :     return NS_ERROR_NOT_IMPLEMENTED;
     379             : }
     380             : 
     381             : /* void boostPriority (in uint32_t aCategory); */
     382             : NS_IMETHODIMP _MYCLASS_::BoostPriority(uint32_t aCategory)
     383             : {
     384             :     return NS_ERROR_NOT_IMPLEMENTED;
     385             : }
     386             : 
     387             : /* End of implementation class template. */
     388             : #endif
     389             : 
     390             : 
     391             : #endif /* __gen_imgIRequest_h__ */

Generated by: LCOV version 1.13