LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/dist/include - imgICache.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/imgICache.idl
       3             :  */
       4             : 
       5             : #ifndef __gen_imgICache_h__
       6             : #define __gen_imgICache_h__
       7             : 
       8             : 
       9             : #ifndef __gen_nsISupports_h__
      10             : #include "nsISupports.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 imgIRequest; /* forward declaration */
      18             : 
      19             : class nsIDocument; /* forward declaration */
      20             : 
      21             : class nsIDOMDocument; /* forward declaration */
      22             : 
      23             : class nsIProperties; /* forward declaration */
      24             : 
      25             : class nsIURI; /* forward declaration */
      26             : 
      27             : 
      28             : /* starting interface:    imgICache */
      29             : #define IMGICACHE_IID_STR "bfdf23ff-378e-402e-8a6c-840f0c82b6c3"
      30             : 
      31             : #define IMGICACHE_IID \
      32             :   {0xbfdf23ff, 0x378e, 0x402e, \
      33             :     { 0x8a, 0x6c, 0x84, 0x0f, 0x0c, 0x82, 0xb6, 0xc3 }}
      34             : 
      35           2 : class NS_NO_VTABLE imgICache : public nsISupports {
      36             :  public:
      37             : 
      38             :   NS_DECLARE_STATIC_IID_ACCESSOR(IMGICACHE_IID)
      39             : 
      40             :   /* void clearCache (in boolean chrome); */
      41             :   NS_IMETHOD ClearCache(bool chrome) = 0;
      42             : 
      43             :   /* [noscript] void removeEntry (in nsIURI uri, [optional] in nsIDOMDocument doc); */
      44             :   NS_IMETHOD RemoveEntry(nsIURI *uri, nsIDOMDocument *doc) = 0;
      45             : 
      46             :   /* [must_use] nsIProperties findEntryProperties (in nsIURI uri, [optional] in nsIDOMDocument doc); */
      47             :   MOZ_MUST_USE NS_IMETHOD FindEntryProperties(nsIURI *uri, nsIDOMDocument *doc, nsIProperties * *_retval) = 0;
      48             : 
      49             :   /* void respectPrivacyNotifications (); */
      50             :   NS_IMETHOD RespectPrivacyNotifications(void) = 0;
      51             : 
      52             :   /* [noscript,notxpcom] void clearCacheForControlledDocument (in nsIDocument doc); */
      53             :   NS_IMETHOD_(void) ClearCacheForControlledDocument(nsIDocument *doc) = 0;
      54             : 
      55             : };
      56             : 
      57             :   NS_DEFINE_STATIC_IID_ACCESSOR(imgICache, IMGICACHE_IID)
      58             : 
      59             : /* Use this macro when declaring classes that implement this interface. */
      60             : #define NS_DECL_IMGICACHE \
      61             :   NS_IMETHOD ClearCache(bool chrome) override; \
      62             :   NS_IMETHOD RemoveEntry(nsIURI *uri, nsIDOMDocument *doc) override; \
      63             :   MOZ_MUST_USE NS_IMETHOD FindEntryProperties(nsIURI *uri, nsIDOMDocument *doc, nsIProperties * *_retval) override; \
      64             :   NS_IMETHOD RespectPrivacyNotifications(void) override; \
      65             :   NS_IMETHOD_(void) ClearCacheForControlledDocument(nsIDocument *doc) override; 
      66             : 
      67             : /* Use this macro when declaring the members of this interface when the
      68             :    class doesn't implement the interface. This is useful for forwarding. */
      69             : #define NS_DECL_NON_VIRTUAL_IMGICACHE \
      70             :   nsresult ClearCache(bool chrome); \
      71             :   nsresult RemoveEntry(nsIURI *uri, nsIDOMDocument *doc); \
      72             :   MOZ_MUST_USE nsresult FindEntryProperties(nsIURI *uri, nsIDOMDocument *doc, nsIProperties * *_retval); \
      73             :   nsresult RespectPrivacyNotifications(void); \
      74             :   nsresult_(void) ClearCacheForControlledDocument(nsIDocument *doc); 
      75             : 
      76             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      77             : #define NS_FORWARD_IMGICACHE(_to) \
      78             :   NS_IMETHOD ClearCache(bool chrome) override { return _to ClearCache(chrome); } \
      79             :   NS_IMETHOD RemoveEntry(nsIURI *uri, nsIDOMDocument *doc) override { return _to RemoveEntry(uri, doc); } \
      80             :   MOZ_MUST_USE NS_IMETHOD FindEntryProperties(nsIURI *uri, nsIDOMDocument *doc, nsIProperties * *_retval) override { return _to FindEntryProperties(uri, doc, _retval); } \
      81             :   NS_IMETHOD RespectPrivacyNotifications(void) override { return _to RespectPrivacyNotifications(); } \
      82             :   NS_IMETHOD_(void) ClearCacheForControlledDocument(nsIDocument *doc) override { return _to ClearCacheForControlledDocument(doc); } 
      83             : 
      84             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      85             : #define NS_FORWARD_SAFE_IMGICACHE(_to) \
      86             :   NS_IMETHOD ClearCache(bool chrome) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ClearCache(chrome); } \
      87             :   NS_IMETHOD RemoveEntry(nsIURI *uri, nsIDOMDocument *doc) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveEntry(uri, doc); } \
      88             :   MOZ_MUST_USE NS_IMETHOD FindEntryProperties(nsIURI *uri, nsIDOMDocument *doc, nsIProperties * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->FindEntryProperties(uri, doc, _retval); } \
      89             :   NS_IMETHOD RespectPrivacyNotifications(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RespectPrivacyNotifications(); } \
      90             :   NS_IMETHOD_(void) ClearCacheForControlledDocument(nsIDocument *doc) override; 
      91             : 
      92             : #if 0
      93             : /* Use the code below as a template for the implementation class for this interface. */
      94             : 
      95             : /* Header file */
      96             : class _MYCLASS_ : public imgICache
      97             : {
      98             : public:
      99             :   NS_DECL_ISUPPORTS
     100             :   NS_DECL_IMGICACHE
     101             : 
     102             :   _MYCLASS_();
     103             : 
     104             : private:
     105             :   ~_MYCLASS_();
     106             : 
     107             : protected:
     108             :   /* additional members */
     109             : };
     110             : 
     111             : /* Implementation file */
     112             : NS_IMPL_ISUPPORTS(_MYCLASS_, imgICache)
     113             : 
     114             : _MYCLASS_::_MYCLASS_()
     115             : {
     116             :   /* member initializers and constructor code */
     117             : }
     118             : 
     119             : _MYCLASS_::~_MYCLASS_()
     120             : {
     121             :   /* destructor code */
     122             : }
     123             : 
     124             : /* void clearCache (in boolean chrome); */
     125             : NS_IMETHODIMP _MYCLASS_::ClearCache(bool chrome)
     126             : {
     127             :     return NS_ERROR_NOT_IMPLEMENTED;
     128             : }
     129             : 
     130             : /* [noscript] void removeEntry (in nsIURI uri, [optional] in nsIDOMDocument doc); */
     131             : NS_IMETHODIMP _MYCLASS_::RemoveEntry(nsIURI *uri, nsIDOMDocument *doc)
     132             : {
     133             :     return NS_ERROR_NOT_IMPLEMENTED;
     134             : }
     135             : 
     136             : /* [must_use] nsIProperties findEntryProperties (in nsIURI uri, [optional] in nsIDOMDocument doc); */
     137             : MOZ_MUST_USE NS_IMETHODIMP _MYCLASS_::FindEntryProperties(nsIURI *uri, nsIDOMDocument *doc, nsIProperties * *_retval)
     138             : {
     139             :     return NS_ERROR_NOT_IMPLEMENTED;
     140             : }
     141             : 
     142             : /* void respectPrivacyNotifications (); */
     143             : NS_IMETHODIMP _MYCLASS_::RespectPrivacyNotifications()
     144             : {
     145             :     return NS_ERROR_NOT_IMPLEMENTED;
     146             : }
     147             : 
     148             : /* [noscript,notxpcom] void clearCacheForControlledDocument (in nsIDocument doc); */
     149             : NS_IMETHODIMP_(void) _MYCLASS_::ClearCacheForControlledDocument(nsIDocument *doc)
     150             : {
     151             :     return NS_ERROR_NOT_IMPLEMENTED;
     152             : }
     153             : 
     154             : /* End of implementation class template. */
     155             : #endif
     156             : 
     157             : 
     158             : #endif /* __gen_imgICache_h__ */

Generated by: LCOV version 1.13