LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/dist/include - nsIInputStreamPump.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/nsIInputStreamPump.idl
       3             :  */
       4             : 
       5             : #ifndef __gen_nsIInputStreamPump_h__
       6             : #define __gen_nsIInputStreamPump_h__
       7             : 
       8             : 
       9             : #ifndef __gen_nsIRequest_h__
      10             : #include "nsIRequest.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 nsIEventTarget; /* forward declaration */
      18             : 
      19             : class nsIInputStream; /* forward declaration */
      20             : 
      21             : class nsIStreamListener; /* forward declaration */
      22             : 
      23             : 
      24             : /* starting interface:    nsIInputStreamPump */
      25             : #define NS_IINPUTSTREAMPUMP_IID_STR "400f5468-97e7-4d2b-9c65-a82aecc7ae82"
      26             : 
      27             : #define NS_IINPUTSTREAMPUMP_IID \
      28             :   {0x400f5468, 0x97e7, 0x4d2b, \
      29             :     { 0x9c, 0x65, 0xa8, 0x2a, 0xec, 0xc7, 0xae, 0x82 }}
      30             : 
      31          73 : class NS_NO_VTABLE nsIInputStreamPump : public nsIRequest {
      32             :  public:
      33             : 
      34             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IINPUTSTREAMPUMP_IID)
      35             : 
      36             :   /* void init (in nsIInputStream aStream, in long long aStreamPos, in long long aStreamLen, in unsigned long aSegmentSize, in unsigned long aSegmentCount, in boolean aCloseWhenDone, [optional] in nsIEventTarget aMainThreadTarget); */
      37             :   NS_IMETHOD Init(nsIInputStream *aStream, int64_t aStreamPos, int64_t aStreamLen, uint32_t aSegmentSize, uint32_t aSegmentCount, bool aCloseWhenDone, nsIEventTarget *aMainThreadTarget) = 0;
      38             : 
      39             :   /* void asyncRead (in nsIStreamListener aListener, in nsISupports aListenerContext); */
      40             :   NS_IMETHOD AsyncRead(nsIStreamListener *aListener, nsISupports *aListenerContext) = 0;
      41             : 
      42             : };
      43             : 
      44             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIInputStreamPump, NS_IINPUTSTREAMPUMP_IID)
      45             : 
      46             : /* Use this macro when declaring classes that implement this interface. */
      47             : #define NS_DECL_NSIINPUTSTREAMPUMP \
      48             :   NS_IMETHOD Init(nsIInputStream *aStream, int64_t aStreamPos, int64_t aStreamLen, uint32_t aSegmentSize, uint32_t aSegmentCount, bool aCloseWhenDone, nsIEventTarget *aMainThreadTarget) override; \
      49             :   NS_IMETHOD AsyncRead(nsIStreamListener *aListener, nsISupports *aListenerContext) override; 
      50             : 
      51             : /* Use this macro when declaring the members of this interface when the
      52             :    class doesn't implement the interface. This is useful for forwarding. */
      53             : #define NS_DECL_NON_VIRTUAL_NSIINPUTSTREAMPUMP \
      54             :   nsresult Init(nsIInputStream *aStream, int64_t aStreamPos, int64_t aStreamLen, uint32_t aSegmentSize, uint32_t aSegmentCount, bool aCloseWhenDone, nsIEventTarget *aMainThreadTarget); \
      55             :   nsresult AsyncRead(nsIStreamListener *aListener, nsISupports *aListenerContext); 
      56             : 
      57             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      58             : #define NS_FORWARD_NSIINPUTSTREAMPUMP(_to) \
      59             :   NS_IMETHOD Init(nsIInputStream *aStream, int64_t aStreamPos, int64_t aStreamLen, uint32_t aSegmentSize, uint32_t aSegmentCount, bool aCloseWhenDone, nsIEventTarget *aMainThreadTarget) override { return _to Init(aStream, aStreamPos, aStreamLen, aSegmentSize, aSegmentCount, aCloseWhenDone, aMainThreadTarget); } \
      60             :   NS_IMETHOD AsyncRead(nsIStreamListener *aListener, nsISupports *aListenerContext) override { return _to AsyncRead(aListener, aListenerContext); } 
      61             : 
      62             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      63             : #define NS_FORWARD_SAFE_NSIINPUTSTREAMPUMP(_to) \
      64             :   NS_IMETHOD Init(nsIInputStream *aStream, int64_t aStreamPos, int64_t aStreamLen, uint32_t aSegmentSize, uint32_t aSegmentCount, bool aCloseWhenDone, nsIEventTarget *aMainThreadTarget) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Init(aStream, aStreamPos, aStreamLen, aSegmentSize, aSegmentCount, aCloseWhenDone, aMainThreadTarget); } \
      65             :   NS_IMETHOD AsyncRead(nsIStreamListener *aListener, nsISupports *aListenerContext) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AsyncRead(aListener, aListenerContext); } 
      66             : 
      67             : #if 0
      68             : /* Use the code below as a template for the implementation class for this interface. */
      69             : 
      70             : /* Header file */
      71             : class nsInputStreamPump : public nsIInputStreamPump
      72             : {
      73             : public:
      74             :   NS_DECL_ISUPPORTS
      75             :   NS_DECL_NSIINPUTSTREAMPUMP
      76             : 
      77             :   nsInputStreamPump();
      78             : 
      79             : private:
      80             :   ~nsInputStreamPump();
      81             : 
      82             : protected:
      83             :   /* additional members */
      84             : };
      85             : 
      86             : /* Implementation file */
      87             : NS_IMPL_ISUPPORTS(nsInputStreamPump, nsIInputStreamPump)
      88             : 
      89             : nsInputStreamPump::nsInputStreamPump()
      90             : {
      91             :   /* member initializers and constructor code */
      92             : }
      93             : 
      94             : nsInputStreamPump::~nsInputStreamPump()
      95             : {
      96             :   /* destructor code */
      97             : }
      98             : 
      99             : /* void init (in nsIInputStream aStream, in long long aStreamPos, in long long aStreamLen, in unsigned long aSegmentSize, in unsigned long aSegmentCount, in boolean aCloseWhenDone, [optional] in nsIEventTarget aMainThreadTarget); */
     100             : NS_IMETHODIMP nsInputStreamPump::Init(nsIInputStream *aStream, int64_t aStreamPos, int64_t aStreamLen, uint32_t aSegmentSize, uint32_t aSegmentCount, bool aCloseWhenDone, nsIEventTarget *aMainThreadTarget)
     101             : {
     102             :     return NS_ERROR_NOT_IMPLEMENTED;
     103             : }
     104             : 
     105             : /* void asyncRead (in nsIStreamListener aListener, in nsISupports aListenerContext); */
     106             : NS_IMETHODIMP nsInputStreamPump::AsyncRead(nsIStreamListener *aListener, nsISupports *aListenerContext)
     107             : {
     108             :     return NS_ERROR_NOT_IMPLEMENTED;
     109             : }
     110             : 
     111             : /* End of implementation class template. */
     112             : #endif
     113             : 
     114             : 
     115             : #endif /* __gen_nsIInputStreamPump_h__ */

Generated by: LCOV version 1.13