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

          Line data    Source code
       1             : /*
       2             :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/nsIAuthPrompt2.idl
       3             :  */
       4             : 
       5             : #ifndef __gen_nsIAuthPrompt2_h__
       6             : #define __gen_nsIAuthPrompt2_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 nsIAuthPromptCallback; /* forward declaration */
      18             : 
      19             : class nsIChannel; /* forward declaration */
      20             : 
      21             : class nsICancelable; /* forward declaration */
      22             : 
      23             : class nsIAuthInformation; /* forward declaration */
      24             : 
      25             : 
      26             : /* starting interface:    nsIAuthPrompt2 */
      27             : #define NS_IAUTHPROMPT2_IID_STR "651395eb-8612-4876-8ac0-a88d4dce9e1e"
      28             : 
      29             : #define NS_IAUTHPROMPT2_IID \
      30             :   {0x651395eb, 0x8612, 0x4876, \
      31             :     { 0x8a, 0xc0, 0xa8, 0x8d, 0x4d, 0xce, 0x9e, 0x1e }}
      32             : 
      33           0 : class NS_NO_VTABLE nsIAuthPrompt2 : public nsISupports {
      34             :  public:
      35             : 
      36             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IAUTHPROMPT2_IID)
      37             : 
      38             :   enum {
      39             :     LEVEL_NONE = 0U,
      40             :     LEVEL_PW_ENCRYPTED = 1U,
      41             :     LEVEL_SECURE = 2U
      42             :   };
      43             : 
      44             :   /* boolean promptAuth (in nsIChannel aChannel, in uint32_t level, in nsIAuthInformation authInfo); */
      45             :   NS_IMETHOD PromptAuth(nsIChannel *aChannel, uint32_t level, nsIAuthInformation *authInfo, bool *_retval) = 0;
      46             : 
      47             :   /* nsICancelable asyncPromptAuth (in nsIChannel aChannel, in nsIAuthPromptCallback aCallback, in nsISupports aContext, in uint32_t level, in nsIAuthInformation authInfo); */
      48             :   NS_IMETHOD AsyncPromptAuth(nsIChannel *aChannel, nsIAuthPromptCallback *aCallback, nsISupports *aContext, uint32_t level, nsIAuthInformation *authInfo, nsICancelable * *_retval) = 0;
      49             : 
      50             : };
      51             : 
      52             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIAuthPrompt2, NS_IAUTHPROMPT2_IID)
      53             : 
      54             : /* Use this macro when declaring classes that implement this interface. */
      55             : #define NS_DECL_NSIAUTHPROMPT2 \
      56             :   NS_IMETHOD PromptAuth(nsIChannel *aChannel, uint32_t level, nsIAuthInformation *authInfo, bool *_retval) override; \
      57             :   NS_IMETHOD AsyncPromptAuth(nsIChannel *aChannel, nsIAuthPromptCallback *aCallback, nsISupports *aContext, uint32_t level, nsIAuthInformation *authInfo, nsICancelable * *_retval) override; 
      58             : 
      59             : /* Use this macro when declaring the members of this interface when the
      60             :    class doesn't implement the interface. This is useful for forwarding. */
      61             : #define NS_DECL_NON_VIRTUAL_NSIAUTHPROMPT2 \
      62             :   nsresult PromptAuth(nsIChannel *aChannel, uint32_t level, nsIAuthInformation *authInfo, bool *_retval); \
      63             :   nsresult AsyncPromptAuth(nsIChannel *aChannel, nsIAuthPromptCallback *aCallback, nsISupports *aContext, uint32_t level, nsIAuthInformation *authInfo, nsICancelable * *_retval); 
      64             : 
      65             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      66             : #define NS_FORWARD_NSIAUTHPROMPT2(_to) \
      67             :   NS_IMETHOD PromptAuth(nsIChannel *aChannel, uint32_t level, nsIAuthInformation *authInfo, bool *_retval) override { return _to PromptAuth(aChannel, level, authInfo, _retval); } \
      68             :   NS_IMETHOD AsyncPromptAuth(nsIChannel *aChannel, nsIAuthPromptCallback *aCallback, nsISupports *aContext, uint32_t level, nsIAuthInformation *authInfo, nsICancelable * *_retval) override { return _to AsyncPromptAuth(aChannel, aCallback, aContext, level, authInfo, _retval); } 
      69             : 
      70             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      71             : #define NS_FORWARD_SAFE_NSIAUTHPROMPT2(_to) \
      72             :   NS_IMETHOD PromptAuth(nsIChannel *aChannel, uint32_t level, nsIAuthInformation *authInfo, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->PromptAuth(aChannel, level, authInfo, _retval); } \
      73             :   NS_IMETHOD AsyncPromptAuth(nsIChannel *aChannel, nsIAuthPromptCallback *aCallback, nsISupports *aContext, uint32_t level, nsIAuthInformation *authInfo, nsICancelable * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AsyncPromptAuth(aChannel, aCallback, aContext, level, authInfo, _retval); } 
      74             : 
      75             : #if 0
      76             : /* Use the code below as a template for the implementation class for this interface. */
      77             : 
      78             : /* Header file */
      79             : class nsAuthPrompt2 : public nsIAuthPrompt2
      80             : {
      81             : public:
      82             :   NS_DECL_ISUPPORTS
      83             :   NS_DECL_NSIAUTHPROMPT2
      84             : 
      85             :   nsAuthPrompt2();
      86             : 
      87             : private:
      88             :   ~nsAuthPrompt2();
      89             : 
      90             : protected:
      91             :   /* additional members */
      92             : };
      93             : 
      94             : /* Implementation file */
      95             : NS_IMPL_ISUPPORTS(nsAuthPrompt2, nsIAuthPrompt2)
      96             : 
      97             : nsAuthPrompt2::nsAuthPrompt2()
      98             : {
      99             :   /* member initializers and constructor code */
     100             : }
     101             : 
     102             : nsAuthPrompt2::~nsAuthPrompt2()
     103             : {
     104             :   /* destructor code */
     105             : }
     106             : 
     107             : /* boolean promptAuth (in nsIChannel aChannel, in uint32_t level, in nsIAuthInformation authInfo); */
     108             : NS_IMETHODIMP nsAuthPrompt2::PromptAuth(nsIChannel *aChannel, uint32_t level, nsIAuthInformation *authInfo, bool *_retval)
     109             : {
     110             :     return NS_ERROR_NOT_IMPLEMENTED;
     111             : }
     112             : 
     113             : /* nsICancelable asyncPromptAuth (in nsIChannel aChannel, in nsIAuthPromptCallback aCallback, in nsISupports aContext, in uint32_t level, in nsIAuthInformation authInfo); */
     114             : NS_IMETHODIMP nsAuthPrompt2::AsyncPromptAuth(nsIChannel *aChannel, nsIAuthPromptCallback *aCallback, nsISupports *aContext, uint32_t level, nsIAuthInformation *authInfo, nsICancelable * *_retval)
     115             : {
     116             :     return NS_ERROR_NOT_IMPLEMENTED;
     117             : }
     118             : 
     119             : /* End of implementation class template. */
     120             : #endif
     121             : 
     122             : 
     123             : #endif /* __gen_nsIAuthPrompt2_h__ */

Generated by: LCOV version 1.13