1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/netwerk/base/public/nsIRedirectChannelRegistrar.idl
3 : */
4 :
5 : #ifndef __gen_nsIRedirectChannelRegistrar_h__
6 : #define __gen_nsIRedirectChannelRegistrar_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 nsIChannel; /* forward declaration */
18 :
19 : class nsIParentChannel; /* forward declaration */
20 :
21 :
22 : /* starting interface: nsIRedirectChannelRegistrar */
23 : #define NS_IREDIRECTCHANNELREGISTRAR_IID_STR "efa36ea2-5b07-46fc-9534-a5acb8b77b72"
24 :
25 : #define NS_IREDIRECTCHANNELREGISTRAR_IID \
26 : {0xefa36ea2, 0x5b07, 0x46fc, \
27 : { 0x95, 0x34, 0xa5, 0xac, 0xb8, 0xb7, 0x7b, 0x72 }}
28 :
29 0 : class NS_NO_VTABLE NS_SCRIPTABLE nsIRedirectChannelRegistrar : public nsISupports {
30 : public:
31 :
32 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IREDIRECTCHANNELREGISTRAR_IID)
33 :
34 : /* PRUint32 registerChannel (in nsIChannel channel); */
35 : NS_SCRIPTABLE NS_IMETHOD RegisterChannel(nsIChannel *channel, PRUint32 *_retval NS_OUTPARAM) = 0;
36 :
37 : /* nsIChannel linkChannels (in PRUint32 id, in nsIParentChannel channel); */
38 : NS_SCRIPTABLE NS_IMETHOD LinkChannels(PRUint32 id, nsIParentChannel *channel, nsIChannel * *_retval NS_OUTPARAM) = 0;
39 :
40 : /* nsIChannel getRegisteredChannel (in PRUint32 id); */
41 : NS_SCRIPTABLE NS_IMETHOD GetRegisteredChannel(PRUint32 id, nsIChannel * *_retval NS_OUTPARAM) = 0;
42 :
43 : /* nsIParentChannel getParentChannel (in PRUint32 id); */
44 : NS_SCRIPTABLE NS_IMETHOD GetParentChannel(PRUint32 id, nsIParentChannel * *_retval NS_OUTPARAM) = 0;
45 :
46 : /* void deregisterChannels (in PRUint32 id); */
47 : NS_SCRIPTABLE NS_IMETHOD DeregisterChannels(PRUint32 id) = 0;
48 :
49 : };
50 :
51 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIRedirectChannelRegistrar, NS_IREDIRECTCHANNELREGISTRAR_IID)
52 :
53 : /* Use this macro when declaring classes that implement this interface. */
54 : #define NS_DECL_NSIREDIRECTCHANNELREGISTRAR \
55 : NS_SCRIPTABLE NS_IMETHOD RegisterChannel(nsIChannel *channel, PRUint32 *_retval NS_OUTPARAM); \
56 : NS_SCRIPTABLE NS_IMETHOD LinkChannels(PRUint32 id, nsIParentChannel *channel, nsIChannel * *_retval NS_OUTPARAM); \
57 : NS_SCRIPTABLE NS_IMETHOD GetRegisteredChannel(PRUint32 id, nsIChannel * *_retval NS_OUTPARAM); \
58 : NS_SCRIPTABLE NS_IMETHOD GetParentChannel(PRUint32 id, nsIParentChannel * *_retval NS_OUTPARAM); \
59 : NS_SCRIPTABLE NS_IMETHOD DeregisterChannels(PRUint32 id);
60 :
61 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
62 : #define NS_FORWARD_NSIREDIRECTCHANNELREGISTRAR(_to) \
63 : NS_SCRIPTABLE NS_IMETHOD RegisterChannel(nsIChannel *channel, PRUint32 *_retval NS_OUTPARAM) { return _to RegisterChannel(channel, _retval); } \
64 : NS_SCRIPTABLE NS_IMETHOD LinkChannels(PRUint32 id, nsIParentChannel *channel, nsIChannel * *_retval NS_OUTPARAM) { return _to LinkChannels(id, channel, _retval); } \
65 : NS_SCRIPTABLE NS_IMETHOD GetRegisteredChannel(PRUint32 id, nsIChannel * *_retval NS_OUTPARAM) { return _to GetRegisteredChannel(id, _retval); } \
66 : NS_SCRIPTABLE NS_IMETHOD GetParentChannel(PRUint32 id, nsIParentChannel * *_retval NS_OUTPARAM) { return _to GetParentChannel(id, _retval); } \
67 : NS_SCRIPTABLE NS_IMETHOD DeregisterChannels(PRUint32 id) { return _to DeregisterChannels(id); }
68 :
69 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
70 : #define NS_FORWARD_SAFE_NSIREDIRECTCHANNELREGISTRAR(_to) \
71 : NS_SCRIPTABLE NS_IMETHOD RegisterChannel(nsIChannel *channel, PRUint32 *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->RegisterChannel(channel, _retval); } \
72 : NS_SCRIPTABLE NS_IMETHOD LinkChannels(PRUint32 id, nsIParentChannel *channel, nsIChannel * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->LinkChannels(id, channel, _retval); } \
73 : NS_SCRIPTABLE NS_IMETHOD GetRegisteredChannel(PRUint32 id, nsIChannel * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRegisteredChannel(id, _retval); } \
74 : NS_SCRIPTABLE NS_IMETHOD GetParentChannel(PRUint32 id, nsIParentChannel * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetParentChannel(id, _retval); } \
75 : NS_SCRIPTABLE NS_IMETHOD DeregisterChannels(PRUint32 id) { return !_to ? NS_ERROR_NULL_POINTER : _to->DeregisterChannels(id); }
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 nsRedirectChannelRegistrar : public nsIRedirectChannelRegistrar
82 : {
83 : public:
84 : NS_DECL_ISUPPORTS
85 : NS_DECL_NSIREDIRECTCHANNELREGISTRAR
86 :
87 : nsRedirectChannelRegistrar();
88 :
89 : private:
90 : ~nsRedirectChannelRegistrar();
91 :
92 : protected:
93 : /* additional members */
94 : };
95 :
96 : /* Implementation file */
97 : NS_IMPL_ISUPPORTS1(nsRedirectChannelRegistrar, nsIRedirectChannelRegistrar)
98 :
99 : nsRedirectChannelRegistrar::nsRedirectChannelRegistrar()
100 : {
101 : /* member initializers and constructor code */
102 : }
103 :
104 : nsRedirectChannelRegistrar::~nsRedirectChannelRegistrar()
105 : {
106 : /* destructor code */
107 : }
108 :
109 : /* PRUint32 registerChannel (in nsIChannel channel); */
110 : NS_IMETHODIMP nsRedirectChannelRegistrar::RegisterChannel(nsIChannel *channel, PRUint32 *_retval NS_OUTPARAM)
111 : {
112 : return NS_ERROR_NOT_IMPLEMENTED;
113 : }
114 :
115 : /* nsIChannel linkChannels (in PRUint32 id, in nsIParentChannel channel); */
116 : NS_IMETHODIMP nsRedirectChannelRegistrar::LinkChannels(PRUint32 id, nsIParentChannel *channel, nsIChannel * *_retval NS_OUTPARAM)
117 : {
118 : return NS_ERROR_NOT_IMPLEMENTED;
119 : }
120 :
121 : /* nsIChannel getRegisteredChannel (in PRUint32 id); */
122 : NS_IMETHODIMP nsRedirectChannelRegistrar::GetRegisteredChannel(PRUint32 id, nsIChannel * *_retval NS_OUTPARAM)
123 : {
124 : return NS_ERROR_NOT_IMPLEMENTED;
125 : }
126 :
127 : /* nsIParentChannel getParentChannel (in PRUint32 id); */
128 : NS_IMETHODIMP nsRedirectChannelRegistrar::GetParentChannel(PRUint32 id, nsIParentChannel * *_retval NS_OUTPARAM)
129 : {
130 : return NS_ERROR_NOT_IMPLEMENTED;
131 : }
132 :
133 : /* void deregisterChannels (in PRUint32 id); */
134 : NS_IMETHODIMP nsRedirectChannelRegistrar::DeregisterChannels(PRUint32 id)
135 : {
136 : return NS_ERROR_NOT_IMPLEMENTED;
137 : }
138 :
139 : /* End of implementation class template. */
140 : #endif
141 :
142 :
143 : #endif /* __gen_nsIRedirectChannelRegistrar_h__ */
|