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

          Line data    Source code
       1             : /*
       2             :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/nsICacheListener.idl
       3             :  */
       4             : 
       5             : #ifndef __gen_nsICacheListener_h__
       6             : #define __gen_nsICacheListener_h__
       7             : 
       8             : 
       9             : #ifndef __gen_nsISupports_h__
      10             : #include "nsISupports.h"
      11             : #endif
      12             : 
      13             : #ifndef __gen_nsICache_h__
      14             : #include "nsICache.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 nsICacheEntryDescriptor; /* forward declaration */
      22             : 
      23             : 
      24             : /* starting interface:    nsICacheListener */
      25             : #define NS_ICACHELISTENER_IID_STR "8eadf2ed-8cac-4961-8025-6da6d5827e74"
      26             : 
      27             : #define NS_ICACHELISTENER_IID \
      28             :   {0x8eadf2ed, 0x8cac, 0x4961, \
      29             :     { 0x80, 0x25, 0x6d, 0xa6, 0xd5, 0x82, 0x7e, 0x74 }}
      30             : 
      31           0 : class NS_NO_VTABLE nsICacheListener : public nsISupports {
      32             :  public:
      33             : 
      34             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICACHELISTENER_IID)
      35             : 
      36             :   /* void onCacheEntryAvailable (in nsICacheEntryDescriptor descriptor, in nsCacheAccessMode accessGranted, in nsresult status); */
      37             :   NS_IMETHOD OnCacheEntryAvailable(nsICacheEntryDescriptor *descriptor, nsCacheAccessMode accessGranted, nsresult status) = 0;
      38             : 
      39             :   /* void onCacheEntryDoomed (in nsresult status); */
      40             :   NS_IMETHOD OnCacheEntryDoomed(nsresult status) = 0;
      41             : 
      42             : };
      43             : 
      44             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsICacheListener, NS_ICACHELISTENER_IID)
      45             : 
      46             : /* Use this macro when declaring classes that implement this interface. */
      47             : #define NS_DECL_NSICACHELISTENER \
      48             :   NS_IMETHOD OnCacheEntryAvailable(nsICacheEntryDescriptor *descriptor, nsCacheAccessMode accessGranted, nsresult status) override; \
      49             :   NS_IMETHOD OnCacheEntryDoomed(nsresult status) override; 
      50             : 
      51             : /* Use this macro when declaring the members of this interface when the
      52             :    class doesn't implement the interface. This is useful for forwarding. */
      53             : #define NS_DECL_NON_VIRTUAL_NSICACHELISTENER \
      54             :   nsresult OnCacheEntryAvailable(nsICacheEntryDescriptor *descriptor, nsCacheAccessMode accessGranted, nsresult status); \
      55             :   nsresult OnCacheEntryDoomed(nsresult status); 
      56             : 
      57             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      58             : #define NS_FORWARD_NSICACHELISTENER(_to) \
      59             :   NS_IMETHOD OnCacheEntryAvailable(nsICacheEntryDescriptor *descriptor, nsCacheAccessMode accessGranted, nsresult status) override { return _to OnCacheEntryAvailable(descriptor, accessGranted, status); } \
      60             :   NS_IMETHOD OnCacheEntryDoomed(nsresult status) override { return _to OnCacheEntryDoomed(status); } 
      61             : 
      62             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      63             : #define NS_FORWARD_SAFE_NSICACHELISTENER(_to) \
      64             :   NS_IMETHOD OnCacheEntryAvailable(nsICacheEntryDescriptor *descriptor, nsCacheAccessMode accessGranted, nsresult status) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnCacheEntryAvailable(descriptor, accessGranted, status); } \
      65             :   NS_IMETHOD OnCacheEntryDoomed(nsresult status) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnCacheEntryDoomed(status); } 
      66             : 
      67             : #if 0
      68             : /* Use the code below as a template for the implementation class for this interface. */
      69             : 
      70             : /* Header file */
      71             : class nsCacheListener : public nsICacheListener
      72             : {
      73             : public:
      74             :   NS_DECL_ISUPPORTS
      75             :   NS_DECL_NSICACHELISTENER
      76             : 
      77             :   nsCacheListener();
      78             : 
      79             : private:
      80             :   ~nsCacheListener();
      81             : 
      82             : protected:
      83             :   /* additional members */
      84             : };
      85             : 
      86             : /* Implementation file */
      87             : NS_IMPL_ISUPPORTS(nsCacheListener, nsICacheListener)
      88             : 
      89             : nsCacheListener::nsCacheListener()
      90             : {
      91             :   /* member initializers and constructor code */
      92             : }
      93             : 
      94             : nsCacheListener::~nsCacheListener()
      95             : {
      96             :   /* destructor code */
      97             : }
      98             : 
      99             : /* void onCacheEntryAvailable (in nsICacheEntryDescriptor descriptor, in nsCacheAccessMode accessGranted, in nsresult status); */
     100             : NS_IMETHODIMP nsCacheListener::OnCacheEntryAvailable(nsICacheEntryDescriptor *descriptor, nsCacheAccessMode accessGranted, nsresult status)
     101             : {
     102             :     return NS_ERROR_NOT_IMPLEMENTED;
     103             : }
     104             : 
     105             : /* void onCacheEntryDoomed (in nsresult status); */
     106             : NS_IMETHODIMP nsCacheListener::OnCacheEntryDoomed(nsresult status)
     107             : {
     108             :     return NS_ERROR_NOT_IMPLEMENTED;
     109             : }
     110             : 
     111             : /* End of implementation class template. */
     112             : #endif
     113             : 
     114             : 
     115             : #endif /* __gen_nsICacheListener_h__ */

Generated by: LCOV version 1.13