LCOV - code coverage report
Current view: directory - objdir/dist/include - nsIStreamLoader.h (source / functions) Found Hit Coverage
Test: app.info Lines: 2 2 100.0 %
Date: 2012-06-02 Functions: 2 2 100.0 %

       1                 : /*
       2                 :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/netwerk/base/public/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            1283 : class NS_NO_VTABLE NS_SCRIPTABLE 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_SCRIPTABLE NS_IMETHOD OnStreamComplete(nsIStreamLoader *loader, nsISupports *ctxt, nsresult status, PRUint32 resultLength, const PRUint8 *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_SCRIPTABLE NS_IMETHOD OnStreamComplete(nsIStreamLoader *loader, nsISupports *ctxt, nsresult status, PRUint32 resultLength, const PRUint8 *result); 
      44                 : 
      45                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      46                 : #define NS_FORWARD_NSISTREAMLOADEROBSERVER(_to) \
      47                 :   NS_SCRIPTABLE NS_IMETHOD OnStreamComplete(nsIStreamLoader *loader, nsISupports *ctxt, nsresult status, PRUint32 resultLength, const PRUint8 *result) { return _to OnStreamComplete(loader, ctxt, status, resultLength, result); } 
      48                 : 
      49                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      50                 : #define NS_FORWARD_SAFE_NSISTREAMLOADEROBSERVER(_to) \
      51                 :   NS_SCRIPTABLE NS_IMETHOD OnStreamComplete(nsIStreamLoader *loader, nsISupports *ctxt, nsresult status, PRUint32 resultLength, const PRUint8 *result) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnStreamComplete(loader, ctxt, status, resultLength, result); } 
      52                 : 
      53                 : #if 0
      54                 : /* Use the code below as a template for the implementation class for this interface. */
      55                 : 
      56                 : /* Header file */
      57                 : class nsStreamLoaderObserver : public nsIStreamLoaderObserver
      58                 : {
      59                 : public:
      60                 :   NS_DECL_ISUPPORTS
      61                 :   NS_DECL_NSISTREAMLOADEROBSERVER
      62                 : 
      63                 :   nsStreamLoaderObserver();
      64                 : 
      65                 : private:
      66                 :   ~nsStreamLoaderObserver();
      67                 : 
      68                 : protected:
      69                 :   /* additional members */
      70                 : };
      71                 : 
      72                 : /* Implementation file */
      73                 : NS_IMPL_ISUPPORTS1(nsStreamLoaderObserver, nsIStreamLoaderObserver)
      74                 : 
      75                 : nsStreamLoaderObserver::nsStreamLoaderObserver()
      76                 : {
      77                 :   /* member initializers and constructor code */
      78                 : }
      79                 : 
      80                 : nsStreamLoaderObserver::~nsStreamLoaderObserver()
      81                 : {
      82                 :   /* destructor code */
      83                 : }
      84                 : 
      85                 : /* void onStreamComplete (in nsIStreamLoader loader, in nsISupports ctxt, in nsresult status, in unsigned long resultLength, [array, size_is (resultLength), const] in octet result); */
      86                 : NS_IMETHODIMP nsStreamLoaderObserver::OnStreamComplete(nsIStreamLoader *loader, nsISupports *ctxt, nsresult status, PRUint32 resultLength, const PRUint8 *result)
      87                 : {
      88                 :     return NS_ERROR_NOT_IMPLEMENTED;
      89                 : }
      90                 : 
      91                 : /* End of implementation class template. */
      92                 : #endif
      93                 : 
      94                 : 
      95                 : /* starting interface:    nsIStreamLoader */
      96                 : #define NS_ISTREAMLOADER_IID_STR "8ea7e890-8211-11d9-8bde-f66bad1e3f3a"
      97                 : 
      98                 : #define NS_ISTREAMLOADER_IID \
      99                 :   {0x8ea7e890, 0x8211, 0x11d9, \
     100                 :     { 0x8b, 0xde, 0xf6, 0x6b, 0xad, 0x1e, 0x3f, 0x3a }}
     101                 : 
     102              16 : class NS_NO_VTABLE NS_SCRIPTABLE nsIStreamLoader : public nsIStreamListener {
     103                 :  public: 
     104                 : 
     105                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISTREAMLOADER_IID)
     106                 : 
     107                 :   /* void init (in nsIStreamLoaderObserver aObserver); */
     108                 :   NS_SCRIPTABLE NS_IMETHOD Init(nsIStreamLoaderObserver *aObserver) = 0;
     109                 : 
     110                 :   /* readonly attribute unsigned long numBytesRead; */
     111                 :   NS_SCRIPTABLE NS_IMETHOD GetNumBytesRead(PRUint32 *aNumBytesRead) = 0;
     112                 : 
     113                 :   /* readonly attribute nsIRequest request; */
     114                 :   NS_SCRIPTABLE NS_IMETHOD GetRequest(nsIRequest * *aRequest) = 0;
     115                 : 
     116                 : };
     117                 : 
     118                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIStreamLoader, NS_ISTREAMLOADER_IID)
     119                 : 
     120                 : /* Use this macro when declaring classes that implement this interface. */
     121                 : #define NS_DECL_NSISTREAMLOADER \
     122                 :   NS_SCRIPTABLE NS_IMETHOD Init(nsIStreamLoaderObserver *aObserver); \
     123                 :   NS_SCRIPTABLE NS_IMETHOD GetNumBytesRead(PRUint32 *aNumBytesRead); \
     124                 :   NS_SCRIPTABLE NS_IMETHOD GetRequest(nsIRequest * *aRequest); 
     125                 : 
     126                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     127                 : #define NS_FORWARD_NSISTREAMLOADER(_to) \
     128                 :   NS_SCRIPTABLE NS_IMETHOD Init(nsIStreamLoaderObserver *aObserver) { return _to Init(aObserver); } \
     129                 :   NS_SCRIPTABLE NS_IMETHOD GetNumBytesRead(PRUint32 *aNumBytesRead) { return _to GetNumBytesRead(aNumBytesRead); } \
     130                 :   NS_SCRIPTABLE NS_IMETHOD GetRequest(nsIRequest * *aRequest) { return _to GetRequest(aRequest); } 
     131                 : 
     132                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     133                 : #define NS_FORWARD_SAFE_NSISTREAMLOADER(_to) \
     134                 :   NS_SCRIPTABLE NS_IMETHOD Init(nsIStreamLoaderObserver *aObserver) { return !_to ? NS_ERROR_NULL_POINTER : _to->Init(aObserver); } \
     135                 :   NS_SCRIPTABLE NS_IMETHOD GetNumBytesRead(PRUint32 *aNumBytesRead) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNumBytesRead(aNumBytesRead); } \
     136                 :   NS_SCRIPTABLE NS_IMETHOD GetRequest(nsIRequest * *aRequest) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRequest(aRequest); } 
     137                 : 
     138                 : #if 0
     139                 : /* Use the code below as a template for the implementation class for this interface. */
     140                 : 
     141                 : /* Header file */
     142                 : class nsStreamLoader : public nsIStreamLoader
     143                 : {
     144                 : public:
     145                 :   NS_DECL_ISUPPORTS
     146                 :   NS_DECL_NSISTREAMLOADER
     147                 : 
     148                 :   nsStreamLoader();
     149                 : 
     150                 : private:
     151                 :   ~nsStreamLoader();
     152                 : 
     153                 : protected:
     154                 :   /* additional members */
     155                 : };
     156                 : 
     157                 : /* Implementation file */
     158                 : NS_IMPL_ISUPPORTS1(nsStreamLoader, nsIStreamLoader)
     159                 : 
     160                 : nsStreamLoader::nsStreamLoader()
     161                 : {
     162                 :   /* member initializers and constructor code */
     163                 : }
     164                 : 
     165                 : nsStreamLoader::~nsStreamLoader()
     166                 : {
     167                 :   /* destructor code */
     168                 : }
     169                 : 
     170                 : /* void init (in nsIStreamLoaderObserver aObserver); */
     171                 : NS_IMETHODIMP nsStreamLoader::Init(nsIStreamLoaderObserver *aObserver)
     172                 : {
     173                 :     return NS_ERROR_NOT_IMPLEMENTED;
     174                 : }
     175                 : 
     176                 : /* readonly attribute unsigned long numBytesRead; */
     177                 : NS_IMETHODIMP nsStreamLoader::GetNumBytesRead(PRUint32 *aNumBytesRead)
     178                 : {
     179                 :     return NS_ERROR_NOT_IMPLEMENTED;
     180                 : }
     181                 : 
     182                 : /* readonly attribute nsIRequest request; */
     183                 : NS_IMETHODIMP nsStreamLoader::GetRequest(nsIRequest * *aRequest)
     184                 : {
     185                 :     return NS_ERROR_NOT_IMPLEMENTED;
     186                 : }
     187                 : 
     188                 : /* End of implementation class template. */
     189                 : #endif
     190                 : 
     191                 : 
     192                 : #endif /* __gen_nsIStreamLoader_h__ */

Generated by: LCOV version 1.7