LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/dist/include - nsICacheEntryOpenCallback.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/nsICacheEntryOpenCallback.idl
       3             :  */
       4             : 
       5             : #ifndef __gen_nsICacheEntryOpenCallback_h__
       6             : #define __gen_nsICacheEntryOpenCallback_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 nsICacheEntry; /* forward declaration */
      18             : 
      19             : class nsIApplicationCache; /* forward declaration */
      20             : 
      21             : 
      22             : /* starting interface:    nsICacheEntryOpenCallback */
      23             : #define NS_ICACHEENTRYOPENCALLBACK_IID_STR "1fc9fe11-c6ac-4748-94bd-8555a5a12b94"
      24             : 
      25             : #define NS_ICACHEENTRYOPENCALLBACK_IID \
      26             :   {0x1fc9fe11, 0xc6ac, 0x4748, \
      27             :     { 0x94, 0xbd, 0x85, 0x55, 0xa5, 0xa1, 0x2b, 0x94 }}
      28             : 
      29          15 : class NS_NO_VTABLE nsICacheEntryOpenCallback : public nsISupports {
      30             :  public:
      31             : 
      32             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICACHEENTRYOPENCALLBACK_IID)
      33             : 
      34             :   enum {
      35             :     ENTRY_WANTED = 0U,
      36             :     RECHECK_AFTER_WRITE_FINISHED = 1U,
      37             :     ENTRY_NEEDS_REVALIDATION = 2U,
      38             :     ENTRY_NOT_WANTED = 3U
      39             :   };
      40             : 
      41             :   /* unsigned long onCacheEntryCheck (in nsICacheEntry aEntry, in nsIApplicationCache aApplicationCache); */
      42             :   NS_IMETHOD OnCacheEntryCheck(nsICacheEntry *aEntry, nsIApplicationCache *aApplicationCache, uint32_t *_retval) = 0;
      43             : 
      44             :   /* void onCacheEntryAvailable (in nsICacheEntry aEntry, in boolean aNew, in nsIApplicationCache aApplicationCache, in nsresult aResult); */
      45             :   NS_IMETHOD OnCacheEntryAvailable(nsICacheEntry *aEntry, bool aNew, nsIApplicationCache *aApplicationCache, nsresult aResult) = 0;
      46             : 
      47             : };
      48             : 
      49             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsICacheEntryOpenCallback, NS_ICACHEENTRYOPENCALLBACK_IID)
      50             : 
      51             : /* Use this macro when declaring classes that implement this interface. */
      52             : #define NS_DECL_NSICACHEENTRYOPENCALLBACK \
      53             :   NS_IMETHOD OnCacheEntryCheck(nsICacheEntry *aEntry, nsIApplicationCache *aApplicationCache, uint32_t *_retval) override; \
      54             :   NS_IMETHOD OnCacheEntryAvailable(nsICacheEntry *aEntry, bool aNew, nsIApplicationCache *aApplicationCache, nsresult aResult) override; 
      55             : 
      56             : /* Use this macro when declaring the members of this interface when the
      57             :    class doesn't implement the interface. This is useful for forwarding. */
      58             : #define NS_DECL_NON_VIRTUAL_NSICACHEENTRYOPENCALLBACK \
      59             :   nsresult OnCacheEntryCheck(nsICacheEntry *aEntry, nsIApplicationCache *aApplicationCache, uint32_t *_retval); \
      60             :   nsresult OnCacheEntryAvailable(nsICacheEntry *aEntry, bool aNew, nsIApplicationCache *aApplicationCache, nsresult aResult); 
      61             : 
      62             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      63             : #define NS_FORWARD_NSICACHEENTRYOPENCALLBACK(_to) \
      64             :   NS_IMETHOD OnCacheEntryCheck(nsICacheEntry *aEntry, nsIApplicationCache *aApplicationCache, uint32_t *_retval) override { return _to OnCacheEntryCheck(aEntry, aApplicationCache, _retval); } \
      65             :   NS_IMETHOD OnCacheEntryAvailable(nsICacheEntry *aEntry, bool aNew, nsIApplicationCache *aApplicationCache, nsresult aResult) override { return _to OnCacheEntryAvailable(aEntry, aNew, aApplicationCache, aResult); } 
      66             : 
      67             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      68             : #define NS_FORWARD_SAFE_NSICACHEENTRYOPENCALLBACK(_to) \
      69             :   NS_IMETHOD OnCacheEntryCheck(nsICacheEntry *aEntry, nsIApplicationCache *aApplicationCache, uint32_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnCacheEntryCheck(aEntry, aApplicationCache, _retval); } \
      70             :   NS_IMETHOD OnCacheEntryAvailable(nsICacheEntry *aEntry, bool aNew, nsIApplicationCache *aApplicationCache, nsresult aResult) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnCacheEntryAvailable(aEntry, aNew, aApplicationCache, aResult); } 
      71             : 
      72             : #if 0
      73             : /* Use the code below as a template for the implementation class for this interface. */
      74             : 
      75             : /* Header file */
      76             : class nsCacheEntryOpenCallback : public nsICacheEntryOpenCallback
      77             : {
      78             : public:
      79             :   NS_DECL_ISUPPORTS
      80             :   NS_DECL_NSICACHEENTRYOPENCALLBACK
      81             : 
      82             :   nsCacheEntryOpenCallback();
      83             : 
      84             : private:
      85             :   ~nsCacheEntryOpenCallback();
      86             : 
      87             : protected:
      88             :   /* additional members */
      89             : };
      90             : 
      91             : /* Implementation file */
      92             : NS_IMPL_ISUPPORTS(nsCacheEntryOpenCallback, nsICacheEntryOpenCallback)
      93             : 
      94             : nsCacheEntryOpenCallback::nsCacheEntryOpenCallback()
      95             : {
      96             :   /* member initializers and constructor code */
      97             : }
      98             : 
      99             : nsCacheEntryOpenCallback::~nsCacheEntryOpenCallback()
     100             : {
     101             :   /* destructor code */
     102             : }
     103             : 
     104             : /* unsigned long onCacheEntryCheck (in nsICacheEntry aEntry, in nsIApplicationCache aApplicationCache); */
     105             : NS_IMETHODIMP nsCacheEntryOpenCallback::OnCacheEntryCheck(nsICacheEntry *aEntry, nsIApplicationCache *aApplicationCache, uint32_t *_retval)
     106             : {
     107             :     return NS_ERROR_NOT_IMPLEMENTED;
     108             : }
     109             : 
     110             : /* void onCacheEntryAvailable (in nsICacheEntry aEntry, in boolean aNew, in nsIApplicationCache aApplicationCache, in nsresult aResult); */
     111             : NS_IMETHODIMP nsCacheEntryOpenCallback::OnCacheEntryAvailable(nsICacheEntry *aEntry, bool aNew, nsIApplicationCache *aApplicationCache, nsresult aResult)
     112             : {
     113             :     return NS_ERROR_NOT_IMPLEMENTED;
     114             : }
     115             : 
     116             : /* End of implementation class template. */
     117             : #endif
     118             : 
     119             : 
     120             : #endif /* __gen_nsICacheEntryOpenCallback_h__ */

Generated by: LCOV version 1.13