1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/netwerk/base/public/nsIURIWithPrincipal.idl
3 : */
4 :
5 : #ifndef __gen_nsIURIWithPrincipal_h__
6 : #define __gen_nsIURIWithPrincipal_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 : class nsIURI; /* forward declaration */
20 :
21 :
22 : /* starting interface: nsIURIWithPrincipal */
23 : #define NS_IURIWITHPRINCIPAL_IID_STR "626a5c0c-bfd8-4531-8b47-a8451b0daa33"
24 :
25 : #define NS_IURIWITHPRINCIPAL_IID \
26 : {0x626a5c0c, 0xbfd8, 0x4531, \
27 : { 0x8b, 0x47, 0xa8, 0x45, 0x1b, 0x0d, 0xaa, 0x33 }}
28 :
29 27 : class NS_NO_VTABLE NS_SCRIPTABLE nsIURIWithPrincipal : public nsISupports {
30 : public:
31 :
32 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IURIWITHPRINCIPAL_IID)
33 :
34 : /* readonly attribute nsIPrincipal principal; */
35 : NS_SCRIPTABLE NS_IMETHOD GetPrincipal(nsIPrincipal * *aPrincipal) = 0;
36 :
37 : /* readonly attribute nsIURI principalUri; */
38 : NS_SCRIPTABLE NS_IMETHOD GetPrincipalUri(nsIURI * *aPrincipalUri) = 0;
39 :
40 : };
41 :
42 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIURIWithPrincipal, NS_IURIWITHPRINCIPAL_IID)
43 :
44 : /* Use this macro when declaring classes that implement this interface. */
45 : #define NS_DECL_NSIURIWITHPRINCIPAL \
46 : NS_SCRIPTABLE NS_IMETHOD GetPrincipal(nsIPrincipal * *aPrincipal); \
47 : NS_SCRIPTABLE NS_IMETHOD GetPrincipalUri(nsIURI * *aPrincipalUri);
48 :
49 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
50 : #define NS_FORWARD_NSIURIWITHPRINCIPAL(_to) \
51 : NS_SCRIPTABLE NS_IMETHOD GetPrincipal(nsIPrincipal * *aPrincipal) { return _to GetPrincipal(aPrincipal); } \
52 : NS_SCRIPTABLE NS_IMETHOD GetPrincipalUri(nsIURI * *aPrincipalUri) { return _to GetPrincipalUri(aPrincipalUri); }
53 :
54 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
55 : #define NS_FORWARD_SAFE_NSIURIWITHPRINCIPAL(_to) \
56 : NS_SCRIPTABLE NS_IMETHOD GetPrincipal(nsIPrincipal * *aPrincipal) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPrincipal(aPrincipal); } \
57 : NS_SCRIPTABLE NS_IMETHOD GetPrincipalUri(nsIURI * *aPrincipalUri) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPrincipalUri(aPrincipalUri); }
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 nsURIWithPrincipal : public nsIURIWithPrincipal
64 : {
65 : public:
66 : NS_DECL_ISUPPORTS
67 : NS_DECL_NSIURIWITHPRINCIPAL
68 :
69 : nsURIWithPrincipal();
70 :
71 : private:
72 : ~nsURIWithPrincipal();
73 :
74 : protected:
75 : /* additional members */
76 : };
77 :
78 : /* Implementation file */
79 : NS_IMPL_ISUPPORTS1(nsURIWithPrincipal, nsIURIWithPrincipal)
80 :
81 : nsURIWithPrincipal::nsURIWithPrincipal()
82 : {
83 : /* member initializers and constructor code */
84 : }
85 :
86 : nsURIWithPrincipal::~nsURIWithPrincipal()
87 : {
88 : /* destructor code */
89 : }
90 :
91 : /* readonly attribute nsIPrincipal principal; */
92 : NS_IMETHODIMP nsURIWithPrincipal::GetPrincipal(nsIPrincipal * *aPrincipal)
93 : {
94 : return NS_ERROR_NOT_IMPLEMENTED;
95 : }
96 :
97 : /* readonly attribute nsIURI principalUri; */
98 : NS_IMETHODIMP nsURIWithPrincipal::GetPrincipalUri(nsIURI * *aPrincipalUri)
99 : {
100 : return NS_ERROR_NOT_IMPLEMENTED;
101 : }
102 :
103 : /* End of implementation class template. */
104 : #endif
105 :
106 :
107 : #endif /* __gen_nsIURIWithPrincipal_h__ */
|