LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/dist/include - nsIHttpAuthenticator.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/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             : class nsIHttpAuthenticatorCallback; /* forward declaration */
      20             : 
      21             : class nsICancelable; /* forward declaration */
      22             : 
      23             : 
      24             : /* starting interface:    nsIHttpAuthenticator */
      25             : #define NS_IHTTPAUTHENTICATOR_IID_STR "fef7db8a-a4e2-49d1-9685-19ed7e309b7d"
      26             : 
      27             : #define NS_IHTTPAUTHENTICATOR_IID \
      28             :   {0xfef7db8a, 0xa4e2, 0x49d1, \
      29             :     { 0x96, 0x85, 0x19, 0xed, 0x7e, 0x30, 0x9b, 0x7d }}
      30             : 
      31           0 : class NS_NO_VTABLE nsIHttpAuthenticator : public nsISupports {
      32             :  public:
      33             : 
      34             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IHTTPAUTHENTICATOR_IID)
      35             : 
      36             :   /* [must_use] void challengeReceived (in nsIHttpAuthenticableChannel aChannel, in string aChallenge, in boolean aProxyAuth, inout nsISupports aSessionState, inout nsISupports aContinuationState, out boolean aInvalidatesIdentity); */
      37             :   MOZ_MUST_USE NS_IMETHOD ChallengeReceived(nsIHttpAuthenticableChannel *aChannel, const char * aChallenge, bool aProxyAuth, nsISupports * *aSessionState, nsISupports * *aContinuationState, bool *aInvalidatesIdentity) = 0;
      38             : 
      39             :   /* [must_use] void generateCredentialsAsync (in nsIHttpAuthenticableChannel aChannel, in nsIHttpAuthenticatorCallback aCallback, in string aChallenge, in boolean aProxyAuth, in wstring aDomain, in wstring aUser, in wstring aPassword, in nsISupports aSessionState, in nsISupports aContinuationState, out nsICancelable aCancel); */
      40             :   MOZ_MUST_USE NS_IMETHOD GenerateCredentialsAsync(nsIHttpAuthenticableChannel *aChannel, nsIHttpAuthenticatorCallback *aCallback, const char * aChallenge, bool aProxyAuth, const char16_t * aDomain, const char16_t * aUser, const char16_t * aPassword, nsISupports *aSessionState, nsISupports *aContinuationState, nsICancelable * *aCancel) = 0;
      41             : 
      42             :   /* [must_use] 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); */
      43             :   MOZ_MUST_USE NS_IMETHOD GenerateCredentials(nsIHttpAuthenticableChannel *aChannel, const char * aChallenge, bool aProxyAuth, const char16_t * aDomain, const char16_t * aUser, const char16_t * aPassword, nsISupports * *aSessionState, nsISupports * *aContinuationState, uint32_t *aFlags, char * *_retval) = 0;
      44             : 
      45             :   enum {
      46             :     USING_INTERNAL_IDENTITY = 1U
      47             :   };
      48             : 
      49             :   /* [must_use] readonly attribute unsigned long authFlags; */
      50             :   MOZ_MUST_USE NS_IMETHOD GetAuthFlags(uint32_t *aAuthFlags) = 0;
      51             : 
      52             :   enum {
      53             :     REQUEST_BASED = 1U,
      54             :     CONNECTION_BASED = 2U,
      55             :     REUSABLE_CREDENTIALS = 4U,
      56             :     REUSABLE_CHALLENGE = 8U,
      57             :     IDENTITY_IGNORED = 1024U,
      58             :     IDENTITY_INCLUDES_DOMAIN = 2048U,
      59             :     IDENTITY_ENCRYPTED = 4096U
      60             :   };
      61             : 
      62             : };
      63             : 
      64             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIHttpAuthenticator, NS_IHTTPAUTHENTICATOR_IID)
      65             : 
      66             : /* Use this macro when declaring classes that implement this interface. */
      67             : #define NS_DECL_NSIHTTPAUTHENTICATOR \
      68             :   MOZ_MUST_USE NS_IMETHOD ChallengeReceived(nsIHttpAuthenticableChannel *aChannel, const char * aChallenge, bool aProxyAuth, nsISupports * *aSessionState, nsISupports * *aContinuationState, bool *aInvalidatesIdentity) override; \
      69             :   MOZ_MUST_USE NS_IMETHOD GenerateCredentialsAsync(nsIHttpAuthenticableChannel *aChannel, nsIHttpAuthenticatorCallback *aCallback, const char * aChallenge, bool aProxyAuth, const char16_t * aDomain, const char16_t * aUser, const char16_t * aPassword, nsISupports *aSessionState, nsISupports *aContinuationState, nsICancelable * *aCancel) override; \
      70             :   MOZ_MUST_USE NS_IMETHOD GenerateCredentials(nsIHttpAuthenticableChannel *aChannel, const char * aChallenge, bool aProxyAuth, const char16_t * aDomain, const char16_t * aUser, const char16_t * aPassword, nsISupports * *aSessionState, nsISupports * *aContinuationState, uint32_t *aFlags, char * *_retval) override; \
      71             :   MOZ_MUST_USE NS_IMETHOD GetAuthFlags(uint32_t *aAuthFlags) override; \
      72             : 
      73             : /* Use this macro when declaring the members of this interface when the
      74             :    class doesn't implement the interface. This is useful for forwarding. */
      75             : #define NS_DECL_NON_VIRTUAL_NSIHTTPAUTHENTICATOR \
      76             :   MOZ_MUST_USE nsresult ChallengeReceived(nsIHttpAuthenticableChannel *aChannel, const char * aChallenge, bool aProxyAuth, nsISupports * *aSessionState, nsISupports * *aContinuationState, bool *aInvalidatesIdentity); \
      77             :   MOZ_MUST_USE nsresult GenerateCredentialsAsync(nsIHttpAuthenticableChannel *aChannel, nsIHttpAuthenticatorCallback *aCallback, const char * aChallenge, bool aProxyAuth, const char16_t * aDomain, const char16_t * aUser, const char16_t * aPassword, nsISupports *aSessionState, nsISupports *aContinuationState, nsICancelable * *aCancel); \
      78             :   MOZ_MUST_USE nsresult GenerateCredentials(nsIHttpAuthenticableChannel *aChannel, const char * aChallenge, bool aProxyAuth, const char16_t * aDomain, const char16_t * aUser, const char16_t * aPassword, nsISupports * *aSessionState, nsISupports * *aContinuationState, uint32_t *aFlags, char * *_retval); \
      79             :   MOZ_MUST_USE nsresult GetAuthFlags(uint32_t *aAuthFlags); \
      80             : 
      81             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      82             : #define NS_FORWARD_NSIHTTPAUTHENTICATOR(_to) \
      83             :   MOZ_MUST_USE NS_IMETHOD ChallengeReceived(nsIHttpAuthenticableChannel *aChannel, const char * aChallenge, bool aProxyAuth, nsISupports * *aSessionState, nsISupports * *aContinuationState, bool *aInvalidatesIdentity) override { return _to ChallengeReceived(aChannel, aChallenge, aProxyAuth, aSessionState, aContinuationState, aInvalidatesIdentity); } \
      84             :   MOZ_MUST_USE NS_IMETHOD GenerateCredentialsAsync(nsIHttpAuthenticableChannel *aChannel, nsIHttpAuthenticatorCallback *aCallback, const char * aChallenge, bool aProxyAuth, const char16_t * aDomain, const char16_t * aUser, const char16_t * aPassword, nsISupports *aSessionState, nsISupports *aContinuationState, nsICancelable * *aCancel) override { return _to GenerateCredentialsAsync(aChannel, aCallback, aChallenge, aProxyAuth, aDomain, aUser, aPassword, aSessionState, aContinuationState, aCancel); } \
      85             :   MOZ_MUST_USE NS_IMETHOD GenerateCredentials(nsIHttpAuthenticableChannel *aChannel, const char * aChallenge, bool aProxyAuth, const char16_t * aDomain, const char16_t * aUser, const char16_t * aPassword, nsISupports * *aSessionState, nsISupports * *aContinuationState, uint32_t *aFlags, char * *_retval) override { return _to GenerateCredentials(aChannel, aChallenge, aProxyAuth, aDomain, aUser, aPassword, aSessionState, aContinuationState, aFlags, _retval); } \
      86             :   MOZ_MUST_USE NS_IMETHOD GetAuthFlags(uint32_t *aAuthFlags) override { return _to GetAuthFlags(aAuthFlags); } \
      87             : 
      88             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      89             : #define NS_FORWARD_SAFE_NSIHTTPAUTHENTICATOR(_to) \
      90             :   MOZ_MUST_USE NS_IMETHOD ChallengeReceived(nsIHttpAuthenticableChannel *aChannel, const char * aChallenge, bool aProxyAuth, nsISupports * *aSessionState, nsISupports * *aContinuationState, bool *aInvalidatesIdentity) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ChallengeReceived(aChannel, aChallenge, aProxyAuth, aSessionState, aContinuationState, aInvalidatesIdentity); } \
      91             :   MOZ_MUST_USE NS_IMETHOD GenerateCredentialsAsync(nsIHttpAuthenticableChannel *aChannel, nsIHttpAuthenticatorCallback *aCallback, const char * aChallenge, bool aProxyAuth, const char16_t * aDomain, const char16_t * aUser, const char16_t * aPassword, nsISupports *aSessionState, nsISupports *aContinuationState, nsICancelable * *aCancel) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GenerateCredentialsAsync(aChannel, aCallback, aChallenge, aProxyAuth, aDomain, aUser, aPassword, aSessionState, aContinuationState, aCancel); } \
      92             :   MOZ_MUST_USE NS_IMETHOD GenerateCredentials(nsIHttpAuthenticableChannel *aChannel, const char * aChallenge, bool aProxyAuth, const char16_t * aDomain, const char16_t * aUser, const char16_t * aPassword, nsISupports * *aSessionState, nsISupports * *aContinuationState, uint32_t *aFlags, char * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GenerateCredentials(aChannel, aChallenge, aProxyAuth, aDomain, aUser, aPassword, aSessionState, aContinuationState, aFlags, _retval); } \
      93             :   MOZ_MUST_USE NS_IMETHOD GetAuthFlags(uint32_t *aAuthFlags) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAuthFlags(aAuthFlags); } \
      94             : 
      95             : #if 0
      96             : /* Use the code below as a template for the implementation class for this interface. */
      97             : 
      98             : /* Header file */
      99             : class nsHttpAuthenticator : public nsIHttpAuthenticator
     100             : {
     101             : public:
     102             :   NS_DECL_ISUPPORTS
     103             :   NS_DECL_NSIHTTPAUTHENTICATOR
     104             : 
     105             :   nsHttpAuthenticator();
     106             : 
     107             : private:
     108             :   ~nsHttpAuthenticator();
     109             : 
     110             : protected:
     111             :   /* additional members */
     112             : };
     113             : 
     114             : /* Implementation file */
     115             : NS_IMPL_ISUPPORTS(nsHttpAuthenticator, nsIHttpAuthenticator)
     116             : 
     117             : nsHttpAuthenticator::nsHttpAuthenticator()
     118             : {
     119             :   /* member initializers and constructor code */
     120             : }
     121             : 
     122             : nsHttpAuthenticator::~nsHttpAuthenticator()
     123             : {
     124             :   /* destructor code */
     125             : }
     126             : 
     127             : /* [must_use] void challengeReceived (in nsIHttpAuthenticableChannel aChannel, in string aChallenge, in boolean aProxyAuth, inout nsISupports aSessionState, inout nsISupports aContinuationState, out boolean aInvalidatesIdentity); */
     128             : MOZ_MUST_USE NS_IMETHODIMP nsHttpAuthenticator::ChallengeReceived(nsIHttpAuthenticableChannel *aChannel, const char * aChallenge, bool aProxyAuth, nsISupports * *aSessionState, nsISupports * *aContinuationState, bool *aInvalidatesIdentity)
     129             : {
     130             :     return NS_ERROR_NOT_IMPLEMENTED;
     131             : }
     132             : 
     133             : /* [must_use] void generateCredentialsAsync (in nsIHttpAuthenticableChannel aChannel, in nsIHttpAuthenticatorCallback aCallback, in string aChallenge, in boolean aProxyAuth, in wstring aDomain, in wstring aUser, in wstring aPassword, in nsISupports aSessionState, in nsISupports aContinuationState, out nsICancelable aCancel); */
     134             : MOZ_MUST_USE NS_IMETHODIMP nsHttpAuthenticator::GenerateCredentialsAsync(nsIHttpAuthenticableChannel *aChannel, nsIHttpAuthenticatorCallback *aCallback, const char * aChallenge, bool aProxyAuth, const char16_t * aDomain, const char16_t * aUser, const char16_t * aPassword, nsISupports *aSessionState, nsISupports *aContinuationState, nsICancelable * *aCancel)
     135             : {
     136             :     return NS_ERROR_NOT_IMPLEMENTED;
     137             : }
     138             : 
     139             : /* [must_use] 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); */
     140             : MOZ_MUST_USE NS_IMETHODIMP nsHttpAuthenticator::GenerateCredentials(nsIHttpAuthenticableChannel *aChannel, const char * aChallenge, bool aProxyAuth, const char16_t * aDomain, const char16_t * aUser, const char16_t * aPassword, nsISupports * *aSessionState, nsISupports * *aContinuationState, uint32_t *aFlags, char * *_retval)
     141             : {
     142             :     return NS_ERROR_NOT_IMPLEMENTED;
     143             : }
     144             : 
     145             : /* [must_use] readonly attribute unsigned long authFlags; */
     146             : MOZ_MUST_USE NS_IMETHODIMP nsHttpAuthenticator::GetAuthFlags(uint32_t *aAuthFlags)
     147             : {
     148             :     return NS_ERROR_NOT_IMPLEMENTED;
     149             : }
     150             : 
     151             : /* End of implementation class template. */
     152             : #endif
     153             : 
     154             : #define NS_HTTP_AUTHENTICATOR_CONTRACTID_PREFIX \
     155             :     "@mozilla.org/network/http-authenticator;1?scheme="
     156             : 
     157             : #endif /* __gen_nsIHttpAuthenticator_h__ */

Generated by: LCOV version 1.13