1 : //
2 : // Automatically generated by ipdlc.
3 : // Edit at your own risk
4 : //
5 :
6 : #ifndef PTestShell_h
7 : #define PTestShell_h
8 :
9 : #include "mozilla/Attributes.h"
10 : #include "base/basictypes.h"
11 : #include "prtime.h"
12 : #include "nscore.h"
13 : #include "IPCMessageStart.h"
14 : #include "IPC/IPCMessageUtils.h"
15 : #include "nsAutoPtr.h"
16 : #include "nsStringGlue.h"
17 : #include "nsTArray.h"
18 : #include "nsIFile.h"
19 : #include "mozilla/ipc/ProtocolUtils.h"
20 :
21 : //-----------------------------------------------------------------------------
22 : // Code common to PTestShellChild and PTestShellParent
23 : //
24 : namespace mozilla {
25 : namespace ipc {
26 : namespace PTestShell {
27 :
28 : enum State {
29 : __Dead,
30 : __Null,
31 : __Error,
32 : __Start = __Null
33 : };
34 :
35 : enum MessageType {
36 : PTestShellStart = PTestShellMsgStart << 16,
37 : PTestShellPreStart = (PTestShellMsgStart << 16) - 1,
38 : Msg___delete____ID,
39 : Reply___delete____ID,
40 : Msg_ExecuteCommand__ID,
41 : Msg_PTestShellCommandConstructor__ID,
42 : Reply_PTestShellCommandConstructor__ID,
43 : Msg_PContextWrapperConstructor__ID,
44 : Reply_PContextWrapperConstructor__ID,
45 : PTestShellEnd
46 : };
47 :
48 : bool
49 : Transition(
50 : State from,
51 : mozilla::ipc::Trigger trigger,
52 : State* next);
53 :
54 : class Msg___delete__ :
55 : public IPC::Message
56 0 : {
57 : private:
58 : typedef mozilla::ipc::ActorHandle ActorHandle;
59 : typedef mozilla::ipc::Shmem Shmem;
60 :
61 : public:
62 : enum {
63 : ID = Msg___delete____ID
64 : };
65 0 : Msg___delete__() :
66 0 : IPC::Message(MSG_ROUTING_NONE, ID, PRIORITY_NORMAL, "PTestShell::Msg___delete__")
67 : {
68 0 : }
69 :
70 : void
71 0 : Log(
72 : const std::string& __pfx,
73 : FILE* __outf) const
74 : {
75 0 : std::string __logmsg;
76 0 : StringAppendF((&(__logmsg)), "[time:%" PRId64 "]", PR_Now());
77 0 : (__logmsg).append(__pfx);
78 0 : (__logmsg).append("Msg___delete__(");
79 :
80 0 : (__logmsg).append("[TODO])\n");
81 0 : fputs((__logmsg).c_str(), __outf);
82 0 : }
83 : };
84 :
85 : class Reply___delete__ :
86 : public IPC::Message
87 : {
88 : private:
89 : typedef mozilla::ipc::ActorHandle ActorHandle;
90 : typedef mozilla::ipc::Shmem Shmem;
91 :
92 : public:
93 : enum {
94 : ID = Reply___delete____ID
95 : };
96 : Reply___delete__() :
97 : IPC::Message(MSG_ROUTING_NONE, ID, PRIORITY_NORMAL, "PTestShell::Reply___delete__")
98 : {
99 : }
100 :
101 : void
102 : Log(
103 : const std::string& __pfx,
104 : FILE* __outf) const
105 : {
106 : std::string __logmsg;
107 : StringAppendF((&(__logmsg)), "[time:%" PRId64 "]", PR_Now());
108 : (__logmsg).append(__pfx);
109 : (__logmsg).append("Reply___delete__(");
110 :
111 : (__logmsg).append("[TODO])\n");
112 : fputs((__logmsg).c_str(), __outf);
113 : }
114 : };
115 :
116 : class Msg_ExecuteCommand :
117 : public IPC::Message
118 0 : {
119 : private:
120 : typedef mozilla::ipc::ActorHandle ActorHandle;
121 : typedef mozilla::ipc::Shmem Shmem;
122 :
123 : public:
124 : enum {
125 : ID = Msg_ExecuteCommand__ID
126 : };
127 0 : Msg_ExecuteCommand() :
128 0 : IPC::Message(MSG_ROUTING_NONE, ID, PRIORITY_NORMAL, "PTestShell::Msg_ExecuteCommand")
129 : {
130 0 : }
131 :
132 : void
133 0 : Log(
134 : const std::string& __pfx,
135 : FILE* __outf) const
136 : {
137 0 : std::string __logmsg;
138 0 : StringAppendF((&(__logmsg)), "[time:%" PRId64 "]", PR_Now());
139 0 : (__logmsg).append(__pfx);
140 0 : (__logmsg).append("Msg_ExecuteCommand(");
141 :
142 0 : (__logmsg).append("[TODO])\n");
143 0 : fputs((__logmsg).c_str(), __outf);
144 0 : }
145 : };
146 :
147 : class Msg_PTestShellCommandConstructor :
148 : public IPC::Message
149 0 : {
150 : private:
151 : typedef mozilla::ipc::ActorHandle ActorHandle;
152 : typedef mozilla::ipc::Shmem Shmem;
153 :
154 : public:
155 : enum {
156 : ID = Msg_PTestShellCommandConstructor__ID
157 : };
158 0 : Msg_PTestShellCommandConstructor() :
159 0 : IPC::Message(MSG_ROUTING_NONE, ID, PRIORITY_NORMAL, "PTestShell::Msg_PTestShellCommandConstructor")
160 : {
161 0 : }
162 :
163 : void
164 0 : Log(
165 : const std::string& __pfx,
166 : FILE* __outf) const
167 : {
168 0 : std::string __logmsg;
169 0 : StringAppendF((&(__logmsg)), "[time:%" PRId64 "]", PR_Now());
170 0 : (__logmsg).append(__pfx);
171 0 : (__logmsg).append("Msg_PTestShellCommandConstructor(");
172 :
173 0 : (__logmsg).append("[TODO])\n");
174 0 : fputs((__logmsg).c_str(), __outf);
175 0 : }
176 : };
177 :
178 : class Reply_PTestShellCommandConstructor :
179 : public IPC::Message
180 : {
181 : private:
182 : typedef mozilla::ipc::ActorHandle ActorHandle;
183 : typedef mozilla::ipc::Shmem Shmem;
184 :
185 : public:
186 : enum {
187 : ID = Reply_PTestShellCommandConstructor__ID
188 : };
189 : Reply_PTestShellCommandConstructor() :
190 : IPC::Message(MSG_ROUTING_NONE, ID, PRIORITY_NORMAL, "PTestShell::Reply_PTestShellCommandConstructor")
191 : {
192 : }
193 :
194 : void
195 : Log(
196 : const std::string& __pfx,
197 : FILE* __outf) const
198 : {
199 : std::string __logmsg;
200 : StringAppendF((&(__logmsg)), "[time:%" PRId64 "]", PR_Now());
201 : (__logmsg).append(__pfx);
202 : (__logmsg).append("Reply_PTestShellCommandConstructor(");
203 :
204 : (__logmsg).append("[TODO])\n");
205 : fputs((__logmsg).c_str(), __outf);
206 : }
207 : };
208 :
209 : class Msg_PContextWrapperConstructor :
210 : public IPC::Message
211 0 : {
212 : private:
213 : typedef mozilla::ipc::ActorHandle ActorHandle;
214 : typedef mozilla::ipc::Shmem Shmem;
215 :
216 : public:
217 : enum {
218 : ID = Msg_PContextWrapperConstructor__ID
219 : };
220 0 : Msg_PContextWrapperConstructor() :
221 0 : IPC::Message(MSG_ROUTING_NONE, ID, PRIORITY_NORMAL, "PTestShell::Msg_PContextWrapperConstructor")
222 : {
223 0 : }
224 :
225 : void
226 0 : Log(
227 : const std::string& __pfx,
228 : FILE* __outf) const
229 : {
230 0 : std::string __logmsg;
231 0 : StringAppendF((&(__logmsg)), "[time:%" PRId64 "]", PR_Now());
232 0 : (__logmsg).append(__pfx);
233 0 : (__logmsg).append("Msg_PContextWrapperConstructor(");
234 :
235 0 : (__logmsg).append("[TODO])\n");
236 0 : fputs((__logmsg).c_str(), __outf);
237 0 : }
238 : };
239 :
240 : class Reply_PContextWrapperConstructor :
241 : public IPC::Message
242 : {
243 : private:
244 : typedef mozilla::ipc::ActorHandle ActorHandle;
245 : typedef mozilla::ipc::Shmem Shmem;
246 :
247 : public:
248 : enum {
249 : ID = Reply_PContextWrapperConstructor__ID
250 : };
251 : Reply_PContextWrapperConstructor() :
252 : IPC::Message(MSG_ROUTING_NONE, ID, PRIORITY_NORMAL, "PTestShell::Reply_PContextWrapperConstructor")
253 : {
254 : }
255 :
256 : void
257 : Log(
258 : const std::string& __pfx,
259 : FILE* __outf) const
260 : {
261 : std::string __logmsg;
262 : StringAppendF((&(__logmsg)), "[time:%" PRId64 "]", PR_Now());
263 : (__logmsg).append(__pfx);
264 : (__logmsg).append("Reply_PContextWrapperConstructor(");
265 :
266 : (__logmsg).append("[TODO])\n");
267 : fputs((__logmsg).c_str(), __outf);
268 : }
269 : };
270 :
271 :
272 :
273 : } // namespace PTestShell
274 : } // namespace ipc
275 : } // namespace mozilla
276 :
277 : #endif // ifndef PTestShell_h
|