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

          Line data    Source code
       1             : /*
       2             :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/nsIIncrementalStreamLoader.idl
       3             :  */
       4             : 
       5             : #ifndef __gen_nsIIncrementalStreamLoader_h__
       6             : #define __gen_nsIIncrementalStreamLoader_h__
       7             : 
       8             : 
       9             : #ifndef __gen_nsIStreamListener_h__
      10             : #include "nsIStreamListener.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 nsIRequest; /* forward declaration */
      18             : 
      19             : class nsIIncrementalStreamLoader; /* forward declaration */
      20             : 
      21             : 
      22             : /* starting interface:    nsIIncrementalStreamLoaderObserver */
      23             : #define NS_IINCREMENTALSTREAMLOADEROBSERVER_IID_STR "07c3d2cc-5454-4618-9f4f-cd93de9504a4"
      24             : 
      25             : #define NS_IINCREMENTALSTREAMLOADEROBSERVER_IID \
      26             :   {0x07c3d2cc, 0x5454, 0x4618, \
      27             :     { 0x9f, 0x4f, 0xcd, 0x93, 0xde, 0x95, 0x04, 0xa4 }}
      28             : 
      29           4 : class NS_NO_VTABLE nsIIncrementalStreamLoaderObserver : public nsISupports {
      30             :  public:
      31             : 
      32             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IINCREMENTALSTREAMLOADEROBSERVER_IID)
      33             : 
      34             :   /* void onIncrementalData (in nsIIncrementalStreamLoader loader, in nsISupports ctxt, in unsigned long dataLength, [array, size_is (dataLength), const] in octet data, inout unsigned long consumedLength); */
      35             :   NS_IMETHOD OnIncrementalData(nsIIncrementalStreamLoader *loader, nsISupports *ctxt, uint32_t dataLength, const uint8_t *data, uint32_t *consumedLength) = 0;
      36             : 
      37             :   /* void onStreamComplete (in nsIIncrementalStreamLoader loader, in nsISupports ctxt, in nsresult status, in unsigned long resultLength, [array, size_is (resultLength), const] in octet result); */
      38             :   NS_IMETHOD OnStreamComplete(nsIIncrementalStreamLoader *loader, nsISupports *ctxt, nsresult status, uint32_t resultLength, const uint8_t *result) = 0;
      39             : 
      40             : };
      41             : 
      42             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIIncrementalStreamLoaderObserver, NS_IINCREMENTALSTREAMLOADEROBSERVER_IID)
      43             : 
      44             : /* Use this macro when declaring classes that implement this interface. */
      45             : #define NS_DECL_NSIINCREMENTALSTREAMLOADEROBSERVER \
      46             :   NS_IMETHOD OnIncrementalData(nsIIncrementalStreamLoader *loader, nsISupports *ctxt, uint32_t dataLength, const uint8_t *data, uint32_t *consumedLength) override; \
      47             :   NS_IMETHOD OnStreamComplete(nsIIncrementalStreamLoader *loader, nsISupports *ctxt, nsresult status, uint32_t resultLength, const uint8_t *result) override; 
      48             : 
      49             : /* Use this macro when declaring the members of this interface when the
      50             :    class doesn't implement the interface. This is useful for forwarding. */
      51             : #define NS_DECL_NON_VIRTUAL_NSIINCREMENTALSTREAMLOADEROBSERVER \
      52             :   nsresult OnIncrementalData(nsIIncrementalStreamLoader *loader, nsISupports *ctxt, uint32_t dataLength, const uint8_t *data, uint32_t *consumedLength); \
      53             :   nsresult OnStreamComplete(nsIIncrementalStreamLoader *loader, nsISupports *ctxt, nsresult status, uint32_t resultLength, const uint8_t *result); 
      54             : 
      55             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      56             : #define NS_FORWARD_NSIINCREMENTALSTREAMLOADEROBSERVER(_to) \
      57             :   NS_IMETHOD OnIncrementalData(nsIIncrementalStreamLoader *loader, nsISupports *ctxt, uint32_t dataLength, const uint8_t *data, uint32_t *consumedLength) override { return _to OnIncrementalData(loader, ctxt, dataLength, data, consumedLength); } \
      58             :   NS_IMETHOD OnStreamComplete(nsIIncrementalStreamLoader *loader, nsISupports *ctxt, nsresult status, uint32_t resultLength, const uint8_t *result) override { return _to OnStreamComplete(loader, ctxt, status, resultLength, result); } 
      59             : 
      60             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      61             : #define NS_FORWARD_SAFE_NSIINCREMENTALSTREAMLOADEROBSERVER(_to) \
      62             :   NS_IMETHOD OnIncrementalData(nsIIncrementalStreamLoader *loader, nsISupports *ctxt, uint32_t dataLength, const uint8_t *data, uint32_t *consumedLength) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnIncrementalData(loader, ctxt, dataLength, data, consumedLength); } \
      63             :   NS_IMETHOD OnStreamComplete(nsIIncrementalStreamLoader *loader, nsISupports *ctxt, nsresult status, uint32_t resultLength, const uint8_t *result) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnStreamComplete(loader, ctxt, status, resultLength, result); } 
      64             : 
      65             : #if 0
      66             : /* Use the code below as a template for the implementation class for this interface. */
      67             : 
      68             : /* Header file */
      69             : class nsIncrementalStreamLoaderObserver : public nsIIncrementalStreamLoaderObserver
      70             : {
      71             : public:
      72             :   NS_DECL_ISUPPORTS
      73             :   NS_DECL_NSIINCREMENTALSTREAMLOADEROBSERVER
      74             : 
      75             :   nsIncrementalStreamLoaderObserver();
      76             : 
      77             : private:
      78             :   ~nsIncrementalStreamLoaderObserver();
      79             : 
      80             : protected:
      81             :   /* additional members */
      82             : };
      83             : 
      84             : /* Implementation file */
      85             : NS_IMPL_ISUPPORTS(nsIncrementalStreamLoaderObserver, nsIIncrementalStreamLoaderObserver)
      86             : 
      87             : nsIncrementalStreamLoaderObserver::nsIncrementalStreamLoaderObserver()
      88             : {
      89             :   /* member initializers and constructor code */
      90             : }
      91             : 
      92             : nsIncrementalStreamLoaderObserver::~nsIncrementalStreamLoaderObserver()
      93             : {
      94             :   /* destructor code */
      95             : }
      96             : 
      97             : /* void onIncrementalData (in nsIIncrementalStreamLoader loader, in nsISupports ctxt, in unsigned long dataLength, [array, size_is (dataLength), const] in octet data, inout unsigned long consumedLength); */
      98             : NS_IMETHODIMP nsIncrementalStreamLoaderObserver::OnIncrementalData(nsIIncrementalStreamLoader *loader, nsISupports *ctxt, uint32_t dataLength, const uint8_t *data, uint32_t *consumedLength)
      99             : {
     100             :     return NS_ERROR_NOT_IMPLEMENTED;
     101             : }
     102             : 
     103             : /* void onStreamComplete (in nsIIncrementalStreamLoader loader, in nsISupports ctxt, in nsresult status, in unsigned long resultLength, [array, size_is (resultLength), const] in octet result); */
     104             : NS_IMETHODIMP nsIncrementalStreamLoaderObserver::OnStreamComplete(nsIIncrementalStreamLoader *loader, nsISupports *ctxt, nsresult status, uint32_t resultLength, const uint8_t *result)
     105             : {
     106             :     return NS_ERROR_NOT_IMPLEMENTED;
     107             : }
     108             : 
     109             : /* End of implementation class template. */
     110             : #endif
     111             : 
     112             : 
     113             : /* starting interface:    nsIIncrementalStreamLoader */
     114             : #define NS_IINCREMENTALSTREAMLOADER_IID_STR "a023b060-ba23-431a-b449-2dd63e220554"
     115             : 
     116             : #define NS_IINCREMENTALSTREAMLOADER_IID \
     117             :   {0xa023b060, 0xba23, 0x431a, \
     118             :     { 0xb4, 0x49, 0x2d, 0xd6, 0x3e, 0x22, 0x05, 0x54 }}
     119             : 
     120           4 : class NS_NO_VTABLE nsIIncrementalStreamLoader : public nsIStreamListener {
     121             :  public:
     122             : 
     123             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IINCREMENTALSTREAMLOADER_IID)
     124             : 
     125             :   /* void init (in nsIIncrementalStreamLoaderObserver aObserver); */
     126             :   NS_IMETHOD Init(nsIIncrementalStreamLoaderObserver *aObserver) = 0;
     127             : 
     128             :   /* readonly attribute unsigned long numBytesRead; */
     129             :   NS_IMETHOD GetNumBytesRead(uint32_t *aNumBytesRead) = 0;
     130             : 
     131             :   /* readonly attribute nsIRequest request; */
     132             :   NS_IMETHOD GetRequest(nsIRequest * *aRequest) = 0;
     133             : 
     134             : };
     135             : 
     136             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIIncrementalStreamLoader, NS_IINCREMENTALSTREAMLOADER_IID)
     137             : 
     138             : /* Use this macro when declaring classes that implement this interface. */
     139             : #define NS_DECL_NSIINCREMENTALSTREAMLOADER \
     140             :   NS_IMETHOD Init(nsIIncrementalStreamLoaderObserver *aObserver) override; \
     141             :   NS_IMETHOD GetNumBytesRead(uint32_t *aNumBytesRead) override; \
     142             :   NS_IMETHOD GetRequest(nsIRequest * *aRequest) override; 
     143             : 
     144             : /* Use this macro when declaring the members of this interface when the
     145             :    class doesn't implement the interface. This is useful for forwarding. */
     146             : #define NS_DECL_NON_VIRTUAL_NSIINCREMENTALSTREAMLOADER \
     147             :   nsresult Init(nsIIncrementalStreamLoaderObserver *aObserver); \
     148             :   nsresult GetNumBytesRead(uint32_t *aNumBytesRead); \
     149             :   nsresult GetRequest(nsIRequest * *aRequest); 
     150             : 
     151             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     152             : #define NS_FORWARD_NSIINCREMENTALSTREAMLOADER(_to) \
     153             :   NS_IMETHOD Init(nsIIncrementalStreamLoaderObserver *aObserver) override { return _to Init(aObserver); } \
     154             :   NS_IMETHOD GetNumBytesRead(uint32_t *aNumBytesRead) override { return _to GetNumBytesRead(aNumBytesRead); } \
     155             :   NS_IMETHOD GetRequest(nsIRequest * *aRequest) override { return _to GetRequest(aRequest); } 
     156             : 
     157             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     158             : #define NS_FORWARD_SAFE_NSIINCREMENTALSTREAMLOADER(_to) \
     159             :   NS_IMETHOD Init(nsIIncrementalStreamLoaderObserver *aObserver) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Init(aObserver); } \
     160             :   NS_IMETHOD GetNumBytesRead(uint32_t *aNumBytesRead) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNumBytesRead(aNumBytesRead); } \
     161             :   NS_IMETHOD GetRequest(nsIRequest * *aRequest) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRequest(aRequest); } 
     162             : 
     163             : #if 0
     164             : /* Use the code below as a template for the implementation class for this interface. */
     165             : 
     166             : /* Header file */
     167             : class nsIncrementalStreamLoader : public nsIIncrementalStreamLoader
     168             : {
     169             : public:
     170             :   NS_DECL_ISUPPORTS
     171             :   NS_DECL_NSIINCREMENTALSTREAMLOADER
     172             : 
     173             :   nsIncrementalStreamLoader();
     174             : 
     175             : private:
     176             :   ~nsIncrementalStreamLoader();
     177             : 
     178             : protected:
     179             :   /* additional members */
     180             : };
     181             : 
     182             : /* Implementation file */
     183             : NS_IMPL_ISUPPORTS(nsIncrementalStreamLoader, nsIIncrementalStreamLoader)
     184             : 
     185             : nsIncrementalStreamLoader::nsIncrementalStreamLoader()
     186             : {
     187             :   /* member initializers and constructor code */
     188             : }
     189             : 
     190             : nsIncrementalStreamLoader::~nsIncrementalStreamLoader()
     191             : {
     192             :   /* destructor code */
     193             : }
     194             : 
     195             : /* void init (in nsIIncrementalStreamLoaderObserver aObserver); */
     196             : NS_IMETHODIMP nsIncrementalStreamLoader::Init(nsIIncrementalStreamLoaderObserver *aObserver)
     197             : {
     198             :     return NS_ERROR_NOT_IMPLEMENTED;
     199             : }
     200             : 
     201             : /* readonly attribute unsigned long numBytesRead; */
     202             : NS_IMETHODIMP nsIncrementalStreamLoader::GetNumBytesRead(uint32_t *aNumBytesRead)
     203             : {
     204             :     return NS_ERROR_NOT_IMPLEMENTED;
     205             : }
     206             : 
     207             : /* readonly attribute nsIRequest request; */
     208             : NS_IMETHODIMP nsIncrementalStreamLoader::GetRequest(nsIRequest * *aRequest)
     209             : {
     210             :     return NS_ERROR_NOT_IMPLEMENTED;
     211             : }
     212             : 
     213             : /* End of implementation class template. */
     214             : #endif
     215             : 
     216             : 
     217             : #endif /* __gen_nsIIncrementalStreamLoader_h__ */

Generated by: LCOV version 1.13