LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/dist/include - nsIStreamLoader.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/nsIStreamLoader.idl
       3             :  */
       4             : 
       5             : #ifndef __gen_nsIStreamLoader_h__
       6             : #define __gen_nsIStreamLoader_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 nsIStreamLoader; /* forward declaration */
      20             : 
      21             : 
      22             : /* starting interface:    nsIStreamLoaderObserver */
      23             : #define NS_ISTREAMLOADEROBSERVER_IID_STR "359f7990-d4e9-11d3-a1a5-0050041caf44"
      24             : 
      25             : #define NS_ISTREAMLOADEROBSERVER_IID \
      26             :   {0x359f7990, 0xd4e9, 0x11d3, \
      27             :     { 0xa1, 0xa5, 0x00, 0x50, 0x04, 0x1c, 0xaf, 0x44 }}
      28             : 
      29          11 : class NS_NO_VTABLE nsIStreamLoaderObserver : public nsISupports {
      30             :  public:
      31             : 
      32             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISTREAMLOADEROBSERVER_IID)
      33             : 
      34             :   /* void onStreamComplete (in nsIStreamLoader loader, in nsISupports ctxt, in nsresult status, in unsigned long resultLength, [array, size_is (resultLength), const] in octet result); */
      35             :   NS_IMETHOD OnStreamComplete(nsIStreamLoader *loader, nsISupports *ctxt, nsresult status, uint32_t resultLength, const uint8_t *result) = 0;
      36             : 
      37             : };
      38             : 
      39             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIStreamLoaderObserver, NS_ISTREAMLOADEROBSERVER_IID)
      40             : 
      41             : /* Use this macro when declaring classes that implement this interface. */
      42             : #define NS_DECL_NSISTREAMLOADEROBSERVER \
      43             :   NS_IMETHOD OnStreamComplete(nsIStreamLoader *loader, nsISupports *ctxt, nsresult status, uint32_t resultLength, const uint8_t *result) override; 
      44             : 
      45             : /* Use this macro when declaring the members of this interface when the
      46             :    class doesn't implement the interface. This is useful for forwarding. */
      47             : #define NS_DECL_NON_VIRTUAL_NSISTREAMLOADEROBSERVER \
      48             :   nsresult OnStreamComplete(nsIStreamLoader *loader, nsISupports *ctxt, nsresult status, uint32_t resultLength, const uint8_t *result); 
      49             : 
      50             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      51             : #define NS_FORWARD_NSISTREAMLOADEROBSERVER(_to) \
      52             :   NS_IMETHOD OnStreamComplete(nsIStreamLoader *loader, nsISupports *ctxt, nsresult status, uint32_t resultLength, const uint8_t *result) override { return _to OnStreamComplete(loader, ctxt, status, resultLength, result); } 
      53             : 
      54             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      55             : #define NS_FORWARD_SAFE_NSISTREAMLOADEROBSERVER(_to) \
      56             :   NS_IMETHOD OnStreamComplete(nsIStreamLoader *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); } 
      57             : 
      58             : #if 0
      59             : /* Use the code below as a template for the implementation class for this interface. */
      60             : 
      61             : /* Header file */
      62             : class nsStreamLoaderObserver : public nsIStreamLoaderObserver
      63             : {
      64             : public:
      65             :   NS_DECL_ISUPPORTS
      66             :   NS_DECL_NSISTREAMLOADEROBSERVER
      67             : 
      68             :   nsStreamLoaderObserver();
      69             : 
      70             : private:
      71             :   ~nsStreamLoaderObserver();
      72             : 
      73             : protected:
      74             :   /* additional members */
      75             : };
      76             : 
      77             : /* Implementation file */
      78             : NS_IMPL_ISUPPORTS(nsStreamLoaderObserver, nsIStreamLoaderObserver)
      79             : 
      80             : nsStreamLoaderObserver::nsStreamLoaderObserver()
      81             : {
      82             :   /* member initializers and constructor code */
      83             : }
      84             : 
      85             : nsStreamLoaderObserver::~nsStreamLoaderObserver()
      86             : {
      87             :   /* destructor code */
      88             : }
      89             : 
      90             : /* void onStreamComplete (in nsIStreamLoader loader, in nsISupports ctxt, in nsresult status, in unsigned long resultLength, [array, size_is (resultLength), const] in octet result); */
      91             : NS_IMETHODIMP nsStreamLoaderObserver::OnStreamComplete(nsIStreamLoader *loader, nsISupports *ctxt, nsresult status, uint32_t resultLength, const uint8_t *result)
      92             : {
      93             :     return NS_ERROR_NOT_IMPLEMENTED;
      94             : }
      95             : 
      96             : /* End of implementation class template. */
      97             : #endif
      98             : 
      99             : 
     100             : /* starting interface:    nsIStreamLoader */
     101             : #define NS_ISTREAMLOADER_IID_STR "323bcff1-7513-4e1f-a541-1c9213c2ed1b"
     102             : 
     103             : #define NS_ISTREAMLOADER_IID \
     104             :   {0x323bcff1, 0x7513, 0x4e1f, \
     105             :     { 0xa5, 0x41, 0x1c, 0x92, 0x13, 0xc2, 0xed, 0x1b }}
     106             : 
     107           9 : class NS_NO_VTABLE nsIStreamLoader : public nsIStreamListener {
     108             :  public:
     109             : 
     110             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISTREAMLOADER_IID)
     111             : 
     112             :   /* void init (in nsIStreamLoaderObserver aStreamObserver, [optional] in nsIRequestObserver aRequestObserver); */
     113             :   NS_IMETHOD Init(nsIStreamLoaderObserver *aStreamObserver, nsIRequestObserver *aRequestObserver) = 0;
     114             : 
     115             :   /* readonly attribute unsigned long numBytesRead; */
     116             :   NS_IMETHOD GetNumBytesRead(uint32_t *aNumBytesRead) = 0;
     117             : 
     118             :   /* readonly attribute nsIRequest request; */
     119             :   NS_IMETHOD GetRequest(nsIRequest * *aRequest) = 0;
     120             : 
     121             : };
     122             : 
     123             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIStreamLoader, NS_ISTREAMLOADER_IID)
     124             : 
     125             : /* Use this macro when declaring classes that implement this interface. */
     126             : #define NS_DECL_NSISTREAMLOADER \
     127             :   NS_IMETHOD Init(nsIStreamLoaderObserver *aStreamObserver, nsIRequestObserver *aRequestObserver) override; \
     128             :   NS_IMETHOD GetNumBytesRead(uint32_t *aNumBytesRead) override; \
     129             :   NS_IMETHOD GetRequest(nsIRequest * *aRequest) override; 
     130             : 
     131             : /* Use this macro when declaring the members of this interface when the
     132             :    class doesn't implement the interface. This is useful for forwarding. */
     133             : #define NS_DECL_NON_VIRTUAL_NSISTREAMLOADER \
     134             :   nsresult Init(nsIStreamLoaderObserver *aStreamObserver, nsIRequestObserver *aRequestObserver); \
     135             :   nsresult GetNumBytesRead(uint32_t *aNumBytesRead); \
     136             :   nsresult GetRequest(nsIRequest * *aRequest); 
     137             : 
     138             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     139             : #define NS_FORWARD_NSISTREAMLOADER(_to) \
     140             :   NS_IMETHOD Init(nsIStreamLoaderObserver *aStreamObserver, nsIRequestObserver *aRequestObserver) override { return _to Init(aStreamObserver, aRequestObserver); } \
     141             :   NS_IMETHOD GetNumBytesRead(uint32_t *aNumBytesRead) override { return _to GetNumBytesRead(aNumBytesRead); } \
     142             :   NS_IMETHOD GetRequest(nsIRequest * *aRequest) override { return _to GetRequest(aRequest); } 
     143             : 
     144             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     145             : #define NS_FORWARD_SAFE_NSISTREAMLOADER(_to) \
     146             :   NS_IMETHOD Init(nsIStreamLoaderObserver *aStreamObserver, nsIRequestObserver *aRequestObserver) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Init(aStreamObserver, aRequestObserver); } \
     147             :   NS_IMETHOD GetNumBytesRead(uint32_t *aNumBytesRead) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNumBytesRead(aNumBytesRead); } \
     148             :   NS_IMETHOD GetRequest(nsIRequest * *aRequest) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRequest(aRequest); } 
     149             : 
     150             : #if 0
     151             : /* Use the code below as a template for the implementation class for this interface. */
     152             : 
     153             : /* Header file */
     154             : class nsStreamLoader : public nsIStreamLoader
     155             : {
     156             : public:
     157             :   NS_DECL_ISUPPORTS
     158             :   NS_DECL_NSISTREAMLOADER
     159             : 
     160             :   nsStreamLoader();
     161             : 
     162             : private:
     163             :   ~nsStreamLoader();
     164             : 
     165             : protected:
     166             :   /* additional members */
     167             : };
     168             : 
     169             : /* Implementation file */
     170             : NS_IMPL_ISUPPORTS(nsStreamLoader, nsIStreamLoader)
     171             : 
     172             : nsStreamLoader::nsStreamLoader()
     173             : {
     174             :   /* member initializers and constructor code */
     175             : }
     176             : 
     177             : nsStreamLoader::~nsStreamLoader()
     178             : {
     179             :   /* destructor code */
     180             : }
     181             : 
     182             : /* void init (in nsIStreamLoaderObserver aStreamObserver, [optional] in nsIRequestObserver aRequestObserver); */
     183             : NS_IMETHODIMP nsStreamLoader::Init(nsIStreamLoaderObserver *aStreamObserver, nsIRequestObserver *aRequestObserver)
     184             : {
     185             :     return NS_ERROR_NOT_IMPLEMENTED;
     186             : }
     187             : 
     188             : /* readonly attribute unsigned long numBytesRead; */
     189             : NS_IMETHODIMP nsStreamLoader::GetNumBytesRead(uint32_t *aNumBytesRead)
     190             : {
     191             :     return NS_ERROR_NOT_IMPLEMENTED;
     192             : }
     193             : 
     194             : /* readonly attribute nsIRequest request; */
     195             : NS_IMETHODIMP nsStreamLoader::GetRequest(nsIRequest * *aRequest)
     196             : {
     197             :     return NS_ERROR_NOT_IMPLEMENTED;
     198             : }
     199             : 
     200             : /* End of implementation class template. */
     201             : #endif
     202             : 
     203             : 
     204             : #endif /* __gen_nsIStreamLoader_h__ */

Generated by: LCOV version 1.13