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

       1                 : /*
       2                 :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/netwerk/base/public/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 "a430d870-df77-4502-9570-d46a8de33154"
      24                 : 
      25                 : #define NS_ICHANNELEVENTSINK_IID \
      26                 :   {0xa430d870, 0xdf77, 0x4502, \
      27                 :     { 0x95, 0x70, 0xd4, 0x6a, 0x8d, 0xe3, 0x31, 0x54 }}
      28                 : 
      29            3546 : class NS_NO_VTABLE NS_SCRIPTABLE 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                 :   };
      39                 : 
      40                 :   /* void asyncOnChannelRedirect (in nsIChannel oldChannel, in nsIChannel newChannel, in unsigned long flags, in nsIAsyncVerifyRedirectCallback callback); */
      41                 :   NS_SCRIPTABLE NS_IMETHOD AsyncOnChannelRedirect(nsIChannel *oldChannel, nsIChannel *newChannel, PRUint32 flags, nsIAsyncVerifyRedirectCallback *callback) = 0;
      42                 : 
      43                 : };
      44                 : 
      45                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIChannelEventSink, NS_ICHANNELEVENTSINK_IID)
      46                 : 
      47                 : /* Use this macro when declaring classes that implement this interface. */
      48                 : #define NS_DECL_NSICHANNELEVENTSINK \
      49                 :   NS_SCRIPTABLE NS_IMETHOD AsyncOnChannelRedirect(nsIChannel *oldChannel, nsIChannel *newChannel, PRUint32 flags, nsIAsyncVerifyRedirectCallback *callback); 
      50                 : 
      51                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      52                 : #define NS_FORWARD_NSICHANNELEVENTSINK(_to) \
      53                 :   NS_SCRIPTABLE NS_IMETHOD AsyncOnChannelRedirect(nsIChannel *oldChannel, nsIChannel *newChannel, PRUint32 flags, nsIAsyncVerifyRedirectCallback *callback) { return _to AsyncOnChannelRedirect(oldChannel, newChannel, flags, callback); } 
      54                 : 
      55                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      56                 : #define NS_FORWARD_SAFE_NSICHANNELEVENTSINK(_to) \
      57                 :   NS_SCRIPTABLE NS_IMETHOD AsyncOnChannelRedirect(nsIChannel *oldChannel, nsIChannel *newChannel, PRUint32 flags, nsIAsyncVerifyRedirectCallback *callback) { return !_to ? NS_ERROR_NULL_POINTER : _to->AsyncOnChannelRedirect(oldChannel, newChannel, flags, callback); } 
      58                 : 
      59                 : #if 0
      60                 : /* Use the code below as a template for the implementation class for this interface. */
      61                 : 
      62                 : /* Header file */
      63                 : class nsChannelEventSink : public nsIChannelEventSink
      64                 : {
      65                 : public:
      66                 :   NS_DECL_ISUPPORTS
      67                 :   NS_DECL_NSICHANNELEVENTSINK
      68                 : 
      69                 :   nsChannelEventSink();
      70                 : 
      71                 : private:
      72                 :   ~nsChannelEventSink();
      73                 : 
      74                 : protected:
      75                 :   /* additional members */
      76                 : };
      77                 : 
      78                 : /* Implementation file */
      79                 : NS_IMPL_ISUPPORTS1(nsChannelEventSink, nsIChannelEventSink)
      80                 : 
      81                 : nsChannelEventSink::nsChannelEventSink()
      82                 : {
      83                 :   /* member initializers and constructor code */
      84                 : }
      85                 : 
      86                 : nsChannelEventSink::~nsChannelEventSink()
      87                 : {
      88                 :   /* destructor code */
      89                 : }
      90                 : 
      91                 : /* void asyncOnChannelRedirect (in nsIChannel oldChannel, in nsIChannel newChannel, in unsigned long flags, in nsIAsyncVerifyRedirectCallback callback); */
      92                 : NS_IMETHODIMP nsChannelEventSink::AsyncOnChannelRedirect(nsIChannel *oldChannel, nsIChannel *newChannel, PRUint32 flags, nsIAsyncVerifyRedirectCallback *callback)
      93                 : {
      94                 :     return NS_ERROR_NOT_IMPLEMENTED;
      95                 : }
      96                 : 
      97                 : /* End of implementation class template. */
      98                 : #endif
      99                 : 
     100                 : 
     101                 : #endif /* __gen_nsIChannelEventSink_h__ */

Generated by: LCOV version 1.7