1 : //
2 : // Automatically generated by ipdlc.
3 : // Edit at your own risk
4 : //
5 :
6 : #ifndef PCookieService_h
7 : #define PCookieService_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 : #include "mozilla/net/NeckoMessageUtils.h"
21 :
22 : //-----------------------------------------------------------------------------
23 : // Code common to PCookieServiceChild and PCookieServiceParent
24 : //
25 : namespace mozilla {
26 : namespace net {
27 : namespace PCookieService {
28 :
29 : enum State {
30 : __Dead,
31 : __Null,
32 : __Error,
33 : __Start = __Null
34 : };
35 :
36 : enum MessageType {
37 : PCookieServiceStart = PCookieServiceMsgStart << 16,
38 : PCookieServicePreStart = (PCookieServiceMsgStart << 16) - 1,
39 : Msg_GetCookieString__ID,
40 : Reply_GetCookieString__ID,
41 : Msg_SetCookieString__ID,
42 : Msg___delete____ID,
43 : Reply___delete____ID,
44 : PCookieServiceEnd
45 : };
46 :
47 : bool
48 : Transition(
49 : State from,
50 : mozilla::ipc::Trigger trigger,
51 : State* next);
52 :
53 : class Msg_GetCookieString :
54 : public IPC::Message
55 0 : {
56 : private:
57 : typedef mozilla::ipc::ActorHandle ActorHandle;
58 : typedef mozilla::ipc::Shmem Shmem;
59 : typedef IPC::URI URI;
60 :
61 : public:
62 : enum {
63 : ID = Msg_GetCookieString__ID
64 : };
65 0 : Msg_GetCookieString() :
66 0 : IPC::Message(MSG_ROUTING_NONE, ID, PRIORITY_NORMAL, "PCookieService::Msg_GetCookieString")
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_GetCookieString(");
79 :
80 0 : (__logmsg).append("[TODO])\n");
81 0 : fputs((__logmsg).c_str(), __outf);
82 0 : }
83 : };
84 :
85 : class Reply_GetCookieString :
86 : public IPC::Message
87 0 : {
88 : private:
89 : typedef mozilla::ipc::ActorHandle ActorHandle;
90 : typedef mozilla::ipc::Shmem Shmem;
91 : typedef IPC::URI URI;
92 :
93 : public:
94 : enum {
95 : ID = Reply_GetCookieString__ID
96 : };
97 0 : Reply_GetCookieString() :
98 0 : IPC::Message(MSG_ROUTING_NONE, ID, PRIORITY_NORMAL, "PCookieService::Reply_GetCookieString")
99 : {
100 0 : }
101 :
102 : void
103 0 : Log(
104 : const std::string& __pfx,
105 : FILE* __outf) const
106 : {
107 0 : std::string __logmsg;
108 0 : StringAppendF((&(__logmsg)), "[time:%" PRId64 "]", PR_Now());
109 0 : (__logmsg).append(__pfx);
110 0 : (__logmsg).append("Reply_GetCookieString(");
111 :
112 0 : (__logmsg).append("[TODO])\n");
113 0 : fputs((__logmsg).c_str(), __outf);
114 0 : }
115 : };
116 :
117 : class Msg_SetCookieString :
118 : public IPC::Message
119 0 : {
120 : private:
121 : typedef mozilla::ipc::ActorHandle ActorHandle;
122 : typedef mozilla::ipc::Shmem Shmem;
123 : typedef IPC::URI URI;
124 :
125 : public:
126 : enum {
127 : ID = Msg_SetCookieString__ID
128 : };
129 0 : Msg_SetCookieString() :
130 0 : IPC::Message(MSG_ROUTING_NONE, ID, PRIORITY_NORMAL, "PCookieService::Msg_SetCookieString")
131 : {
132 0 : }
133 :
134 : void
135 0 : Log(
136 : const std::string& __pfx,
137 : FILE* __outf) const
138 : {
139 0 : std::string __logmsg;
140 0 : StringAppendF((&(__logmsg)), "[time:%" PRId64 "]", PR_Now());
141 0 : (__logmsg).append(__pfx);
142 0 : (__logmsg).append("Msg_SetCookieString(");
143 :
144 0 : (__logmsg).append("[TODO])\n");
145 0 : fputs((__logmsg).c_str(), __outf);
146 0 : }
147 : };
148 :
149 : class Msg___delete__ :
150 : public IPC::Message
151 0 : {
152 : private:
153 : typedef mozilla::ipc::ActorHandle ActorHandle;
154 : typedef mozilla::ipc::Shmem Shmem;
155 : typedef IPC::URI URI;
156 :
157 : public:
158 : enum {
159 : ID = Msg___delete____ID
160 : };
161 0 : Msg___delete__() :
162 0 : IPC::Message(MSG_ROUTING_NONE, ID, PRIORITY_NORMAL, "PCookieService::Msg___delete__")
163 : {
164 0 : }
165 :
166 : void
167 0 : Log(
168 : const std::string& __pfx,
169 : FILE* __outf) const
170 : {
171 0 : std::string __logmsg;
172 0 : StringAppendF((&(__logmsg)), "[time:%" PRId64 "]", PR_Now());
173 0 : (__logmsg).append(__pfx);
174 0 : (__logmsg).append("Msg___delete__(");
175 :
176 0 : (__logmsg).append("[TODO])\n");
177 0 : fputs((__logmsg).c_str(), __outf);
178 0 : }
179 : };
180 :
181 : class Reply___delete__ :
182 : public IPC::Message
183 : {
184 : private:
185 : typedef mozilla::ipc::ActorHandle ActorHandle;
186 : typedef mozilla::ipc::Shmem Shmem;
187 : typedef IPC::URI URI;
188 :
189 : public:
190 : enum {
191 : ID = Reply___delete____ID
192 : };
193 : Reply___delete__() :
194 : IPC::Message(MSG_ROUTING_NONE, ID, PRIORITY_NORMAL, "PCookieService::Reply___delete__")
195 : {
196 : }
197 :
198 : void
199 : Log(
200 : const std::string& __pfx,
201 : FILE* __outf) const
202 : {
203 : std::string __logmsg;
204 : StringAppendF((&(__logmsg)), "[time:%" PRId64 "]", PR_Now());
205 : (__logmsg).append(__pfx);
206 : (__logmsg).append("Reply___delete__(");
207 :
208 : (__logmsg).append("[TODO])\n");
209 : fputs((__logmsg).c_str(), __outf);
210 : }
211 : };
212 :
213 :
214 :
215 : } // namespace PCookieService
216 : } // namespace net
217 : } // namespace mozilla
218 :
219 : #endif // ifndef PCookieService_h
|