Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIHttpAuthManager.idl
3 : */
4 :
5 : #ifndef __gen_nsIHttpAuthManager_h__
6 : #define __gen_nsIHttpAuthManager_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 nsIPrincipal; /* forward declaration */
18 :
19 :
20 : /* starting interface: nsIHttpAuthManager */
21 : #define NS_IHTTPAUTHMANAGER_IID_STR "54f90444-c52b-4d2d-8916-c59a2bb25938"
22 :
23 : #define NS_IHTTPAUTHMANAGER_IID \
24 : {0x54f90444, 0xc52b, 0x4d2d, \
25 : { 0x89, 0x16, 0xc5, 0x9a, 0x2b, 0xb2, 0x59, 0x38 }}
26 :
27 0 : class NS_NO_VTABLE nsIHttpAuthManager : public nsISupports {
28 : public:
29 :
30 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IHTTPAUTHMANAGER_IID)
31 :
32 : /* [must_use] void getAuthIdentity (in ACString aScheme, in ACString aHost, in int32_t aPort, in ACString aAuthType, in ACString aRealm, in ACString aPath, out AString aUserDomain, out AString aUserName, out AString aUserPassword, [optional] in bool aIsPrivate, [optional] in nsIPrincipal aPrincipal); */
33 : MOZ_MUST_USE NS_IMETHOD GetAuthIdentity(const nsACString & aScheme, const nsACString & aHost, int32_t aPort, const nsACString & aAuthType, const nsACString & aRealm, const nsACString & aPath, nsAString & aUserDomain, nsAString & aUserName, nsAString & aUserPassword, bool aIsPrivate, nsIPrincipal *aPrincipal) = 0;
34 :
35 : /* [must_use] void setAuthIdentity (in ACString aScheme, in ACString aHost, in int32_t aPort, in ACString aAuthType, in ACString aRealm, in ACString aPath, in AString aUserDomain, in AString aUserName, in AString aUserPassword, [optional] in boolean aIsPrivate, [optional] in nsIPrincipal aPrincipal); */
36 : MOZ_MUST_USE NS_IMETHOD SetAuthIdentity(const nsACString & aScheme, const nsACString & aHost, int32_t aPort, const nsACString & aAuthType, const nsACString & aRealm, const nsACString & aPath, const nsAString & aUserDomain, const nsAString & aUserName, const nsAString & aUserPassword, bool aIsPrivate, nsIPrincipal *aPrincipal) = 0;
37 :
38 : /* [must_use] void clearAll (); */
39 : MOZ_MUST_USE NS_IMETHOD ClearAll(void) = 0;
40 :
41 : };
42 :
43 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIHttpAuthManager, NS_IHTTPAUTHMANAGER_IID)
44 :
45 : /* Use this macro when declaring classes that implement this interface. */
46 : #define NS_DECL_NSIHTTPAUTHMANAGER \
47 : MOZ_MUST_USE NS_IMETHOD GetAuthIdentity(const nsACString & aScheme, const nsACString & aHost, int32_t aPort, const nsACString & aAuthType, const nsACString & aRealm, const nsACString & aPath, nsAString & aUserDomain, nsAString & aUserName, nsAString & aUserPassword, bool aIsPrivate, nsIPrincipal *aPrincipal) override; \
48 : MOZ_MUST_USE NS_IMETHOD SetAuthIdentity(const nsACString & aScheme, const nsACString & aHost, int32_t aPort, const nsACString & aAuthType, const nsACString & aRealm, const nsACString & aPath, const nsAString & aUserDomain, const nsAString & aUserName, const nsAString & aUserPassword, bool aIsPrivate, nsIPrincipal *aPrincipal) override; \
49 : MOZ_MUST_USE NS_IMETHOD ClearAll(void) override;
50 :
51 : /* Use this macro when declaring the members of this interface when the
52 : class doesn't implement the interface. This is useful for forwarding. */
53 : #define NS_DECL_NON_VIRTUAL_NSIHTTPAUTHMANAGER \
54 : MOZ_MUST_USE nsresult GetAuthIdentity(const nsACString & aScheme, const nsACString & aHost, int32_t aPort, const nsACString & aAuthType, const nsACString & aRealm, const nsACString & aPath, nsAString & aUserDomain, nsAString & aUserName, nsAString & aUserPassword, bool aIsPrivate, nsIPrincipal *aPrincipal); \
55 : MOZ_MUST_USE nsresult SetAuthIdentity(const nsACString & aScheme, const nsACString & aHost, int32_t aPort, const nsACString & aAuthType, const nsACString & aRealm, const nsACString & aPath, const nsAString & aUserDomain, const nsAString & aUserName, const nsAString & aUserPassword, bool aIsPrivate, nsIPrincipal *aPrincipal); \
56 : MOZ_MUST_USE nsresult ClearAll(void);
57 :
58 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
59 : #define NS_FORWARD_NSIHTTPAUTHMANAGER(_to) \
60 : MOZ_MUST_USE NS_IMETHOD GetAuthIdentity(const nsACString & aScheme, const nsACString & aHost, int32_t aPort, const nsACString & aAuthType, const nsACString & aRealm, const nsACString & aPath, nsAString & aUserDomain, nsAString & aUserName, nsAString & aUserPassword, bool aIsPrivate, nsIPrincipal *aPrincipal) override { return _to GetAuthIdentity(aScheme, aHost, aPort, aAuthType, aRealm, aPath, aUserDomain, aUserName, aUserPassword, aIsPrivate, aPrincipal); } \
61 : MOZ_MUST_USE NS_IMETHOD SetAuthIdentity(const nsACString & aScheme, const nsACString & aHost, int32_t aPort, const nsACString & aAuthType, const nsACString & aRealm, const nsACString & aPath, const nsAString & aUserDomain, const nsAString & aUserName, const nsAString & aUserPassword, bool aIsPrivate, nsIPrincipal *aPrincipal) override { return _to SetAuthIdentity(aScheme, aHost, aPort, aAuthType, aRealm, aPath, aUserDomain, aUserName, aUserPassword, aIsPrivate, aPrincipal); } \
62 : MOZ_MUST_USE NS_IMETHOD ClearAll(void) override { return _to ClearAll(); }
63 :
64 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
65 : #define NS_FORWARD_SAFE_NSIHTTPAUTHMANAGER(_to) \
66 : MOZ_MUST_USE NS_IMETHOD GetAuthIdentity(const nsACString & aScheme, const nsACString & aHost, int32_t aPort, const nsACString & aAuthType, const nsACString & aRealm, const nsACString & aPath, nsAString & aUserDomain, nsAString & aUserName, nsAString & aUserPassword, bool aIsPrivate, nsIPrincipal *aPrincipal) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAuthIdentity(aScheme, aHost, aPort, aAuthType, aRealm, aPath, aUserDomain, aUserName, aUserPassword, aIsPrivate, aPrincipal); } \
67 : MOZ_MUST_USE NS_IMETHOD SetAuthIdentity(const nsACString & aScheme, const nsACString & aHost, int32_t aPort, const nsACString & aAuthType, const nsACString & aRealm, const nsACString & aPath, const nsAString & aUserDomain, const nsAString & aUserName, const nsAString & aUserPassword, bool aIsPrivate, nsIPrincipal *aPrincipal) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAuthIdentity(aScheme, aHost, aPort, aAuthType, aRealm, aPath, aUserDomain, aUserName, aUserPassword, aIsPrivate, aPrincipal); } \
68 : MOZ_MUST_USE NS_IMETHOD ClearAll(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ClearAll(); }
69 :
70 : #if 0
71 : /* Use the code below as a template for the implementation class for this interface. */
72 :
73 : /* Header file */
74 : class nsHttpAuthManager : public nsIHttpAuthManager
75 : {
76 : public:
77 : NS_DECL_ISUPPORTS
78 : NS_DECL_NSIHTTPAUTHMANAGER
79 :
80 : nsHttpAuthManager();
81 :
82 : private:
83 : ~nsHttpAuthManager();
84 :
85 : protected:
86 : /* additional members */
87 : };
88 :
89 : /* Implementation file */
90 : NS_IMPL_ISUPPORTS(nsHttpAuthManager, nsIHttpAuthManager)
91 :
92 : nsHttpAuthManager::nsHttpAuthManager()
93 : {
94 : /* member initializers and constructor code */
95 : }
96 :
97 : nsHttpAuthManager::~nsHttpAuthManager()
98 : {
99 : /* destructor code */
100 : }
101 :
102 : /* [must_use] void getAuthIdentity (in ACString aScheme, in ACString aHost, in int32_t aPort, in ACString aAuthType, in ACString aRealm, in ACString aPath, out AString aUserDomain, out AString aUserName, out AString aUserPassword, [optional] in bool aIsPrivate, [optional] in nsIPrincipal aPrincipal); */
103 : MOZ_MUST_USE NS_IMETHODIMP nsHttpAuthManager::GetAuthIdentity(const nsACString & aScheme, const nsACString & aHost, int32_t aPort, const nsACString & aAuthType, const nsACString & aRealm, const nsACString & aPath, nsAString & aUserDomain, nsAString & aUserName, nsAString & aUserPassword, bool aIsPrivate, nsIPrincipal *aPrincipal)
104 : {
105 : return NS_ERROR_NOT_IMPLEMENTED;
106 : }
107 :
108 : /* [must_use] void setAuthIdentity (in ACString aScheme, in ACString aHost, in int32_t aPort, in ACString aAuthType, in ACString aRealm, in ACString aPath, in AString aUserDomain, in AString aUserName, in AString aUserPassword, [optional] in boolean aIsPrivate, [optional] in nsIPrincipal aPrincipal); */
109 : MOZ_MUST_USE NS_IMETHODIMP nsHttpAuthManager::SetAuthIdentity(const nsACString & aScheme, const nsACString & aHost, int32_t aPort, const nsACString & aAuthType, const nsACString & aRealm, const nsACString & aPath, const nsAString & aUserDomain, const nsAString & aUserName, const nsAString & aUserPassword, bool aIsPrivate, nsIPrincipal *aPrincipal)
110 : {
111 : return NS_ERROR_NOT_IMPLEMENTED;
112 : }
113 :
114 : /* [must_use] void clearAll (); */
115 : MOZ_MUST_USE NS_IMETHODIMP nsHttpAuthManager::ClearAll()
116 : {
117 : return NS_ERROR_NOT_IMPLEMENTED;
118 : }
119 :
120 : /* End of implementation class template. */
121 : #endif
122 :
123 :
124 : #endif /* __gen_nsIHttpAuthManager_h__ */
|