LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/dist/include - nsIChannelEventSink.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/nsIChannelEventSink.idl
       3             :  */
       4             : 
       5             : #ifndef __gen_nsIChannelEventSink_h__
       6             : #define __gen_nsIChannelEventSink_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 nsIChannel; /* forward declaration */
      18             : 
      19             : class nsIAsyncVerifyRedirectCallback; /* forward declaration */
      20             : 
      21             : 
      22             : /* starting interface:    nsIChannelEventSink */
      23             : #define NS_ICHANNELEVENTSINK_IID_STR "0197720d-37ed-4e75-8956-d0d296e4d8a6"
      24             : 
      25             : #define NS_ICHANNELEVENTSINK_IID \
      26             :   {0x0197720d, 0x37ed, 0x4e75, \
      27             :     { 0x89, 0x56, 0xd0, 0xd2, 0x96, 0xe4, 0xd8, 0xa6 }}
      28             : 
      29         109 : class NS_NO_VTABLE nsIChannelEventSink : public nsISupports {
      30             :  public:
      31             : 
      32             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICHANNELEVENTSINK_IID)
      33             : 
      34             :   enum {
      35             :     REDIRECT_TEMPORARY = 1U,
      36             :     REDIRECT_PERMANENT = 2U,
      37             :     REDIRECT_INTERNAL = 4U,
      38             :     REDIRECT_STS_UPGRADE = 8U
      39             :   };
      40             : 
      41             :   /* void asyncOnChannelRedirect (in nsIChannel oldChannel, in nsIChannel newChannel, in unsigned long flags, in nsIAsyncVerifyRedirectCallback callback); */
      42             :   NS_IMETHOD AsyncOnChannelRedirect(nsIChannel *oldChannel, nsIChannel *newChannel, uint32_t flags, nsIAsyncVerifyRedirectCallback *callback) = 0;
      43             : 
      44             : };
      45             : 
      46             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIChannelEventSink, NS_ICHANNELEVENTSINK_IID)
      47             : 
      48             : /* Use this macro when declaring classes that implement this interface. */
      49             : #define NS_DECL_NSICHANNELEVENTSINK \
      50             :   NS_IMETHOD AsyncOnChannelRedirect(nsIChannel *oldChannel, nsIChannel *newChannel, uint32_t flags, nsIAsyncVerifyRedirectCallback *callback) override; 
      51             : 
      52             : /* Use this macro when declaring the members of this interface when the
      53             :    class doesn't implement the interface. This is useful for forwarding. */
      54             : #define NS_DECL_NON_VIRTUAL_NSICHANNELEVENTSINK \
      55             :   nsresult AsyncOnChannelRedirect(nsIChannel *oldChannel, nsIChannel *newChannel, uint32_t flags, nsIAsyncVerifyRedirectCallback *callback); 
      56             : 
      57             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      58             : #define NS_FORWARD_NSICHANNELEVENTSINK(_to) \
      59             :   NS_IMETHOD AsyncOnChannelRedirect(nsIChannel *oldChannel, nsIChannel *newChannel, uint32_t flags, nsIAsyncVerifyRedirectCallback *callback) override { return _to AsyncOnChannelRedirect(oldChannel, newChannel, flags, callback); } 
      60             : 
      61             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      62             : #define NS_FORWARD_SAFE_NSICHANNELEVENTSINK(_to) \
      63             :   NS_IMETHOD AsyncOnChannelRedirect(nsIChannel *oldChannel, nsIChannel *newChannel, uint32_t flags, nsIAsyncVerifyRedirectCallback *callback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AsyncOnChannelRedirect(oldChannel, newChannel, flags, callback); } 
      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 nsChannelEventSink : public nsIChannelEventSink
      70             : {
      71             : public:
      72             :   NS_DECL_ISUPPORTS
      73             :   NS_DECL_NSICHANNELEVENTSINK
      74             : 
      75             :   nsChannelEventSink();
      76             : 
      77             : private:
      78             :   ~nsChannelEventSink();
      79             : 
      80             : protected:
      81             :   /* additional members */
      82             : };
      83             : 
      84             : /* Implementation file */
      85             : NS_IMPL_ISUPPORTS(nsChannelEventSink, nsIChannelEventSink)
      86             : 
      87             : nsChannelEventSink::nsChannelEventSink()
      88             : {
      89             :   /* member initializers and constructor code */
      90             : }
      91             : 
      92             : nsChannelEventSink::~nsChannelEventSink()
      93             : {
      94             :   /* destructor code */
      95             : }
      96             : 
      97             : /* void asyncOnChannelRedirect (in nsIChannel oldChannel, in nsIChannel newChannel, in unsigned long flags, in nsIAsyncVerifyRedirectCallback callback); */
      98             : NS_IMETHODIMP nsChannelEventSink::AsyncOnChannelRedirect(nsIChannel *oldChannel, nsIChannel *newChannel, uint32_t flags, nsIAsyncVerifyRedirectCallback *callback)
      99             : {
     100             :     return NS_ERROR_NOT_IMPLEMENTED;
     101             : }
     102             : 
     103             : /* End of implementation class template. */
     104             : #endif
     105             : 
     106             : 
     107             : #endif /* __gen_nsIChannelEventSink_h__ */

Generated by: LCOV version 1.13