1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
|
/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIContentProcess.idl
*/
#ifndef __gen_nsIContentProcess_h__
#define __gen_nsIContentProcess_h__
#ifndef __gen_nsISupports_h__
#include "nsISupports.h"
#endif
/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
class nsIDOMElement; /* forward declaration */
class nsIMessageSender; /* forward declaration */
class nsIURI; /* forward declaration */
/* starting interface: nsIContentProcessInfo */
#define NS_ICONTENTPROCESSINFO_IID_STR "456f58be-29dd-4973-885b-95aece1c9a8a"
#define NS_ICONTENTPROCESSINFO_IID \
{0x456f58be, 0x29dd, 0x4973, \
{ 0x88, 0x5b, 0x95, 0xae, 0xce, 0x1c, 0x9a, 0x8a }}
class NS_NO_VTABLE nsIContentProcessInfo : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICONTENTPROCESSINFO_IID)
/* readonly attribute boolean isAlive; */
NS_IMETHOD GetIsAlive(bool *aIsAlive) = 0;
/* readonly attribute int32_t processId; */
NS_IMETHOD GetProcessId(int32_t *aProcessId) = 0;
/* readonly attribute nsIContentProcessInfo opener; */
NS_IMETHOD GetOpener(nsIContentProcessInfo * *aOpener) = 0;
/* readonly attribute int32_t tabCount; */
NS_IMETHOD GetTabCount(int32_t *aTabCount) = 0;
/* readonly attribute nsIMessageSender messageManager; */
NS_IMETHOD GetMessageManager(nsIMessageSender * *aMessageManager) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIContentProcessInfo, NS_ICONTENTPROCESSINFO_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSICONTENTPROCESSINFO \
NS_IMETHOD GetIsAlive(bool *aIsAlive) override; \
NS_IMETHOD GetProcessId(int32_t *aProcessId) override; \
NS_IMETHOD GetOpener(nsIContentProcessInfo * *aOpener) override; \
NS_IMETHOD GetTabCount(int32_t *aTabCount) override; \
NS_IMETHOD GetMessageManager(nsIMessageSender * *aMessageManager) override;
/* Use this macro when declaring the members of this interface when the
class doesn't implement the interface. This is useful for forwarding. */
#define NS_DECL_NON_VIRTUAL_NSICONTENTPROCESSINFO \
nsresult GetIsAlive(bool *aIsAlive); \
nsresult GetProcessId(int32_t *aProcessId); \
nsresult GetOpener(nsIContentProcessInfo * *aOpener); \
nsresult GetTabCount(int32_t *aTabCount); \
nsresult GetMessageManager(nsIMessageSender * *aMessageManager);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSICONTENTPROCESSINFO(_to) \
NS_IMETHOD GetIsAlive(bool *aIsAlive) override { return _to GetIsAlive(aIsAlive); } \
NS_IMETHOD GetProcessId(int32_t *aProcessId) override { return _to GetProcessId(aProcessId); } \
NS_IMETHOD GetOpener(nsIContentProcessInfo * *aOpener) override { return _to GetOpener(aOpener); } \
NS_IMETHOD GetTabCount(int32_t *aTabCount) override { return _to GetTabCount(aTabCount); } \
NS_IMETHOD GetMessageManager(nsIMessageSender * *aMessageManager) override { return _to GetMessageManager(aMessageManager); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSICONTENTPROCESSINFO(_to) \
NS_IMETHOD GetIsAlive(bool *aIsAlive) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsAlive(aIsAlive); } \
NS_IMETHOD GetProcessId(int32_t *aProcessId) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetProcessId(aProcessId); } \
NS_IMETHOD GetOpener(nsIContentProcessInfo * *aOpener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOpener(aOpener); } \
NS_IMETHOD GetTabCount(int32_t *aTabCount) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTabCount(aTabCount); } \
NS_IMETHOD GetMessageManager(nsIMessageSender * *aMessageManager) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMessageManager(aMessageManager); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsContentProcessInfo : public nsIContentProcessInfo
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSICONTENTPROCESSINFO
nsContentProcessInfo();
private:
~nsContentProcessInfo();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS(nsContentProcessInfo, nsIContentProcessInfo)
nsContentProcessInfo::nsContentProcessInfo()
{
/* member initializers and constructor code */
}
nsContentProcessInfo::~nsContentProcessInfo()
{
/* destructor code */
}
/* readonly attribute boolean isAlive; */
NS_IMETHODIMP nsContentProcessInfo::GetIsAlive(bool *aIsAlive)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute int32_t processId; */
NS_IMETHODIMP nsContentProcessInfo::GetProcessId(int32_t *aProcessId)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute nsIContentProcessInfo opener; */
NS_IMETHODIMP nsContentProcessInfo::GetOpener(nsIContentProcessInfo * *aOpener)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute int32_t tabCount; */
NS_IMETHODIMP nsContentProcessInfo::GetTabCount(int32_t *aTabCount)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute nsIMessageSender messageManager; */
NS_IMETHODIMP nsContentProcessInfo::GetMessageManager(nsIMessageSender * *aMessageManager)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
/* starting interface: nsIContentProcessProvider */
#define NS_ICONTENTPROCESSPROVIDER_IID_STR "83ffb063-5f65-4c45-ae07-3f553e0809bb"
#define NS_ICONTENTPROCESSPROVIDER_IID \
{0x83ffb063, 0x5f65, 0x4c45, \
{ 0xae, 0x07, 0x3f, 0x55, 0x3e, 0x08, 0x09, 0xbb }}
class NS_NO_VTABLE nsIContentProcessProvider : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICONTENTPROCESSPROVIDER_IID)
enum {
NEW_PROCESS = -1
};
/* int32_t provideProcess (in AString aType, in nsIContentProcessInfo aOpener, [array, size_is (aCount)] in nsIContentProcessInfo aAliveProcesses, in uint32_t aCount); */
NS_IMETHOD ProvideProcess(const nsAString & aType, nsIContentProcessInfo *aOpener, nsIContentProcessInfo **aAliveProcesses, uint32_t aCount, int32_t *_retval) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIContentProcessProvider, NS_ICONTENTPROCESSPROVIDER_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSICONTENTPROCESSPROVIDER \
NS_IMETHOD ProvideProcess(const nsAString & aType, nsIContentProcessInfo *aOpener, nsIContentProcessInfo **aAliveProcesses, uint32_t aCount, int32_t *_retval) override;
/* Use this macro when declaring the members of this interface when the
class doesn't implement the interface. This is useful for forwarding. */
#define NS_DECL_NON_VIRTUAL_NSICONTENTPROCESSPROVIDER \
nsresult ProvideProcess(const nsAString & aType, nsIContentProcessInfo *aOpener, nsIContentProcessInfo **aAliveProcesses, uint32_t aCount, int32_t *_retval);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSICONTENTPROCESSPROVIDER(_to) \
NS_IMETHOD ProvideProcess(const nsAString & aType, nsIContentProcessInfo *aOpener, nsIContentProcessInfo **aAliveProcesses, uint32_t aCount, int32_t *_retval) override { return _to ProvideProcess(aType, aOpener, aAliveProcesses, aCount, _retval); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSICONTENTPROCESSPROVIDER(_to) \
NS_IMETHOD ProvideProcess(const nsAString & aType, nsIContentProcessInfo *aOpener, nsIContentProcessInfo **aAliveProcesses, uint32_t aCount, int32_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ProvideProcess(aType, aOpener, aAliveProcesses, aCount, _retval); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsContentProcessProvider : public nsIContentProcessProvider
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSICONTENTPROCESSPROVIDER
nsContentProcessProvider();
private:
~nsContentProcessProvider();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS(nsContentProcessProvider, nsIContentProcessProvider)
nsContentProcessProvider::nsContentProcessProvider()
{
/* member initializers and constructor code */
}
nsContentProcessProvider::~nsContentProcessProvider()
{
/* destructor code */
}
/* int32_t provideProcess (in AString aType, in nsIContentProcessInfo aOpener, [array, size_is (aCount)] in nsIContentProcessInfo aAliveProcesses, in uint32_t aCount); */
NS_IMETHODIMP nsContentProcessProvider::ProvideProcess(const nsAString & aType, nsIContentProcessInfo *aOpener, nsIContentProcessInfo **aAliveProcesses, uint32_t aCount, int32_t *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
#endif /* __gen_nsIContentProcess_h__ */
|