LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/dist/include - nsIStartupCache.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/nsIStartupCache.idl
       3             :  */
       4             : 
       5             : #ifndef __gen_nsIStartupCache_h__
       6             : #define __gen_nsIStartupCache_h__
       7             : 
       8             : 
       9             : #ifndef __gen_nsIInputStream_h__
      10             : #include "nsIInputStream.h"
      11             : #endif
      12             : 
      13             : #ifndef __gen_nsISupports_h__
      14             : #include "nsISupports.h"
      15             : #endif
      16             : 
      17             : #ifndef __gen_nsIObserver_h__
      18             : #include "nsIObserver.h"
      19             : #endif
      20             : 
      21             : #ifndef __gen_nsIObjectOutputStream_h__
      22             : #include "nsIObjectOutputStream.h"
      23             : #endif
      24             : 
      25             : /* For IDL files that don't want to include root IDL files. */
      26             : #ifndef NS_NO_VTABLE
      27             : #define NS_NO_VTABLE
      28             : #endif
      29             : #include "mozilla/UniquePtr.h"
      30             : 
      31             : /* starting interface:    nsIStartupCache */
      32             : #define NS_ISTARTUPCACHE_IID_STR "25957820-90a1-428c-8739-b0845d3cc534"
      33             : 
      34             : #define NS_ISTARTUPCACHE_IID \
      35             :   {0x25957820, 0x90a1, 0x428c, \
      36             :     { 0x87, 0x39, 0xb0, 0x84, 0x5d, 0x3c, 0xc5, 0x34 }}
      37             : 
      38           0 : class nsIStartupCache : public nsISupports {
      39             :  public:
      40             : 
      41             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISTARTUPCACHE_IID)
      42             : 
      43             :   /* uint32_t getBuffer (in string aID, out charPtr aBuffer); */
      44             :   NS_IMETHOD GetBuffer(const char * aID, char **aBuffer, uint32_t *_retval) = 0;
      45             : 
      46             :    /* A more convenient interface for using from C++.  */
      47             :   nsresult GetBuffer(const char* id, mozilla::UniquePtr<char[]>* outbuf, uint32_t* length)
      48             :   {
      49             :     char* buf;
      50             :     nsresult rv = GetBuffer(id, &buf, length);
      51             :     NS_ENSURE_SUCCESS(rv, rv);
      52             :     outbuf->reset(buf);
      53             :     return rv;
      54             :   }
      55             :   /* void putBuffer (in string aID, in string aBuffer, in uint32_t aLength); */
      56             :   NS_IMETHOD PutBuffer(const char * aID, const char * aBuffer, uint32_t aLength) = 0;
      57             : 
      58             :   /* void invalidateCache (); */
      59             :   NS_IMETHOD InvalidateCache(void) = 0;
      60             : 
      61             :   /* nsIObjectOutputStream getDebugObjectOutputStream (in nsIObjectOutputStream aStream); */
      62             :   NS_IMETHOD GetDebugObjectOutputStream(nsIObjectOutputStream *aStream, nsIObjectOutputStream * *_retval) = 0;
      63             : 
      64             :   /* readonly attribute nsIObserver observer; */
      65             :   NS_IMETHOD GetObserver(nsIObserver * *aObserver) = 0;
      66             : 
      67             : };
      68             : 
      69             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIStartupCache, NS_ISTARTUPCACHE_IID)
      70             : 
      71             : /* Use this macro when declaring classes that implement this interface. */
      72             : #define NS_DECL_NSISTARTUPCACHE \
      73             :   NS_IMETHOD GetBuffer(const char * aID, char **aBuffer, uint32_t *_retval) override; \
      74             :   NS_IMETHOD PutBuffer(const char * aID, const char * aBuffer, uint32_t aLength) override; \
      75             :   NS_IMETHOD InvalidateCache(void) override; \
      76             :   NS_IMETHOD GetDebugObjectOutputStream(nsIObjectOutputStream *aStream, nsIObjectOutputStream * *_retval) override; \
      77             :   NS_IMETHOD GetObserver(nsIObserver * *aObserver) override; 
      78             : 
      79             : /* Use this macro when declaring the members of this interface when the
      80             :    class doesn't implement the interface. This is useful for forwarding. */
      81             : #define NS_DECL_NON_VIRTUAL_NSISTARTUPCACHE \
      82             :   nsresult GetBuffer(const char * aID, char **aBuffer, uint32_t *_retval); \
      83             :   nsresult PutBuffer(const char * aID, const char * aBuffer, uint32_t aLength); \
      84             :   nsresult InvalidateCache(void); \
      85             :   nsresult GetDebugObjectOutputStream(nsIObjectOutputStream *aStream, nsIObjectOutputStream * *_retval); \
      86             :   nsresult GetObserver(nsIObserver * *aObserver); 
      87             : 
      88             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      89             : #define NS_FORWARD_NSISTARTUPCACHE(_to) \
      90             :   NS_IMETHOD GetBuffer(const char * aID, char **aBuffer, uint32_t *_retval) override { return _to GetBuffer(aID, aBuffer, _retval); } \
      91             :   NS_IMETHOD PutBuffer(const char * aID, const char * aBuffer, uint32_t aLength) override { return _to PutBuffer(aID, aBuffer, aLength); } \
      92             :   NS_IMETHOD InvalidateCache(void) override { return _to InvalidateCache(); } \
      93             :   NS_IMETHOD GetDebugObjectOutputStream(nsIObjectOutputStream *aStream, nsIObjectOutputStream * *_retval) override { return _to GetDebugObjectOutputStream(aStream, _retval); } \
      94             :   NS_IMETHOD GetObserver(nsIObserver * *aObserver) override { return _to GetObserver(aObserver); } 
      95             : 
      96             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      97             : #define NS_FORWARD_SAFE_NSISTARTUPCACHE(_to) \
      98             :   NS_IMETHOD GetBuffer(const char * aID, char **aBuffer, uint32_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBuffer(aID, aBuffer, _retval); } \
      99             :   NS_IMETHOD PutBuffer(const char * aID, const char * aBuffer, uint32_t aLength) override { return !_to ? NS_ERROR_NULL_POINTER : _to->PutBuffer(aID, aBuffer, aLength); } \
     100             :   NS_IMETHOD InvalidateCache(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->InvalidateCache(); } \
     101             :   NS_IMETHOD GetDebugObjectOutputStream(nsIObjectOutputStream *aStream, nsIObjectOutputStream * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDebugObjectOutputStream(aStream, _retval); } \
     102             :   NS_IMETHOD GetObserver(nsIObserver * *aObserver) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetObserver(aObserver); } 
     103             : 
     104             : #if 0
     105             : /* Use the code below as a template for the implementation class for this interface. */
     106             : 
     107             : /* Header file */
     108             : class nsStartupCache : public nsIStartupCache
     109             : {
     110             : public:
     111             :   NS_DECL_ISUPPORTS
     112             :   NS_DECL_NSISTARTUPCACHE
     113             : 
     114             :   nsStartupCache();
     115             : 
     116             : private:
     117             :   ~nsStartupCache();
     118             : 
     119             : protected:
     120             :   /* additional members */
     121             : };
     122             : 
     123             : /* Implementation file */
     124             : NS_IMPL_ISUPPORTS(nsStartupCache, nsIStartupCache)
     125             : 
     126             : nsStartupCache::nsStartupCache()
     127             : {
     128             :   /* member initializers and constructor code */
     129             : }
     130             : 
     131             : nsStartupCache::~nsStartupCache()
     132             : {
     133             :   /* destructor code */
     134             : }
     135             : 
     136             : /* uint32_t getBuffer (in string aID, out charPtr aBuffer); */
     137             : NS_IMETHODIMP nsStartupCache::GetBuffer(const char * aID, char **aBuffer, uint32_t *_retval)
     138             : {
     139             :     return NS_ERROR_NOT_IMPLEMENTED;
     140             : }
     141             : 
     142             : /* void putBuffer (in string aID, in string aBuffer, in uint32_t aLength); */
     143             : NS_IMETHODIMP nsStartupCache::PutBuffer(const char * aID, const char * aBuffer, uint32_t aLength)
     144             : {
     145             :     return NS_ERROR_NOT_IMPLEMENTED;
     146             : }
     147             : 
     148             : /* void invalidateCache (); */
     149             : NS_IMETHODIMP nsStartupCache::InvalidateCache()
     150             : {
     151             :     return NS_ERROR_NOT_IMPLEMENTED;
     152             : }
     153             : 
     154             : /* nsIObjectOutputStream getDebugObjectOutputStream (in nsIObjectOutputStream aStream); */
     155             : NS_IMETHODIMP nsStartupCache::GetDebugObjectOutputStream(nsIObjectOutputStream *aStream, nsIObjectOutputStream * *_retval)
     156             : {
     157             :     return NS_ERROR_NOT_IMPLEMENTED;
     158             : }
     159             : 
     160             : /* readonly attribute nsIObserver observer; */
     161             : NS_IMETHODIMP nsStartupCache::GetObserver(nsIObserver * *aObserver)
     162             : {
     163             :     return NS_ERROR_NOT_IMPLEMENTED;
     164             : }
     165             : 
     166             : /* End of implementation class template. */
     167             : #endif
     168             : 
     169             : 
     170             : #endif /* __gen_nsIStartupCache_h__ */

Generated by: LCOV version 1.13