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

          Line data    Source code
       1             : /*
       2             :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/nsIThrottledInputChannel.idl
       3             :  */
       4             : 
       5             : #ifndef __gen_nsIThrottledInputChannel_h__
       6             : #define __gen_nsIThrottledInputChannel_h__
       7             : 
       8             : 
       9             : #ifndef __gen_nsISupports_h__
      10             : #include "nsISupports.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 nsIInputStream; /* forward declaration */
      18             : 
      19             : class nsIAsyncInputStream; /* forward declaration */
      20             : 
      21             : 
      22             : /* starting interface:    nsIInputChannelThrottleQueue */
      23             : #define NS_IINPUTCHANNELTHROTTLEQUEUE_IID_STR "6b4b96fe-3c67-4587-af7b-58b6b17da411"
      24             : 
      25             : #define NS_IINPUTCHANNELTHROTTLEQUEUE_IID \
      26             :   {0x6b4b96fe, 0x3c67, 0x4587, \
      27             :     { 0xaf, 0x7b, 0x58, 0xb6, 0xb1, 0x7d, 0xa4, 0x11 }}
      28             : 
      29           0 : class NS_NO_VTABLE nsIInputChannelThrottleQueue : public nsISupports {
      30             :  public:
      31             : 
      32             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IINPUTCHANNELTHROTTLEQUEUE_IID)
      33             : 
      34             :   /* void init (in unsigned long aMeanBytesPerSecond, in unsigned long aMaxBytesPerSecond); */
      35             :   NS_IMETHOD Init(uint32_t aMeanBytesPerSecond, uint32_t aMaxBytesPerSecond) = 0;
      36             : 
      37             :   /* unsigned long available (in unsigned long aRemaining); */
      38             :   NS_IMETHOD Available(uint32_t aRemaining, uint32_t *_retval) = 0;
      39             : 
      40             :   /* void recordRead (in unsigned long aBytesRead); */
      41             :   NS_IMETHOD RecordRead(uint32_t aBytesRead) = 0;
      42             : 
      43             :   /* unsigned long long bytesProcessed (); */
      44             :   NS_IMETHOD BytesProcessed(uint64_t *_retval) = 0;
      45             : 
      46             :   /* nsIAsyncInputStream wrapStream (in nsIInputStream aInputStream); */
      47             :   NS_IMETHOD WrapStream(nsIInputStream *aInputStream, nsIAsyncInputStream * *_retval) = 0;
      48             : 
      49             : };
      50             : 
      51             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIInputChannelThrottleQueue, NS_IINPUTCHANNELTHROTTLEQUEUE_IID)
      52             : 
      53             : /* Use this macro when declaring classes that implement this interface. */
      54             : #define NS_DECL_NSIINPUTCHANNELTHROTTLEQUEUE \
      55             :   NS_IMETHOD Init(uint32_t aMeanBytesPerSecond, uint32_t aMaxBytesPerSecond) override; \
      56             :   NS_IMETHOD Available(uint32_t aRemaining, uint32_t *_retval) override; \
      57             :   NS_IMETHOD RecordRead(uint32_t aBytesRead) override; \
      58             :   NS_IMETHOD BytesProcessed(uint64_t *_retval) override; \
      59             :   NS_IMETHOD WrapStream(nsIInputStream *aInputStream, nsIAsyncInputStream * *_retval) override; 
      60             : 
      61             : /* Use this macro when declaring the members of this interface when the
      62             :    class doesn't implement the interface. This is useful for forwarding. */
      63             : #define NS_DECL_NON_VIRTUAL_NSIINPUTCHANNELTHROTTLEQUEUE \
      64             :   nsresult Init(uint32_t aMeanBytesPerSecond, uint32_t aMaxBytesPerSecond); \
      65             :   nsresult Available(uint32_t aRemaining, uint32_t *_retval); \
      66             :   nsresult RecordRead(uint32_t aBytesRead); \
      67             :   nsresult BytesProcessed(uint64_t *_retval); \
      68             :   nsresult WrapStream(nsIInputStream *aInputStream, nsIAsyncInputStream * *_retval); 
      69             : 
      70             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      71             : #define NS_FORWARD_NSIINPUTCHANNELTHROTTLEQUEUE(_to) \
      72             :   NS_IMETHOD Init(uint32_t aMeanBytesPerSecond, uint32_t aMaxBytesPerSecond) override { return _to Init(aMeanBytesPerSecond, aMaxBytesPerSecond); } \
      73             :   NS_IMETHOD Available(uint32_t aRemaining, uint32_t *_retval) override { return _to Available(aRemaining, _retval); } \
      74             :   NS_IMETHOD RecordRead(uint32_t aBytesRead) override { return _to RecordRead(aBytesRead); } \
      75             :   NS_IMETHOD BytesProcessed(uint64_t *_retval) override { return _to BytesProcessed(_retval); } \
      76             :   NS_IMETHOD WrapStream(nsIInputStream *aInputStream, nsIAsyncInputStream * *_retval) override { return _to WrapStream(aInputStream, _retval); } 
      77             : 
      78             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      79             : #define NS_FORWARD_SAFE_NSIINPUTCHANNELTHROTTLEQUEUE(_to) \
      80             :   NS_IMETHOD Init(uint32_t aMeanBytesPerSecond, uint32_t aMaxBytesPerSecond) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Init(aMeanBytesPerSecond, aMaxBytesPerSecond); } \
      81             :   NS_IMETHOD Available(uint32_t aRemaining, uint32_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Available(aRemaining, _retval); } \
      82             :   NS_IMETHOD RecordRead(uint32_t aBytesRead) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RecordRead(aBytesRead); } \
      83             :   NS_IMETHOD BytesProcessed(uint64_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->BytesProcessed(_retval); } \
      84             :   NS_IMETHOD WrapStream(nsIInputStream *aInputStream, nsIAsyncInputStream * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->WrapStream(aInputStream, _retval); } 
      85             : 
      86             : #if 0
      87             : /* Use the code below as a template for the implementation class for this interface. */
      88             : 
      89             : /* Header file */
      90             : class nsInputChannelThrottleQueue : public nsIInputChannelThrottleQueue
      91             : {
      92             : public:
      93             :   NS_DECL_ISUPPORTS
      94             :   NS_DECL_NSIINPUTCHANNELTHROTTLEQUEUE
      95             : 
      96             :   nsInputChannelThrottleQueue();
      97             : 
      98             : private:
      99             :   ~nsInputChannelThrottleQueue();
     100             : 
     101             : protected:
     102             :   /* additional members */
     103             : };
     104             : 
     105             : /* Implementation file */
     106             : NS_IMPL_ISUPPORTS(nsInputChannelThrottleQueue, nsIInputChannelThrottleQueue)
     107             : 
     108             : nsInputChannelThrottleQueue::nsInputChannelThrottleQueue()
     109             : {
     110             :   /* member initializers and constructor code */
     111             : }
     112             : 
     113             : nsInputChannelThrottleQueue::~nsInputChannelThrottleQueue()
     114             : {
     115             :   /* destructor code */
     116             : }
     117             : 
     118             : /* void init (in unsigned long aMeanBytesPerSecond, in unsigned long aMaxBytesPerSecond); */
     119             : NS_IMETHODIMP nsInputChannelThrottleQueue::Init(uint32_t aMeanBytesPerSecond, uint32_t aMaxBytesPerSecond)
     120             : {
     121             :     return NS_ERROR_NOT_IMPLEMENTED;
     122             : }
     123             : 
     124             : /* unsigned long available (in unsigned long aRemaining); */
     125             : NS_IMETHODIMP nsInputChannelThrottleQueue::Available(uint32_t aRemaining, uint32_t *_retval)
     126             : {
     127             :     return NS_ERROR_NOT_IMPLEMENTED;
     128             : }
     129             : 
     130             : /* void recordRead (in unsigned long aBytesRead); */
     131             : NS_IMETHODIMP nsInputChannelThrottleQueue::RecordRead(uint32_t aBytesRead)
     132             : {
     133             :     return NS_ERROR_NOT_IMPLEMENTED;
     134             : }
     135             : 
     136             : /* unsigned long long bytesProcessed (); */
     137             : NS_IMETHODIMP nsInputChannelThrottleQueue::BytesProcessed(uint64_t *_retval)
     138             : {
     139             :     return NS_ERROR_NOT_IMPLEMENTED;
     140             : }
     141             : 
     142             : /* nsIAsyncInputStream wrapStream (in nsIInputStream aInputStream); */
     143             : NS_IMETHODIMP nsInputChannelThrottleQueue::WrapStream(nsIInputStream *aInputStream, nsIAsyncInputStream * *_retval)
     144             : {
     145             :     return NS_ERROR_NOT_IMPLEMENTED;
     146             : }
     147             : 
     148             : /* End of implementation class template. */
     149             : #endif
     150             : 
     151             : 
     152             : /* starting interface:    nsIThrottledInputChannel */
     153             : #define NS_ITHROTTLEDINPUTCHANNEL_IID_STR "0a32a100-c031-45b6-9e8b-0444c7d4a143"
     154             : 
     155             : #define NS_ITHROTTLEDINPUTCHANNEL_IID \
     156             :   {0x0a32a100, 0xc031, 0x45b6, \
     157             :     { 0x9e, 0x8b, 0x04, 0x44, 0xc7, 0xd4, 0xa1, 0x43 }}
     158             : 
     159          10 : class NS_NO_VTABLE nsIThrottledInputChannel : public nsISupports {
     160             :  public:
     161             : 
     162             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_ITHROTTLEDINPUTCHANNEL_IID)
     163             : 
     164             :   /* attribute nsIInputChannelThrottleQueue throttleQueue; */
     165             :   NS_IMETHOD GetThrottleQueue(nsIInputChannelThrottleQueue * *aThrottleQueue) = 0;
     166             :   NS_IMETHOD SetThrottleQueue(nsIInputChannelThrottleQueue *aThrottleQueue) = 0;
     167             : 
     168             : };
     169             : 
     170             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIThrottledInputChannel, NS_ITHROTTLEDINPUTCHANNEL_IID)
     171             : 
     172             : /* Use this macro when declaring classes that implement this interface. */
     173             : #define NS_DECL_NSITHROTTLEDINPUTCHANNEL \
     174             :   NS_IMETHOD GetThrottleQueue(nsIInputChannelThrottleQueue * *aThrottleQueue) override; \
     175             :   NS_IMETHOD SetThrottleQueue(nsIInputChannelThrottleQueue *aThrottleQueue) override; 
     176             : 
     177             : /* Use this macro when declaring the members of this interface when the
     178             :    class doesn't implement the interface. This is useful for forwarding. */
     179             : #define NS_DECL_NON_VIRTUAL_NSITHROTTLEDINPUTCHANNEL \
     180             :   nsresult GetThrottleQueue(nsIInputChannelThrottleQueue * *aThrottleQueue); \
     181             :   nsresult SetThrottleQueue(nsIInputChannelThrottleQueue *aThrottleQueue); 
     182             : 
     183             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     184             : #define NS_FORWARD_NSITHROTTLEDINPUTCHANNEL(_to) \
     185             :   NS_IMETHOD GetThrottleQueue(nsIInputChannelThrottleQueue * *aThrottleQueue) override { return _to GetThrottleQueue(aThrottleQueue); } \
     186             :   NS_IMETHOD SetThrottleQueue(nsIInputChannelThrottleQueue *aThrottleQueue) override { return _to SetThrottleQueue(aThrottleQueue); } 
     187             : 
     188             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     189             : #define NS_FORWARD_SAFE_NSITHROTTLEDINPUTCHANNEL(_to) \
     190             :   NS_IMETHOD GetThrottleQueue(nsIInputChannelThrottleQueue * *aThrottleQueue) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetThrottleQueue(aThrottleQueue); } \
     191             :   NS_IMETHOD SetThrottleQueue(nsIInputChannelThrottleQueue *aThrottleQueue) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetThrottleQueue(aThrottleQueue); } 
     192             : 
     193             : #if 0
     194             : /* Use the code below as a template for the implementation class for this interface. */
     195             : 
     196             : /* Header file */
     197             : class nsThrottledInputChannel : public nsIThrottledInputChannel
     198             : {
     199             : public:
     200             :   NS_DECL_ISUPPORTS
     201             :   NS_DECL_NSITHROTTLEDINPUTCHANNEL
     202             : 
     203             :   nsThrottledInputChannel();
     204             : 
     205             : private:
     206             :   ~nsThrottledInputChannel();
     207             : 
     208             : protected:
     209             :   /* additional members */
     210             : };
     211             : 
     212             : /* Implementation file */
     213             : NS_IMPL_ISUPPORTS(nsThrottledInputChannel, nsIThrottledInputChannel)
     214             : 
     215             : nsThrottledInputChannel::nsThrottledInputChannel()
     216             : {
     217             :   /* member initializers and constructor code */
     218             : }
     219             : 
     220             : nsThrottledInputChannel::~nsThrottledInputChannel()
     221             : {
     222             :   /* destructor code */
     223             : }
     224             : 
     225             : /* attribute nsIInputChannelThrottleQueue throttleQueue; */
     226             : NS_IMETHODIMP nsThrottledInputChannel::GetThrottleQueue(nsIInputChannelThrottleQueue * *aThrottleQueue)
     227             : {
     228             :     return NS_ERROR_NOT_IMPLEMENTED;
     229             : }
     230             : NS_IMETHODIMP nsThrottledInputChannel::SetThrottleQueue(nsIInputChannelThrottleQueue *aThrottleQueue)
     231             : {
     232             :     return NS_ERROR_NOT_IMPLEMENTED;
     233             : }
     234             : 
     235             : /* End of implementation class template. */
     236             : #endif
     237             : 
     238             : 
     239             : #endif /* __gen_nsIThrottledInputChannel_h__ */

Generated by: LCOV version 1.13