1 : //
2 : // Automatically generated by ipdlc.
3 : // Edit at your own risk
4 : //
5 :
6 : #ifndef PContentPermissionRequest_h
7 : #define PContentPermissionRequest_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 PContentPermissionRequestChild and PContentPermissionRequestParent
24 : //
25 : namespace mozilla {
26 : namespace dom {
27 : namespace PContentPermissionRequest {
28 :
29 : enum State {
30 : __Dead,
31 : __Null,
32 : __Error,
33 : __Start = __Null
34 : };
35 :
36 : enum MessageType {
37 : PContentPermissionRequestStart = PContentPermissionRequestMsgStart << 16,
38 : PContentPermissionRequestPreStart = (PContentPermissionRequestMsgStart << 16) - 1,
39 : Msg_prompt__ID,
40 : Msg___delete____ID,
41 : Reply___delete____ID,
42 : PContentPermissionRequestEnd
43 : };
44 :
45 : bool
46 : Transition(
47 : State from,
48 : mozilla::ipc::Trigger trigger,
49 : State* next);
50 :
51 : class Msg_prompt :
52 : public IPC::Message
53 0 : {
54 : private:
55 : typedef mozilla::ipc::ActorHandle ActorHandle;
56 : typedef mozilla::ipc::Shmem Shmem;
57 : typedef IPC::URI URI;
58 :
59 : public:
60 : enum {
61 : ID = Msg_prompt__ID
62 : };
63 0 : Msg_prompt() :
64 0 : IPC::Message(MSG_ROUTING_NONE, ID, PRIORITY_NORMAL, "PContentPermissionRequest::Msg_prompt")
65 : {
66 0 : }
67 :
68 : void
69 0 : Log(
70 : const std::string& __pfx,
71 : FILE* __outf) const
72 : {
73 0 : std::string __logmsg;
74 0 : StringAppendF((&(__logmsg)), "[time:%" PRId64 "]", PR_Now());
75 0 : (__logmsg).append(__pfx);
76 0 : (__logmsg).append("Msg_prompt(");
77 :
78 0 : (__logmsg).append("[TODO])\n");
79 0 : fputs((__logmsg).c_str(), __outf);
80 0 : }
81 : };
82 :
83 : class Msg___delete__ :
84 : public IPC::Message
85 0 : {
86 : private:
87 : typedef mozilla::ipc::ActorHandle ActorHandle;
88 : typedef mozilla::ipc::Shmem Shmem;
89 : typedef IPC::URI URI;
90 :
91 : public:
92 : enum {
93 : ID = Msg___delete____ID
94 : };
95 0 : Msg___delete__() :
96 0 : IPC::Message(MSG_ROUTING_NONE, ID, PRIORITY_NORMAL, "PContentPermissionRequest::Msg___delete__")
97 : {
98 0 : }
99 :
100 : void
101 0 : Log(
102 : const std::string& __pfx,
103 : FILE* __outf) const
104 : {
105 0 : std::string __logmsg;
106 0 : StringAppendF((&(__logmsg)), "[time:%" PRId64 "]", PR_Now());
107 0 : (__logmsg).append(__pfx);
108 0 : (__logmsg).append("Msg___delete__(");
109 :
110 0 : (__logmsg).append("[TODO])\n");
111 0 : fputs((__logmsg).c_str(), __outf);
112 0 : }
113 : };
114 :
115 : class Reply___delete__ :
116 : public IPC::Message
117 : {
118 : private:
119 : typedef mozilla::ipc::ActorHandle ActorHandle;
120 : typedef mozilla::ipc::Shmem Shmem;
121 : typedef IPC::URI URI;
122 :
123 : public:
124 : enum {
125 : ID = Reply___delete____ID
126 : };
127 : Reply___delete__() :
128 : IPC::Message(MSG_ROUTING_NONE, ID, PRIORITY_NORMAL, "PContentPermissionRequest::Reply___delete__")
129 : {
130 : }
131 :
132 : void
133 : Log(
134 : const std::string& __pfx,
135 : FILE* __outf) const
136 : {
137 : std::string __logmsg;
138 : StringAppendF((&(__logmsg)), "[time:%" PRId64 "]", PR_Now());
139 : (__logmsg).append(__pfx);
140 : (__logmsg).append("Reply___delete__(");
141 :
142 : (__logmsg).append("[TODO])\n");
143 : fputs((__logmsg).c_str(), __outf);
144 : }
145 : };
146 :
147 :
148 :
149 : } // namespace PContentPermissionRequest
150 : } // namespace dom
151 : } // namespace mozilla
152 :
153 : #endif // ifndef PContentPermissionRequest_h
|