Line data Source code
1 : //
2 : // Automatically generated by ipdlc.
3 : // Edit at your own risk
4 : //
5 :
6 :
7 : #include "mozilla/dom/PHandlerService.h"
8 :
9 : namespace mozilla {
10 : namespace dom {
11 : namespace PHandlerService {
12 :
13 : nsresult
14 0 : CreateEndpoints(
15 : base::ProcessId aParentDestPid,
16 : base::ProcessId aChildDestPid,
17 : mozilla::ipc::Endpoint<mozilla::dom::PHandlerServiceParent>* aParent,
18 : mozilla::ipc::Endpoint<mozilla::dom::PHandlerServiceChild>* aChild)
19 : {
20 0 : return mozilla::ipc::CreateEndpoints(mozilla::ipc::PrivateIPDLInterface(), aParentDestPid, aChildDestPid, PHandlerServiceMsgStart, PHandlerServiceMsgStartChild, aParent, aChild);
21 : }
22 : void
23 0 : Transition(
24 : MessageType msg,
25 : State* next)
26 : {
27 0 : switch ((*(next))) {
28 : case __Null:
29 0 : if ((Msg___delete____ID) == (msg)) {
30 0 : (*(next)) = __Dead;
31 : }
32 0 : break;
33 : case __Dead:
34 0 : mozilla::ipc::LogicError("__delete__()d actor");
35 0 : break;
36 : default:
37 0 : mozilla::ipc::LogicError("corrupted actor state");
38 0 : break;
39 : }
40 0 : }
41 : IPC::Message*
42 0 : Msg_FillHandlerInfo(int32_t routingId)
43 : {
44 0 : return new IPC::Message(routingId, Msg_FillHandlerInfo__ID, 0, IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, "PHandlerService::Msg_FillHandlerInfo", true);
45 : }
46 : IPC::Message*
47 0 : Reply_FillHandlerInfo(int32_t routingId)
48 : {
49 0 : return new IPC::Message(routingId, Reply_FillHandlerInfo__ID, 0, IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, "PHandlerService::Reply_FillHandlerInfo", true);
50 : }
51 : IPC::Message*
52 0 : Msg_Exists(int32_t routingId)
53 : {
54 0 : return new IPC::Message(routingId, Msg_Exists__ID, 0, IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, "PHandlerService::Msg_Exists", true);
55 : }
56 : IPC::Message*
57 0 : Reply_Exists(int32_t routingId)
58 : {
59 0 : return new IPC::Message(routingId, Reply_Exists__ID, 0, IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, "PHandlerService::Reply_Exists", true);
60 : }
61 : IPC::Message*
62 0 : Msg_GetTypeFromExtension(int32_t routingId)
63 : {
64 0 : return new IPC::Message(routingId, Msg_GetTypeFromExtension__ID, 0, IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, "PHandlerService::Msg_GetTypeFromExtension", true);
65 : }
66 : IPC::Message*
67 0 : Reply_GetTypeFromExtension(int32_t routingId)
68 : {
69 0 : return new IPC::Message(routingId, Reply_GetTypeFromExtension__ID, 0, IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, "PHandlerService::Reply_GetTypeFromExtension", true);
70 : }
71 : IPC::Message*
72 0 : Msg___delete__(int32_t routingId)
73 : {
74 0 : return new IPC::Message(routingId, Msg___delete____ID, 0, IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, "PHandlerService::Msg___delete__", true);
75 : }
76 : IPC::Message*
77 0 : Reply___delete__(int32_t routingId)
78 : {
79 0 : return new IPC::Message(routingId, Reply___delete____ID, 0, IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, "PHandlerService::Reply___delete__", true);
80 : }
81 :
82 : } // namespace PHandlerService
83 : } // namespace dom
84 : } // namespace mozilla
85 :
86 : //-----------------------------------------------------------------------------
87 : // Method definitions for the IPDL type |struct HandlerApp|
88 : //
89 : namespace mozilla {
90 : namespace dom {
91 0 : MOZ_IMPLICIT HandlerApp::HandlerApp() :
92 : name_(),
93 0 : detailedDescription_()
94 : {
95 0 : Init();
96 0 : }
97 :
98 0 : HandlerApp::~HandlerApp()
99 : {
100 0 : }
101 :
102 0 : auto HandlerApp::operator==(const HandlerApp& _o) const -> bool
103 : {
104 0 : if ((!((name()) == ((_o).name())))) {
105 0 : return false;
106 : }
107 0 : if ((!((detailedDescription()) == ((_o).detailedDescription())))) {
108 0 : return false;
109 : }
110 0 : return true;
111 : }
112 :
113 0 : auto HandlerApp::operator!=(const HandlerApp& _o) const -> bool
114 : {
115 0 : return (!(operator==(_o)));
116 : }
117 :
118 0 : auto HandlerApp::Init() -> void
119 : {
120 0 : }
121 :
122 0 : auto HandlerApp::Assign(
123 : const nsString& _name,
124 : const nsString& _detailedDescription) -> void
125 : {
126 0 : name_ = _name;
127 0 : detailedDescription_ = _detailedDescription;
128 0 : }
129 :
130 : } // namespace dom
131 : } // namespace mozilla
132 :
133 : //-----------------------------------------------------------------------------
134 : // Method definitions for the IPDL type |struct HandlerInfo|
135 : //
136 : namespace mozilla {
137 : namespace dom {
138 0 : MOZ_IMPLICIT HandlerInfo::HandlerInfo() :
139 : type_(),
140 : isMIMEInfo_(),
141 : description_(),
142 : alwaysAskBeforeHandling_(),
143 0 : preferredAction_()
144 : {
145 0 : Init();
146 0 : }
147 :
148 0 : HandlerInfo::~HandlerInfo()
149 : {
150 0 : }
151 :
152 0 : auto HandlerInfo::operator==(const HandlerInfo& _o) const -> bool
153 : {
154 0 : if ((!((type()) == ((_o).type())))) {
155 0 : return false;
156 : }
157 0 : if ((!((isMIMEInfo()) == ((_o).isMIMEInfo())))) {
158 0 : return false;
159 : }
160 0 : if ((!((description()) == ((_o).description())))) {
161 0 : return false;
162 : }
163 0 : if ((!((alwaysAskBeforeHandling()) == ((_o).alwaysAskBeforeHandling())))) {
164 0 : return false;
165 : }
166 0 : if ((!((preferredApplicationHandler()) == ((_o).preferredApplicationHandler())))) {
167 0 : return false;
168 : }
169 0 : if ((!((possibleApplicationHandlers()) == ((_o).possibleApplicationHandlers())))) {
170 0 : return false;
171 : }
172 0 : if ((!((preferredAction()) == ((_o).preferredAction())))) {
173 0 : return false;
174 : }
175 0 : return true;
176 : }
177 :
178 0 : auto HandlerInfo::operator!=(const HandlerInfo& _o) const -> bool
179 : {
180 0 : return (!(operator==(_o)));
181 : }
182 :
183 0 : auto HandlerInfo::Init() -> void
184 : {
185 0 : }
186 :
187 0 : auto HandlerInfo::Assign(
188 : const nsCString& _type,
189 : const bool& _isMIMEInfo,
190 : const nsString& _description,
191 : const bool& _alwaysAskBeforeHandling,
192 : const HandlerApp& _preferredApplicationHandler,
193 : const nsTArray<HandlerApp>& _possibleApplicationHandlers,
194 : const long& _preferredAction) -> void
195 : {
196 0 : type_ = _type;
197 0 : isMIMEInfo_ = _isMIMEInfo;
198 0 : description_ = _description;
199 0 : alwaysAskBeforeHandling_ = _alwaysAskBeforeHandling;
200 0 : preferredApplicationHandler_ = _preferredApplicationHandler;
201 0 : possibleApplicationHandlers_ = _possibleApplicationHandlers;
202 0 : preferredAction_ = _preferredAction;
203 0 : }
204 :
205 : } // namespace dom
206 : } // namespace mozilla
|