1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/netwerk/base/public/mozIThirdPartyUtil.idl
3 : */
4 :
5 : #ifndef __gen_mozIThirdPartyUtil_h__
6 : #define __gen_mozIThirdPartyUtil_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 nsIURI; /* forward declaration */
18 :
19 : class nsIDOMWindow; /* forward declaration */
20 :
21 : class nsIChannel; /* forward declaration */
22 :
23 :
24 : /* starting interface: mozIThirdPartyUtil */
25 : #define MOZITHIRDPARTYUTIL_IID_STR "d994fd1d-d2fe-4372-9ae7-88b08b7d9d90"
26 :
27 : #define MOZITHIRDPARTYUTIL_IID \
28 : {0xd994fd1d, 0xd2fe, 0x4372, \
29 : { 0x9a, 0xe7, 0x88, 0xb0, 0x8b, 0x7d, 0x9d, 0x90 }}
30 :
31 4 : class NS_NO_VTABLE NS_SCRIPTABLE mozIThirdPartyUtil : public nsISupports {
32 : public:
33 :
34 : NS_DECLARE_STATIC_IID_ACCESSOR(MOZITHIRDPARTYUTIL_IID)
35 :
36 : /* boolean isThirdPartyURI (in nsIURI aFirstURI, in nsIURI aSecondURI); */
37 : NS_SCRIPTABLE NS_IMETHOD IsThirdPartyURI(nsIURI *aFirstURI, nsIURI *aSecondURI, bool *_retval NS_OUTPARAM) = 0;
38 :
39 : /* boolean isThirdPartyWindow (in nsIDOMWindow aWindow, [optional] in nsIURI aURI); */
40 : NS_SCRIPTABLE NS_IMETHOD IsThirdPartyWindow(nsIDOMWindow *aWindow, nsIURI *aURI, bool *_retval NS_OUTPARAM) = 0;
41 :
42 : /* boolean isThirdPartyChannel (in nsIChannel aChannel, [optional] in nsIURI aURI); */
43 : NS_SCRIPTABLE NS_IMETHOD IsThirdPartyChannel(nsIChannel *aChannel, nsIURI *aURI, bool *_retval NS_OUTPARAM) = 0;
44 :
45 : /* AUTF8String getBaseDomain (in nsIURI aHostURI); */
46 : NS_SCRIPTABLE NS_IMETHOD GetBaseDomain(nsIURI *aHostURI, nsACString & _retval NS_OUTPARAM) = 0;
47 :
48 : };
49 :
50 : NS_DEFINE_STATIC_IID_ACCESSOR(mozIThirdPartyUtil, MOZITHIRDPARTYUTIL_IID)
51 :
52 : /* Use this macro when declaring classes that implement this interface. */
53 : #define NS_DECL_MOZITHIRDPARTYUTIL \
54 : NS_SCRIPTABLE NS_IMETHOD IsThirdPartyURI(nsIURI *aFirstURI, nsIURI *aSecondURI, bool *_retval NS_OUTPARAM); \
55 : NS_SCRIPTABLE NS_IMETHOD IsThirdPartyWindow(nsIDOMWindow *aWindow, nsIURI *aURI, bool *_retval NS_OUTPARAM); \
56 : NS_SCRIPTABLE NS_IMETHOD IsThirdPartyChannel(nsIChannel *aChannel, nsIURI *aURI, bool *_retval NS_OUTPARAM); \
57 : NS_SCRIPTABLE NS_IMETHOD GetBaseDomain(nsIURI *aHostURI, nsACString & _retval NS_OUTPARAM);
58 :
59 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
60 : #define NS_FORWARD_MOZITHIRDPARTYUTIL(_to) \
61 : NS_SCRIPTABLE NS_IMETHOD IsThirdPartyURI(nsIURI *aFirstURI, nsIURI *aSecondURI, bool *_retval NS_OUTPARAM) { return _to IsThirdPartyURI(aFirstURI, aSecondURI, _retval); } \
62 : NS_SCRIPTABLE NS_IMETHOD IsThirdPartyWindow(nsIDOMWindow *aWindow, nsIURI *aURI, bool *_retval NS_OUTPARAM) { return _to IsThirdPartyWindow(aWindow, aURI, _retval); } \
63 : NS_SCRIPTABLE NS_IMETHOD IsThirdPartyChannel(nsIChannel *aChannel, nsIURI *aURI, bool *_retval NS_OUTPARAM) { return _to IsThirdPartyChannel(aChannel, aURI, _retval); } \
64 : NS_SCRIPTABLE NS_IMETHOD GetBaseDomain(nsIURI *aHostURI, nsACString & _retval NS_OUTPARAM) { return _to GetBaseDomain(aHostURI, _retval); }
65 :
66 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
67 : #define NS_FORWARD_SAFE_MOZITHIRDPARTYUTIL(_to) \
68 : NS_SCRIPTABLE NS_IMETHOD IsThirdPartyURI(nsIURI *aFirstURI, nsIURI *aSecondURI, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->IsThirdPartyURI(aFirstURI, aSecondURI, _retval); } \
69 : NS_SCRIPTABLE NS_IMETHOD IsThirdPartyWindow(nsIDOMWindow *aWindow, nsIURI *aURI, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->IsThirdPartyWindow(aWindow, aURI, _retval); } \
70 : NS_SCRIPTABLE NS_IMETHOD IsThirdPartyChannel(nsIChannel *aChannel, nsIURI *aURI, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->IsThirdPartyChannel(aChannel, aURI, _retval); } \
71 : NS_SCRIPTABLE NS_IMETHOD GetBaseDomain(nsIURI *aHostURI, nsACString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBaseDomain(aHostURI, _retval); }
72 :
73 : #if 0
74 : /* Use the code below as a template for the implementation class for this interface. */
75 :
76 : /* Header file */
77 : class _MYCLASS_ : public mozIThirdPartyUtil
78 : {
79 : public:
80 : NS_DECL_ISUPPORTS
81 : NS_DECL_MOZITHIRDPARTYUTIL
82 :
83 : _MYCLASS_();
84 :
85 : private:
86 : ~_MYCLASS_();
87 :
88 : protected:
89 : /* additional members */
90 : };
91 :
92 : /* Implementation file */
93 : NS_IMPL_ISUPPORTS1(_MYCLASS_, mozIThirdPartyUtil)
94 :
95 : _MYCLASS_::_MYCLASS_()
96 : {
97 : /* member initializers and constructor code */
98 : }
99 :
100 : _MYCLASS_::~_MYCLASS_()
101 : {
102 : /* destructor code */
103 : }
104 :
105 : /* boolean isThirdPartyURI (in nsIURI aFirstURI, in nsIURI aSecondURI); */
106 : NS_IMETHODIMP _MYCLASS_::IsThirdPartyURI(nsIURI *aFirstURI, nsIURI *aSecondURI, bool *_retval NS_OUTPARAM)
107 : {
108 : return NS_ERROR_NOT_IMPLEMENTED;
109 : }
110 :
111 : /* boolean isThirdPartyWindow (in nsIDOMWindow aWindow, [optional] in nsIURI aURI); */
112 : NS_IMETHODIMP _MYCLASS_::IsThirdPartyWindow(nsIDOMWindow *aWindow, nsIURI *aURI, bool *_retval NS_OUTPARAM)
113 : {
114 : return NS_ERROR_NOT_IMPLEMENTED;
115 : }
116 :
117 : /* boolean isThirdPartyChannel (in nsIChannel aChannel, [optional] in nsIURI aURI); */
118 : NS_IMETHODIMP _MYCLASS_::IsThirdPartyChannel(nsIChannel *aChannel, nsIURI *aURI, bool *_retval NS_OUTPARAM)
119 : {
120 : return NS_ERROR_NOT_IMPLEMENTED;
121 : }
122 :
123 : /* AUTF8String getBaseDomain (in nsIURI aHostURI); */
124 : NS_IMETHODIMP _MYCLASS_::GetBaseDomain(nsIURI *aHostURI, nsACString & _retval NS_OUTPARAM)
125 : {
126 : return NS_ERROR_NOT_IMPLEMENTED;
127 : }
128 :
129 : /* End of implementation class template. */
130 : #endif
131 :
132 : /**
133 : * The mozIThirdPartyUtil implementation is an XPCOM service registered
134 : * under the ContractID:
135 : */
136 : #define THIRDPARTYUTIL_CONTRACTID "@mozilla.org/thirdpartyutil;1"
137 :
138 : #endif /* __gen_mozIThirdPartyUtil_h__ */
|