LCOV - code coverage report
Current view: directory - objdir/dist/include - nsIHttpAuthenticator.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/protocol/http/nsIHttpAuthenticator.idl
       3                 :  */
       4                 : 
       5                 : #ifndef __gen_nsIHttpAuthenticator_h__
       6                 : #define __gen_nsIHttpAuthenticator_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 nsIHttpAuthenticableChannel; /* forward declaration */
      18                 : 
      19                 : 
      20                 : /* starting interface:    nsIHttpAuthenticator */
      21                 : #define NS_IHTTPAUTHENTICATOR_IID_STR "16784db0-fcb1-4352-b0c9-6a3a67e3cf79"
      22                 : 
      23                 : #define NS_IHTTPAUTHENTICATOR_IID \
      24                 :   {0x16784db0, 0xfcb1, 0x4352, \
      25                 :     { 0xb0, 0xc9, 0x6a, 0x3a, 0x67, 0xe3, 0xcf, 0x79 }}
      26                 : 
      27               8 : class NS_NO_VTABLE NS_SCRIPTABLE nsIHttpAuthenticator : public nsISupports {
      28                 :  public: 
      29                 : 
      30                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IHTTPAUTHENTICATOR_IID)
      31                 : 
      32                 :   /* void challengeReceived (in nsIHttpAuthenticableChannel aChannel, in string aChallenge, in boolean aProxyAuth, inout nsISupports aSessionState, inout nsISupports aContinuationState, out boolean aInvalidatesIdentity); */
      33                 :   NS_SCRIPTABLE NS_IMETHOD ChallengeReceived(nsIHttpAuthenticableChannel *aChannel, const char * aChallenge, bool aProxyAuth, nsISupports * *aSessionState NS_INOUTPARAM, nsISupports * *aContinuationState NS_INOUTPARAM, bool *aInvalidatesIdentity NS_OUTPARAM) = 0;
      34                 : 
      35                 :   /* string generateCredentials (in nsIHttpAuthenticableChannel aChannel, in string aChallenge, in boolean aProxyAuth, in wstring aDomain, in wstring aUser, in wstring aPassword, inout nsISupports aSessionState, inout nsISupports aContinuationState, out unsigned long aFlags); */
      36                 :   NS_SCRIPTABLE NS_IMETHOD GenerateCredentials(nsIHttpAuthenticableChannel *aChannel, const char * aChallenge, bool aProxyAuth, const PRUnichar * aDomain, const PRUnichar * aUser, const PRUnichar * aPassword, nsISupports * *aSessionState NS_INOUTPARAM, nsISupports * *aContinuationState NS_INOUTPARAM, PRUint32 *aFlags NS_OUTPARAM, char * *_retval NS_OUTPARAM) = 0;
      37                 : 
      38                 :   enum {
      39                 :     USING_INTERNAL_IDENTITY = 1U
      40                 :   };
      41                 : 
      42                 :   /* readonly attribute unsigned long authFlags; */
      43                 :   NS_SCRIPTABLE NS_IMETHOD GetAuthFlags(PRUint32 *aAuthFlags) = 0;
      44                 : 
      45                 :   enum {
      46                 :     REQUEST_BASED = 1U,
      47                 :     CONNECTION_BASED = 2U,
      48                 :     REUSABLE_CREDENTIALS = 4U,
      49                 :     REUSABLE_CHALLENGE = 8U,
      50                 :     IDENTITY_IGNORED = 1024U,
      51                 :     IDENTITY_INCLUDES_DOMAIN = 2048U,
      52                 :     IDENTITY_ENCRYPTED = 4096U
      53                 :   };
      54                 : 
      55                 : };
      56                 : 
      57                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIHttpAuthenticator, NS_IHTTPAUTHENTICATOR_IID)
      58                 : 
      59                 : /* Use this macro when declaring classes that implement this interface. */
      60                 : #define NS_DECL_NSIHTTPAUTHENTICATOR \
      61                 :   NS_SCRIPTABLE NS_IMETHOD ChallengeReceived(nsIHttpAuthenticableChannel *aChannel, const char * aChallenge, bool aProxyAuth, nsISupports * *aSessionState NS_INOUTPARAM, nsISupports * *aContinuationState NS_INOUTPARAM, bool *aInvalidatesIdentity NS_OUTPARAM); \
      62                 :   NS_SCRIPTABLE NS_IMETHOD GenerateCredentials(nsIHttpAuthenticableChannel *aChannel, const char * aChallenge, bool aProxyAuth, const PRUnichar * aDomain, const PRUnichar * aUser, const PRUnichar * aPassword, nsISupports * *aSessionState NS_INOUTPARAM, nsISupports * *aContinuationState NS_INOUTPARAM, PRUint32 *aFlags NS_OUTPARAM, char * *_retval NS_OUTPARAM); \
      63                 :   NS_SCRIPTABLE NS_IMETHOD GetAuthFlags(PRUint32 *aAuthFlags); \
      64                 : 
      65                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      66                 : #define NS_FORWARD_NSIHTTPAUTHENTICATOR(_to) \
      67                 :   NS_SCRIPTABLE NS_IMETHOD ChallengeReceived(nsIHttpAuthenticableChannel *aChannel, const char * aChallenge, bool aProxyAuth, nsISupports * *aSessionState NS_INOUTPARAM, nsISupports * *aContinuationState NS_INOUTPARAM, bool *aInvalidatesIdentity NS_OUTPARAM) { return _to ChallengeReceived(aChannel, aChallenge, aProxyAuth, aSessionState, aContinuationState, aInvalidatesIdentity); } \
      68                 :   NS_SCRIPTABLE NS_IMETHOD GenerateCredentials(nsIHttpAuthenticableChannel *aChannel, const char * aChallenge, bool aProxyAuth, const PRUnichar * aDomain, const PRUnichar * aUser, const PRUnichar * aPassword, nsISupports * *aSessionState NS_INOUTPARAM, nsISupports * *aContinuationState NS_INOUTPARAM, PRUint32 *aFlags NS_OUTPARAM, char * *_retval NS_OUTPARAM) { return _to GenerateCredentials(aChannel, aChallenge, aProxyAuth, aDomain, aUser, aPassword, aSessionState, aContinuationState, aFlags, _retval); } \
      69                 :   NS_SCRIPTABLE NS_IMETHOD GetAuthFlags(PRUint32 *aAuthFlags) { return _to GetAuthFlags(aAuthFlags); } \
      70                 : 
      71                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      72                 : #define NS_FORWARD_SAFE_NSIHTTPAUTHENTICATOR(_to) \
      73                 :   NS_SCRIPTABLE NS_IMETHOD ChallengeReceived(nsIHttpAuthenticableChannel *aChannel, const char * aChallenge, bool aProxyAuth, nsISupports * *aSessionState NS_INOUTPARAM, nsISupports * *aContinuationState NS_INOUTPARAM, bool *aInvalidatesIdentity NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->ChallengeReceived(aChannel, aChallenge, aProxyAuth, aSessionState, aContinuationState, aInvalidatesIdentity); } \
      74                 :   NS_SCRIPTABLE NS_IMETHOD GenerateCredentials(nsIHttpAuthenticableChannel *aChannel, const char * aChallenge, bool aProxyAuth, const PRUnichar * aDomain, const PRUnichar * aUser, const PRUnichar * aPassword, nsISupports * *aSessionState NS_INOUTPARAM, nsISupports * *aContinuationState NS_INOUTPARAM, PRUint32 *aFlags NS_OUTPARAM, char * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GenerateCredentials(aChannel, aChallenge, aProxyAuth, aDomain, aUser, aPassword, aSessionState, aContinuationState, aFlags, _retval); } \
      75                 :   NS_SCRIPTABLE NS_IMETHOD GetAuthFlags(PRUint32 *aAuthFlags) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAuthFlags(aAuthFlags); } \
      76                 : 
      77                 : #if 0
      78                 : /* Use the code below as a template for the implementation class for this interface. */
      79                 : 
      80                 : /* Header file */
      81                 : class nsHttpAuthenticator : public nsIHttpAuthenticator
      82                 : {
      83                 : public:
      84                 :   NS_DECL_ISUPPORTS
      85                 :   NS_DECL_NSIHTTPAUTHENTICATOR
      86                 : 
      87                 :   nsHttpAuthenticator();
      88                 : 
      89                 : private:
      90                 :   ~nsHttpAuthenticator();
      91                 : 
      92                 : protected:
      93                 :   /* additional members */
      94                 : };
      95                 : 
      96                 : /* Implementation file */
      97                 : NS_IMPL_ISUPPORTS1(nsHttpAuthenticator, nsIHttpAuthenticator)
      98                 : 
      99                 : nsHttpAuthenticator::nsHttpAuthenticator()
     100                 : {
     101                 :   /* member initializers and constructor code */
     102                 : }
     103                 : 
     104                 : nsHttpAuthenticator::~nsHttpAuthenticator()
     105                 : {
     106                 :   /* destructor code */
     107                 : }
     108                 : 
     109                 : /* void challengeReceived (in nsIHttpAuthenticableChannel aChannel, in string aChallenge, in boolean aProxyAuth, inout nsISupports aSessionState, inout nsISupports aContinuationState, out boolean aInvalidatesIdentity); */
     110                 : NS_IMETHODIMP nsHttpAuthenticator::ChallengeReceived(nsIHttpAuthenticableChannel *aChannel, const char * aChallenge, bool aProxyAuth, nsISupports * *aSessionState NS_INOUTPARAM, nsISupports * *aContinuationState NS_INOUTPARAM, bool *aInvalidatesIdentity NS_OUTPARAM)
     111                 : {
     112                 :     return NS_ERROR_NOT_IMPLEMENTED;
     113                 : }
     114                 : 
     115                 : /* string generateCredentials (in nsIHttpAuthenticableChannel aChannel, in string aChallenge, in boolean aProxyAuth, in wstring aDomain, in wstring aUser, in wstring aPassword, inout nsISupports aSessionState, inout nsISupports aContinuationState, out unsigned long aFlags); */
     116                 : NS_IMETHODIMP nsHttpAuthenticator::GenerateCredentials(nsIHttpAuthenticableChannel *aChannel, const char * aChallenge, bool aProxyAuth, const PRUnichar * aDomain, const PRUnichar * aUser, const PRUnichar * aPassword, nsISupports * *aSessionState NS_INOUTPARAM, nsISupports * *aContinuationState NS_INOUTPARAM, PRUint32 *aFlags NS_OUTPARAM, char * *_retval NS_OUTPARAM)
     117                 : {
     118                 :     return NS_ERROR_NOT_IMPLEMENTED;
     119                 : }
     120                 : 
     121                 : /* readonly attribute unsigned long authFlags; */
     122                 : NS_IMETHODIMP nsHttpAuthenticator::GetAuthFlags(PRUint32 *aAuthFlags)
     123                 : {
     124                 :     return NS_ERROR_NOT_IMPLEMENTED;
     125                 : }
     126                 : 
     127                 : /* End of implementation class template. */
     128                 : #endif
     129                 : 
     130                 : #define NS_HTTP_AUTHENTICATOR_CONTRACTID_PREFIX \
     131                 :     "@mozilla.org/network/http-authenticator;1?scheme="
     132                 : 
     133                 : #endif /* __gen_nsIHttpAuthenticator_h__ */

Generated by: LCOV version 1.7