Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(578)

Side by Side Diff: ipc/ipc_message_macros.h

Issue 5998006: Clean up Automation and Chrome Frame IPC code. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ipc/ipc_message_impl_macros.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This header is meant to be included in multiple passes, hence no traditional 5 // This header is meant to be included in multiple passes, hence no traditional
6 // header guard. 6 // header guard.
7 // 7 //
8 // In your XXX_messages_internal.h file, before defining any messages do: 8 // In your XXX_messages_internal.h file, before defining any messages do:
9 // #define IPC_MESSAGE_START XMsgStart 9 // #define IPC_MESSAGE_START XMsgStart
10 // XMstStart value is from the IPCMessageStart enum in ipc_message_utils.h, and 10 // XMstStart value is from the IPCMessageStart enum in ipc_message_utils.h, and
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 113
114 #define IPC_SYNC_MESSAGE_CONTROL0_1_EXTRA(msg_class, type1_out) \ 114 #define IPC_SYNC_MESSAGE_CONTROL0_1_EXTRA(msg_class, type1_out) \
115 IPC_MESSAGE_LOG(msg_class) 115 IPC_MESSAGE_LOG(msg_class)
116 116
117 #define IPC_SYNC_MESSAGE_CONTROL0_2_EXTRA(msg_class, type1_out, type2_out) \ 117 #define IPC_SYNC_MESSAGE_CONTROL0_2_EXTRA(msg_class, type1_out, type2_out) \
118 IPC_MESSAGE_LOG(msg_class) 118 IPC_MESSAGE_LOG(msg_class)
119 119
120 #define IPC_SYNC_MESSAGE_CONTROL0_3_EXTRA(msg_class, type1_out, type2_out, type3 _out) \ 120 #define IPC_SYNC_MESSAGE_CONTROL0_3_EXTRA(msg_class, type1_out, type2_out, type3 _out) \
121 IPC_MESSAGE_LOG(msg_class) 121 IPC_MESSAGE_LOG(msg_class)
122 122
123 #define IPC_SYNC_MESSAGE_CONTROL0_4_EXTRA(msg_class, type1_out, type2_out, type3 _out, type4_out) \
124 IPC_MESSAGE_LOG(msg_class)
125
123 #define IPC_SYNC_MESSAGE_CONTROL1_0_EXTRA(msg_class, type1_in) \ 126 #define IPC_SYNC_MESSAGE_CONTROL1_0_EXTRA(msg_class, type1_in) \
124 IPC_MESSAGE_LOG(msg_class) 127 IPC_MESSAGE_LOG(msg_class)
125 128
126 #define IPC_SYNC_MESSAGE_CONTROL1_1_EXTRA(msg_class, type1_in, type1_out) \ 129 #define IPC_SYNC_MESSAGE_CONTROL1_1_EXTRA(msg_class, type1_in, type1_out) \
127 IPC_MESSAGE_LOG(msg_class) 130 IPC_MESSAGE_LOG(msg_class)
128 131
129 #define IPC_SYNC_MESSAGE_CONTROL1_2_EXTRA(msg_class, type1_in, type1_out, type2_ out) \ 132 #define IPC_SYNC_MESSAGE_CONTROL1_2_EXTRA(msg_class, type1_in, type1_out, type2_ out) \
130 IPC_MESSAGE_LOG(msg_class) 133 IPC_MESSAGE_LOG(msg_class)
131 134
132 #define IPC_SYNC_MESSAGE_CONTROL1_3_EXTRA(msg_class, type1_in, type1_out, type2_ out, type3_out) \ 135 #define IPC_SYNC_MESSAGE_CONTROL1_3_EXTRA(msg_class, type1_in, type1_out, type2_ out, type3_out) \
133 IPC_MESSAGE_LOG(msg_class) 136 IPC_MESSAGE_LOG(msg_class)
134 137
138 #define IPC_SYNC_MESSAGE_CONTROL1_4_EXTRA(msg_class, type1_in, type1_out, type2_ out, type3_out, type4_out) \
139 IPC_MESSAGE_LOG(msg_class)
140
135 #define IPC_SYNC_MESSAGE_CONTROL2_0_EXTRA(msg_class, type1_in, type2_in) \ 141 #define IPC_SYNC_MESSAGE_CONTROL2_0_EXTRA(msg_class, type1_in, type2_in) \
136 IPC_MESSAGE_LOG(msg_class) 142 IPC_MESSAGE_LOG(msg_class)
137 143
138 #define IPC_SYNC_MESSAGE_CONTROL2_1_EXTRA(msg_class, type1_in, type2_in, type1_o ut) \ 144 #define IPC_SYNC_MESSAGE_CONTROL2_1_EXTRA(msg_class, type1_in, type2_in, type1_o ut) \
139 IPC_MESSAGE_LOG(msg_class) 145 IPC_MESSAGE_LOG(msg_class)
140 146
141 #define IPC_SYNC_MESSAGE_CONTROL2_2_EXTRA(msg_class, type1_in, type2_in, type1_o ut, type2_out) \ 147 #define IPC_SYNC_MESSAGE_CONTROL2_2_EXTRA(msg_class, type1_in, type2_in, type1_o ut, type2_out) \
142 IPC_MESSAGE_LOG(msg_class) 148 IPC_MESSAGE_LOG(msg_class)
143 149
144 #define IPC_SYNC_MESSAGE_CONTROL2_3_EXTRA(msg_class, type1_in, type2_in, type1_o ut, type2_out, type3_out) \ 150 #define IPC_SYNC_MESSAGE_CONTROL2_3_EXTRA(msg_class, type1_in, type2_in, type1_o ut, type2_out, type3_out) \
145 IPC_MESSAGE_LOG(msg_class) 151 IPC_MESSAGE_LOG(msg_class)
146 152
153 #define IPC_SYNC_MESSAGE_CONTROL2_4_EXTRA(msg_class, type1_in, type2_in, type1_o ut, type2_out, type3_out, type4_out) \
154 IPC_MESSAGE_LOG(msg_class)
155
147 #define IPC_SYNC_MESSAGE_CONTROL3_1_EXTRA(msg_class, type1_in, type2_in, type3_i n, type1_out) \ 156 #define IPC_SYNC_MESSAGE_CONTROL3_1_EXTRA(msg_class, type1_in, type2_in, type3_i n, type1_out) \
148 IPC_MESSAGE_LOG(msg_class) 157 IPC_MESSAGE_LOG(msg_class)
149 158
150 #define IPC_SYNC_MESSAGE_CONTROL3_2_EXTRA(msg_class, type1_in, type2_in, type3_i n, type1_out, type2_out) \ 159 #define IPC_SYNC_MESSAGE_CONTROL3_2_EXTRA(msg_class, type1_in, type2_in, type3_i n, type1_out, type2_out) \
151 IPC_MESSAGE_LOG(msg_class) 160 IPC_MESSAGE_LOG(msg_class)
152 161
153 #define IPC_SYNC_MESSAGE_CONTROL3_3_EXTRA(msg_class, type1_in, type2_in, type3_i n, type1_out, type2_out, type3_out) \ 162 #define IPC_SYNC_MESSAGE_CONTROL3_3_EXTRA(msg_class, type1_in, type2_in, type3_i n, type1_out, type2_out, type3_out) \
154 IPC_MESSAGE_LOG(msg_class) 163 IPC_MESSAGE_LOG(msg_class)
155 164
156 #define IPC_SYNC_MESSAGE_CONTROL3_4_EXTRA(msg_class, type1_in, type2_in, type3_i n, type1_out, type2_out, type3_out, type4_out) \ 165 #define IPC_SYNC_MESSAGE_CONTROL3_4_EXTRA(msg_class, type1_in, type2_in, type3_i n, type1_out, type2_out, type3_out, type4_out) \
157 IPC_MESSAGE_LOG(msg_class) 166 IPC_MESSAGE_LOG(msg_class)
158 167
159 #define IPC_SYNC_MESSAGE_CONTROL4_1_EXTRA(msg_class, type1_in, type2_in, type3_i n, type4_in, type1_out) \ 168 #define IPC_SYNC_MESSAGE_CONTROL4_1_EXTRA(msg_class, type1_in, type2_in, type3_i n, type4_in, type1_out) \
160 IPC_MESSAGE_LOG(msg_class) 169 IPC_MESSAGE_LOG(msg_class)
161 170
162 #define IPC_SYNC_MESSAGE_CONTROL4_2_EXTRA(msg_class, type1_in, type2_in, type3_i n, type4_in, type1_out, type2_out) \ 171 #define IPC_SYNC_MESSAGE_CONTROL4_2_EXTRA(msg_class, type1_in, type2_in, type3_i n, type4_in, type1_out, type2_out) \
163 IPC_MESSAGE_LOG(msg_class) 172 IPC_MESSAGE_LOG(msg_class)
164 173
165 #define IPC_SYNC_MESSAGE_CONTROL4_3_EXTRA(msg_class, type1_in, type2_in, type3_i n, type4_in, type1_out, type2_out, type3_out) \ 174 #define IPC_SYNC_MESSAGE_CONTROL4_3_EXTRA(msg_class, type1_in, type2_in, type3_i n, type4_in, type1_out, type2_out, type3_out) \
166 IPC_MESSAGE_LOG(msg_class) 175 IPC_MESSAGE_LOG(msg_class)
167 176
177 #define IPC_SYNC_MESSAGE_CONTROL4_4_EXTRA(msg_class, type1_in, type2_in, type3_i n, type4_in, type1_out, type2_out, type3_out, type4_out) \
178 IPC_MESSAGE_LOG(msg_class)
179
168 #define IPC_SYNC_MESSAGE_CONTROL5_1_EXTRA(msg_class, type1_in, type2_in, type3_i n, type4_in, type5_in, type1_out) \ 180 #define IPC_SYNC_MESSAGE_CONTROL5_1_EXTRA(msg_class, type1_in, type2_in, type3_i n, type4_in, type5_in, type1_out) \
169 IPC_MESSAGE_LOG(msg_class) 181 IPC_MESSAGE_LOG(msg_class)
170 182
171 #define IPC_SYNC_MESSAGE_CONTROL5_2_EXTRA(msg_class, type1_in, type2_in, type3_i n, type4_in, type5_in, type1_out, type2_out) \ 183 #define IPC_SYNC_MESSAGE_CONTROL5_2_EXTRA(msg_class, type1_in, type2_in, type3_i n, type4_in, type5_in, type1_out, type2_out) \
172 IPC_MESSAGE_LOG(msg_class) 184 IPC_MESSAGE_LOG(msg_class)
173 185
174 #define IPC_SYNC_MESSAGE_CONTROL5_3_EXTRA(msg_class, type1_in, type2_in, type3_i n, type4_in, type5_in, type1_out, type2_out, type3_out) \ 186 #define IPC_SYNC_MESSAGE_CONTROL5_3_EXTRA(msg_class, type1_in, type2_in, type3_i n, type4_in, type5_in, type1_out, type2_out, type3_out) \
175 IPC_MESSAGE_LOG(msg_class) 187 IPC_MESSAGE_LOG(msg_class)
176 188
189 #define IPC_SYNC_MESSAGE_CONTROL5_4_EXTRA(msg_class, type1_in, type2_in, type3_i n, type4_in, type5_in, type1_out, type2_out, type3_out, type4_out) \
190 IPC_MESSAGE_LOG(msg_class)
191
177 #define IPC_SYNC_MESSAGE_ROUTED0_0_EXTRA(msg_class) \ 192 #define IPC_SYNC_MESSAGE_ROUTED0_0_EXTRA(msg_class) \
178 IPC_MESSAGE_LOG(msg_class) 193 IPC_MESSAGE_LOG(msg_class)
179 194
180 #define IPC_SYNC_MESSAGE_ROUTED0_1_EXTRA(msg_class, type1_out) \ 195 #define IPC_SYNC_MESSAGE_ROUTED0_1_EXTRA(msg_class, type1_out) \
181 IPC_MESSAGE_LOG(msg_class) 196 IPC_MESSAGE_LOG(msg_class)
182 197
183 #define IPC_SYNC_MESSAGE_ROUTED0_2_EXTRA(msg_class, type1_out, type2_out) \ 198 #define IPC_SYNC_MESSAGE_ROUTED0_2_EXTRA(msg_class, type1_out, type2_out) \
184 IPC_MESSAGE_LOG(msg_class) 199 IPC_MESSAGE_LOG(msg_class)
185 200
186 #define IPC_SYNC_MESSAGE_ROUTED0_3_EXTRA(msg_class, type1_out, type2_out, type3_ out) \ 201 #define IPC_SYNC_MESSAGE_ROUTED0_3_EXTRA(msg_class, type1_out, type2_out, type3_ out) \
187 IPC_MESSAGE_LOG(msg_class) 202 IPC_MESSAGE_LOG(msg_class)
188 203
204 #define IPC_SYNC_MESSAGE_ROUTED0_4_EXTRA(msg_class, type1_out, type2_out, type3_ out, type4_out) \
205 IPC_MESSAGE_LOG(msg_class)
206
189 #define IPC_SYNC_MESSAGE_ROUTED1_0_EXTRA(msg_class, type1_in) \ 207 #define IPC_SYNC_MESSAGE_ROUTED1_0_EXTRA(msg_class, type1_in) \
190 IPC_MESSAGE_LOG(msg_class) 208 IPC_MESSAGE_LOG(msg_class)
191 209
192 #define IPC_SYNC_MESSAGE_ROUTED1_1_EXTRA(msg_class, type1_in, type1_out) \ 210 #define IPC_SYNC_MESSAGE_ROUTED1_1_EXTRA(msg_class, type1_in, type1_out) \
193 IPC_MESSAGE_LOG(msg_class) 211 IPC_MESSAGE_LOG(msg_class)
194 212
195 #define IPC_SYNC_MESSAGE_ROUTED1_2_EXTRA(msg_class, type1_in, type1_out, type2_o ut) \ 213 #define IPC_SYNC_MESSAGE_ROUTED1_2_EXTRA(msg_class, type1_in, type1_out, type2_o ut) \
196 IPC_MESSAGE_LOG(msg_class) 214 IPC_MESSAGE_LOG(msg_class)
197 215
198 #define IPC_SYNC_MESSAGE_ROUTED1_3_EXTRA(msg_class, type1_in, type1_out, type2_o ut, type3_out) \ 216 #define IPC_SYNC_MESSAGE_ROUTED1_3_EXTRA(msg_class, type1_in, type1_out, type2_o ut, type3_out) \
199 IPC_MESSAGE_LOG(msg_class) 217 IPC_MESSAGE_LOG(msg_class)
200 218
201 #define IPC_SYNC_MESSAGE_ROUTED1_4_EXTRA(msg_class, type1_in, type1_out, type2_o ut, type3_out, type4_out) \ 219 #define IPC_SYNC_MESSAGE_ROUTED1_4_EXTRA(msg_class, type1_in, type1_out, type2_o ut, type3_out, type4_out) \
202 IPC_MESSAGE_LOG(msg_class) 220 IPC_MESSAGE_LOG(msg_class)
203 221
204 #define IPC_SYNC_MESSAGE_ROUTED2_0_EXTRA(msg_class, type1_in, type2_in) \ 222 #define IPC_SYNC_MESSAGE_ROUTED2_0_EXTRA(msg_class, type1_in, type2_in) \
205 IPC_MESSAGE_LOG(msg_class) 223 IPC_MESSAGE_LOG(msg_class)
206 224
207 #define IPC_SYNC_MESSAGE_ROUTED2_1_EXTRA(msg_class, type1_in, type2_in, type1_ou t) \ 225 #define IPC_SYNC_MESSAGE_ROUTED2_1_EXTRA(msg_class, type1_in, type2_in, type1_ou t) \
208 IPC_MESSAGE_LOG(msg_class) 226 IPC_MESSAGE_LOG(msg_class)
209 227
210 #define IPC_SYNC_MESSAGE_ROUTED2_2_EXTRA(msg_class, type1_in, type2_in, type1_ou t, type2_out) \ 228 #define IPC_SYNC_MESSAGE_ROUTED2_2_EXTRA(msg_class, type1_in, type2_in, type1_ou t, type2_out) \
211 IPC_MESSAGE_LOG(msg_class) 229 IPC_MESSAGE_LOG(msg_class)
212 230
213 #define IPC_SYNC_MESSAGE_ROUTED2_3_EXTRA(msg_class, type1_in, type2_in, type1_ou t, type2_out, type3_out) \ 231 #define IPC_SYNC_MESSAGE_ROUTED2_3_EXTRA(msg_class, type1_in, type2_in, type1_ou t, type2_out, type3_out) \
214 IPC_MESSAGE_LOG(msg_class) 232 IPC_MESSAGE_LOG(msg_class)
215 233
234 #define IPC_SYNC_MESSAGE_ROUTED2_4_EXTRA(msg_class, type1_in, type2_in, type1_ou t, type2_out, type3_out, type4_out) \
235 IPC_MESSAGE_LOG(msg_class)
236
216 #define IPC_SYNC_MESSAGE_ROUTED3_0_EXTRA(msg_class, type1_in, type2_in, type3_in ) \ 237 #define IPC_SYNC_MESSAGE_ROUTED3_0_EXTRA(msg_class, type1_in, type2_in, type3_in ) \
217 IPC_MESSAGE_LOG(msg_class) 238 IPC_MESSAGE_LOG(msg_class)
218 239
219 #define IPC_SYNC_MESSAGE_ROUTED3_1_EXTRA(msg_class, type1_in, type2_in, type3_in , type1_out) \ 240 #define IPC_SYNC_MESSAGE_ROUTED3_1_EXTRA(msg_class, type1_in, type2_in, type3_in , type1_out) \
220 IPC_MESSAGE_LOG(msg_class) 241 IPC_MESSAGE_LOG(msg_class)
221 242
222 #define IPC_SYNC_MESSAGE_ROUTED3_2_EXTRA(msg_class, type1_in, type2_in, type3_in , type1_out, type2_out) \ 243 #define IPC_SYNC_MESSAGE_ROUTED3_2_EXTRA(msg_class, type1_in, type2_in, type3_in , type1_out, type2_out) \
223 IPC_MESSAGE_LOG(msg_class) 244 IPC_MESSAGE_LOG(msg_class)
224 245
225 #define IPC_SYNC_MESSAGE_ROUTED3_3_EXTRA(msg_class, type1_in, type2_in, type3_in , type1_out, type2_out, type3_out) \ 246 #define IPC_SYNC_MESSAGE_ROUTED3_3_EXTRA(msg_class, type1_in, type2_in, type3_in , type1_out, type2_out, type3_out) \
226 IPC_MESSAGE_LOG(msg_class) 247 IPC_MESSAGE_LOG(msg_class)
227 248
228 #define IPC_SYNC_MESSAGE_ROUTED3_4_EXTRA(msg_class, type1_in, type2_in, type3_in , type1_out, type2_out, type3_out, type4_out) \ 249 #define IPC_SYNC_MESSAGE_ROUTED3_4_EXTRA(msg_class, type1_in, type2_in, type3_in , type1_out, type2_out, type3_out, type4_out) \
229 IPC_MESSAGE_LOG(msg_class) 250 IPC_MESSAGE_LOG(msg_class)
230 251
231 #define IPC_SYNC_MESSAGE_ROUTED4_0_EXTRA(msg_class, type1_in, type2_in, type3_in , type4_in) \ 252 #define IPC_SYNC_MESSAGE_ROUTED4_0_EXTRA(msg_class, type1_in, type2_in, type3_in , type4_in) \
232 IPC_MESSAGE_LOG(msg_class) 253 IPC_MESSAGE_LOG(msg_class)
233 254
234 #define IPC_SYNC_MESSAGE_ROUTED4_1_EXTRA(msg_class, type1_in, type2_in, type3_in , type4_in, type1_out) \ 255 #define IPC_SYNC_MESSAGE_ROUTED4_1_EXTRA(msg_class, type1_in, type2_in, type3_in , type4_in, type1_out) \
235 IPC_MESSAGE_LOG(msg_class) 256 IPC_MESSAGE_LOG(msg_class)
236 257
237 #define IPC_SYNC_MESSAGE_ROUTED4_2_EXTRA(msg_class, type1_in, type2_in, type3_in , type4_in, type1_out, type2_out) \ 258 #define IPC_SYNC_MESSAGE_ROUTED4_2_EXTRA(msg_class, type1_in, type2_in, type3_in , type4_in, type1_out, type2_out) \
238 IPC_MESSAGE_LOG(msg_class) 259 IPC_MESSAGE_LOG(msg_class)
239 260
240 #define IPC_SYNC_MESSAGE_ROUTED4_3_EXTRA(msg_class, type1_in, type2_in, type3_in , type4_in, type1_out, type2_out, type3_out) \ 261 #define IPC_SYNC_MESSAGE_ROUTED4_3_EXTRA(msg_class, type1_in, type2_in, type3_in , type4_in, type1_out, type2_out, type3_out) \
241 IPC_MESSAGE_LOG(msg_class) 262 IPC_MESSAGE_LOG(msg_class)
242 263
264
265 #define IPC_SYNC_MESSAGE_ROUTED4_4_EXTRA(msg_class, type1_in, type2_in, type3_in , type4_in, type1_out, type2_out, type3_out, type4_out) \
266 IPC_MESSAGE_LOG(msg_class)
267
243 #define IPC_SYNC_MESSAGE_ROUTED5_0_EXTRA(msg_class, type1_in, type2_in, type3_in , type4_in, type5_in) \ 268 #define IPC_SYNC_MESSAGE_ROUTED5_0_EXTRA(msg_class, type1_in, type2_in, type3_in , type4_in, type5_in) \
244 IPC_MESSAGE_LOG(msg_class) 269 IPC_MESSAGE_LOG(msg_class)
245 270
246 #define IPC_SYNC_MESSAGE_ROUTED5_1_EXTRA(msg_class, type1_in, type2_in, type3_in , type4_in, type5_in, type1_out) \ 271 #define IPC_SYNC_MESSAGE_ROUTED5_1_EXTRA(msg_class, type1_in, type2_in, type3_in , type4_in, type5_in, type1_out) \
247 IPC_MESSAGE_LOG(msg_class) 272 IPC_MESSAGE_LOG(msg_class)
248 273
249 #define IPC_SYNC_MESSAGE_ROUTED5_2_EXTRA(msg_class, type1_in, type2_in, type3_in , type4_in, type5_in, type1_out, type2_out) \ 274 #define IPC_SYNC_MESSAGE_ROUTED5_2_EXTRA(msg_class, type1_in, type2_in, type3_in , type4_in, type5_in, type1_out, type2_out) \
250 IPC_MESSAGE_LOG(msg_class) 275 IPC_MESSAGE_LOG(msg_class)
251 276
252 #define IPC_SYNC_MESSAGE_ROUTED5_3_EXTRA(msg_class, type1_in, type2_in, type3_in , type4_in, type5_in, type1_out, type2_out, type3_out) \ 277 #define IPC_SYNC_MESSAGE_ROUTED5_3_EXTRA(msg_class, type1_in, type2_in, type3_in , type4_in, type5_in, type1_out, type2_out, type3_out) \
253 IPC_MESSAGE_LOG(msg_class) 278 IPC_MESSAGE_LOG(msg_class)
254 279
280 #define IPC_SYNC_MESSAGE_ROUTED5_4_EXTRA(msg_class, type1_in, type2_in, type3_in , type4_in, type5_in, type1_out, type2_out, type3_out, type4_out) \
281 IPC_MESSAGE_LOG(msg_class)
282
255 #else 283 #else
256 284
257 #define IPC_MESSAGE_CONTROL0_EXTRA(msg_class) 285 #define IPC_MESSAGE_CONTROL0_EXTRA(msg_class)
258 #define IPC_MESSAGE_CONTROL1_EXTRA(msg_class, type1) 286 #define IPC_MESSAGE_CONTROL1_EXTRA(msg_class, type1)
259 #define IPC_MESSAGE_CONTROL2_EXTRA(msg_class, type1, type2) 287 #define IPC_MESSAGE_CONTROL2_EXTRA(msg_class, type1, type2)
260 #define IPC_MESSAGE_CONTROL3_EXTRA(msg_class, type1, type2, type3) 288 #define IPC_MESSAGE_CONTROL3_EXTRA(msg_class, type1, type2, type3)
261 #define IPC_MESSAGE_CONTROL4_EXTRA(msg_class, type1, type2, type3, type4) 289 #define IPC_MESSAGE_CONTROL4_EXTRA(msg_class, type1, type2, type3, type4)
262 #define IPC_MESSAGE_CONTROL5_EXTRA(msg_class, type1, type2, type3, type4, type5) 290 #define IPC_MESSAGE_CONTROL5_EXTRA(msg_class, type1, type2, type3, type4, type5)
263 #define IPC_MESSAGE_ROUTED0_EXTRA(msg_class) 291 #define IPC_MESSAGE_ROUTED0_EXTRA(msg_class)
264 #define IPC_MESSAGE_ROUTED1_EXTRA(msg_class, type1) 292 #define IPC_MESSAGE_ROUTED1_EXTRA(msg_class, type1)
265 #define IPC_MESSAGE_ROUTED2_EXTRA(msg_class, type1, type2) 293 #define IPC_MESSAGE_ROUTED2_EXTRA(msg_class, type1, type2)
266 #define IPC_MESSAGE_ROUTED3_EXTRA(msg_class, type1, type2, type3) 294 #define IPC_MESSAGE_ROUTED3_EXTRA(msg_class, type1, type2, type3)
267 #define IPC_MESSAGE_ROUTED4_EXTRA(msg_class, type1, type2, type3, type4) 295 #define IPC_MESSAGE_ROUTED4_EXTRA(msg_class, type1, type2, type3, type4)
268 #define IPC_MESSAGE_ROUTED5_EXTRA(msg_class, type1, type2, type3, type4, type5) 296 #define IPC_MESSAGE_ROUTED5_EXTRA(msg_class, type1, type2, type3, type4, type5)
269 #define IPC_SYNC_MESSAGE_CONTROL0_0_EXTRA(msg_class) 297 #define IPC_SYNC_MESSAGE_CONTROL0_0_EXTRA(msg_class)
270 #define IPC_SYNC_MESSAGE_CONTROL0_1_EXTRA(msg_class, type1_out) 298 #define IPC_SYNC_MESSAGE_CONTROL0_1_EXTRA(msg_class, type1_out)
271 #define IPC_SYNC_MESSAGE_CONTROL0_2_EXTRA(msg_class, type1_out, type2_out) 299 #define IPC_SYNC_MESSAGE_CONTROL0_2_EXTRA(msg_class, type1_out, type2_out)
272 #define IPC_SYNC_MESSAGE_CONTROL0_3_EXTRA(msg_class, type1_out, type2_out, type3 _out) 300 #define IPC_SYNC_MESSAGE_CONTROL0_3_EXTRA(msg_class, type1_out, type2_out, type3 _out)
301 #define IPC_SYNC_MESSAGE_CONTROL0_4_EXTRA(msg_class, type1_out, type2_out, type3 _out, type4_out)
273 #define IPC_SYNC_MESSAGE_CONTROL1_0_EXTRA(msg_class, type1_in) 302 #define IPC_SYNC_MESSAGE_CONTROL1_0_EXTRA(msg_class, type1_in)
274 #define IPC_SYNC_MESSAGE_CONTROL1_1_EXTRA(msg_class, type1_in, type1_out) 303 #define IPC_SYNC_MESSAGE_CONTROL1_1_EXTRA(msg_class, type1_in, type1_out)
275 #define IPC_SYNC_MESSAGE_CONTROL1_2_EXTRA(msg_class, type1_in, type1_out, type2_ out) 304 #define IPC_SYNC_MESSAGE_CONTROL1_2_EXTRA(msg_class, type1_in, type1_out, type2_ out)
276 #define IPC_SYNC_MESSAGE_CONTROL1_3_EXTRA(msg_class, type1_in, type1_out, type2_ out, type3_out) 305 #define IPC_SYNC_MESSAGE_CONTROL1_3_EXTRA(msg_class, type1_in, type1_out, type2_ out, type3_out)
306 #define IPC_SYNC_MESSAGE_CONTROL1_4_EXTRA(msg_class, type1_in, type1_out, type2_ out, type3_out, type4_out)
277 #define IPC_SYNC_MESSAGE_CONTROL2_0_EXTRA(msg_class, type1_in, type2_in) 307 #define IPC_SYNC_MESSAGE_CONTROL2_0_EXTRA(msg_class, type1_in, type2_in)
278 #define IPC_SYNC_MESSAGE_CONTROL2_1_EXTRA(msg_class, type1_in, type2_in, type1_o ut) 308 #define IPC_SYNC_MESSAGE_CONTROL2_1_EXTRA(msg_class, type1_in, type2_in, type1_o ut)
279 #define IPC_SYNC_MESSAGE_CONTROL2_2_EXTRA(msg_class, type1_in, type2_in, type1_o ut, type2_out) 309 #define IPC_SYNC_MESSAGE_CONTROL2_2_EXTRA(msg_class, type1_in, type2_in, type1_o ut, type2_out)
280 #define IPC_SYNC_MESSAGE_CONTROL2_3_EXTRA(msg_class, type1_in, type2_in, type1_o ut, type2_out, type3_out) 310 #define IPC_SYNC_MESSAGE_CONTROL2_3_EXTRA(msg_class, type1_in, type2_in, type1_o ut, type2_out, type3_out)
311 #define IPC_SYNC_MESSAGE_CONTROL2_4_EXTRA(msg_class, type1_in, type2_in, type1_o ut, type2_out, type3_out, type4_out)
281 #define IPC_SYNC_MESSAGE_CONTROL3_1_EXTRA(msg_class, type1_in, type2_in, type3_i n, type1_out) 312 #define IPC_SYNC_MESSAGE_CONTROL3_1_EXTRA(msg_class, type1_in, type2_in, type3_i n, type1_out)
282 #define IPC_SYNC_MESSAGE_CONTROL3_2_EXTRA(msg_class, type1_in, type2_in, type3_i n, type1_out, type2_out) 313 #define IPC_SYNC_MESSAGE_CONTROL3_2_EXTRA(msg_class, type1_in, type2_in, type3_i n, type1_out, type2_out)
283 #define IPC_SYNC_MESSAGE_CONTROL3_3_EXTRA(msg_class, type1_in, type2_in, type3_i n, type1_out, type2_out, type3_out) 314 #define IPC_SYNC_MESSAGE_CONTROL3_3_EXTRA(msg_class, type1_in, type2_in, type3_i n, type1_out, type2_out, type3_out)
284 #define IPC_SYNC_MESSAGE_CONTROL3_4_EXTRA(msg_class, type1_in, type2_in, type3_i n, type1_out, type2_out, type3_out, type4_out) 315 #define IPC_SYNC_MESSAGE_CONTROL3_4_EXTRA(msg_class, type1_in, type2_in, type3_i n, type1_out, type2_out, type3_out, type4_out)
285 #define IPC_SYNC_MESSAGE_CONTROL4_1_EXTRA(msg_class, type1_in, type2_in, type3_i n, type4_in, type1_out) 316 #define IPC_SYNC_MESSAGE_CONTROL4_1_EXTRA(msg_class, type1_in, type2_in, type3_i n, type4_in, type1_out)
286 #define IPC_SYNC_MESSAGE_CONTROL4_2_EXTRA(msg_class, type1_in, type2_in, type3_i n, type4_in, type1_out, type2_out) 317 #define IPC_SYNC_MESSAGE_CONTROL4_2_EXTRA(msg_class, type1_in, type2_in, type3_i n, type4_in, type1_out, type2_out)
287 #define IPC_SYNC_MESSAGE_CONTROL4_3_EXTRA(msg_class, type1_in, type2_in, type3_i n, type4_in, type1_out, type2_out, type3_out) 318 #define IPC_SYNC_MESSAGE_CONTROL4_3_EXTRA(msg_class, type1_in, type2_in, type3_i n, type4_in, type1_out, type2_out, type3_out)
319 #define IPC_SYNC_MESSAGE_CONTROL4_4_EXTRA(msg_class, type1_in, type2_in, type3_i n, type4_in, type1_out, type2_out, type3_out, type4_out)
288 #define IPC_SYNC_MESSAGE_CONTROL5_1_EXTRA(msg_class, type1_in, type2_in, type3_i n, type4_in, type5_in, type1_out) 320 #define IPC_SYNC_MESSAGE_CONTROL5_1_EXTRA(msg_class, type1_in, type2_in, type3_i n, type4_in, type5_in, type1_out)
289 #define IPC_SYNC_MESSAGE_CONTROL5_2_EXTRA(msg_class, type1_in, type2_in, type3_i n, type4_in, type5_in, type1_out, type2_out) 321 #define IPC_SYNC_MESSAGE_CONTROL5_2_EXTRA(msg_class, type1_in, type2_in, type3_i n, type4_in, type5_in, type1_out, type2_out)
290 #define IPC_SYNC_MESSAGE_CONTROL5_3_EXTRA(msg_class, type1_in, type2_in, type3_i n, type4_in, type5_in, type1_out, type2_out, type3_out) 322 #define IPC_SYNC_MESSAGE_CONTROL5_3_EXTRA(msg_class, type1_in, type2_in, type3_i n, type4_in, type5_in, type1_out, type2_out, type3_out)
323 #define IPC_SYNC_MESSAGE_CONTROL5_4_EXTRA(msg_class, type1_in, type2_in, type3_i n, type4_in, type5_in, type1_out, type2_out, type3_out, type4_out)
291 #define IPC_SYNC_MESSAGE_ROUTED0_0_EXTRA(msg_class) 324 #define IPC_SYNC_MESSAGE_ROUTED0_0_EXTRA(msg_class)
292 #define IPC_SYNC_MESSAGE_ROUTED0_1_EXTRA(msg_class, type1_out) 325 #define IPC_SYNC_MESSAGE_ROUTED0_1_EXTRA(msg_class, type1_out)
293 #define IPC_SYNC_MESSAGE_ROUTED0_2_EXTRA(msg_class, type1_out, type2_out) 326 #define IPC_SYNC_MESSAGE_ROUTED0_2_EXTRA(msg_class, type1_out, type2_out)
294 #define IPC_SYNC_MESSAGE_ROUTED0_3_EXTRA(msg_class, type1_out, type2_out, type3_ out) 327 #define IPC_SYNC_MESSAGE_ROUTED0_3_EXTRA(msg_class, type1_out, type2_out, type3_ out)
328 #define IPC_SYNC_MESSAGE_ROUTED0_4_EXTRA(msg_class, type1_out, type2_out, type3_ out, type4_out)
295 #define IPC_SYNC_MESSAGE_ROUTED1_0_EXTRA(msg_class, type1_in) 329 #define IPC_SYNC_MESSAGE_ROUTED1_0_EXTRA(msg_class, type1_in)
296 #define IPC_SYNC_MESSAGE_ROUTED1_1_EXTRA(msg_class, type1_in, type1_out) 330 #define IPC_SYNC_MESSAGE_ROUTED1_1_EXTRA(msg_class, type1_in, type1_out)
297 #define IPC_SYNC_MESSAGE_ROUTED1_2_EXTRA(msg_class, type1_in, type1_out, type2_o ut) 331 #define IPC_SYNC_MESSAGE_ROUTED1_2_EXTRA(msg_class, type1_in, type1_out, type2_o ut)
298 #define IPC_SYNC_MESSAGE_ROUTED1_3_EXTRA(msg_class, type1_in, type1_out, type2_o ut, type3_out) 332 #define IPC_SYNC_MESSAGE_ROUTED1_3_EXTRA(msg_class, type1_in, type1_out, type2_o ut, type3_out)
299 #define IPC_SYNC_MESSAGE_ROUTED1_4_EXTRA(msg_class, type1_in, type1_out, type2_o ut, type3_out, type4_out) 333 #define IPC_SYNC_MESSAGE_ROUTED1_4_EXTRA(msg_class, type1_in, type1_out, type2_o ut, type3_out, type4_out)
300 #define IPC_SYNC_MESSAGE_ROUTED2_0_EXTRA(msg_class, type1_in, type2_in) 334 #define IPC_SYNC_MESSAGE_ROUTED2_0_EXTRA(msg_class, type1_in, type2_in)
301 #define IPC_SYNC_MESSAGE_ROUTED2_1_EXTRA(msg_class, type1_in, type2_in, type1_ou t) 335 #define IPC_SYNC_MESSAGE_ROUTED2_1_EXTRA(msg_class, type1_in, type2_in, type1_ou t)
302 #define IPC_SYNC_MESSAGE_ROUTED2_2_EXTRA(msg_class, type1_in, type2_in, type1_ou t, type2_out) 336 #define IPC_SYNC_MESSAGE_ROUTED2_2_EXTRA(msg_class, type1_in, type2_in, type1_ou t, type2_out)
303 #define IPC_SYNC_MESSAGE_ROUTED2_3_EXTRA(msg_class, type1_in, type2_in, type1_ou t, type2_out, type3_out) 337 #define IPC_SYNC_MESSAGE_ROUTED2_3_EXTRA(msg_class, type1_in, type2_in, type1_ou t, type2_out, type3_out)
338 #define IPC_SYNC_MESSAGE_ROUTED2_4_EXTRA(msg_class, type1_in, type2_in, type1_ou t, type2_out, type3_out, type4_out)
304 #define IPC_SYNC_MESSAGE_ROUTED3_0_EXTRA(msg_class, type1_in, type2_in, type3_in ) 339 #define IPC_SYNC_MESSAGE_ROUTED3_0_EXTRA(msg_class, type1_in, type2_in, type3_in )
305 #define IPC_SYNC_MESSAGE_ROUTED3_1_EXTRA(msg_class, type1_in, type2_in, type3_in , type1_out) 340 #define IPC_SYNC_MESSAGE_ROUTED3_1_EXTRA(msg_class, type1_in, type2_in, type3_in , type1_out)
306 #define IPC_SYNC_MESSAGE_ROUTED3_2_EXTRA(msg_class, type1_in, type2_in, type3_in , type1_out, type2_out) 341 #define IPC_SYNC_MESSAGE_ROUTED3_2_EXTRA(msg_class, type1_in, type2_in, type3_in , type1_out, type2_out)
307 #define IPC_SYNC_MESSAGE_ROUTED3_3_EXTRA(msg_class, type1_in, type2_in, type3_in , type1_out, type2_out, type3_out) 342 #define IPC_SYNC_MESSAGE_ROUTED3_3_EXTRA(msg_class, type1_in, type2_in, type3_in , type1_out, type2_out, type3_out)
308 #define IPC_SYNC_MESSAGE_ROUTED3_4_EXTRA(msg_class, type1_in, type2_in, type3_in , type1_out, type2_out, type3_out, type4_out) 343 #define IPC_SYNC_MESSAGE_ROUTED3_4_EXTRA(msg_class, type1_in, type2_in, type3_in , type1_out, type2_out, type3_out, type4_out)
309 #define IPC_SYNC_MESSAGE_ROUTED4_0_EXTRA(msg_class, type1_in, type2_in, type3_in , type4_in) 344 #define IPC_SYNC_MESSAGE_ROUTED4_0_EXTRA(msg_class, type1_in, type2_in, type3_in , type4_in)
310 #define IPC_SYNC_MESSAGE_ROUTED4_1_EXTRA(msg_class, type1_in, type2_in, type3_in , type4_in, type1_out) 345 #define IPC_SYNC_MESSAGE_ROUTED4_1_EXTRA(msg_class, type1_in, type2_in, type3_in , type4_in, type1_out)
311 #define IPC_SYNC_MESSAGE_ROUTED4_2_EXTRA(msg_class, type1_in, type2_in, type3_in , type4_in, type1_out, type2_out) 346 #define IPC_SYNC_MESSAGE_ROUTED4_2_EXTRA(msg_class, type1_in, type2_in, type3_in , type4_in, type1_out, type2_out)
312 #define IPC_SYNC_MESSAGE_ROUTED4_3_EXTRA(msg_class, type1_in, type2_in, type3_in , type4_in, type1_out, type2_out, type3_out) 347 #define IPC_SYNC_MESSAGE_ROUTED4_3_EXTRA(msg_class, type1_in, type2_in, type3_in , type4_in, type1_out, type2_out, type3_out)
348 #define IPC_SYNC_MESSAGE_ROUTED4_4_EXTRA(msg_class, type1_in, type2_in, type3_in , type4_in, type1_out, type2_out, type3_out, type4_out)
313 #define IPC_SYNC_MESSAGE_ROUTED5_0_EXTRA(msg_class, type1_in, type2_in, type3_in , type4_in, type5_in) 349 #define IPC_SYNC_MESSAGE_ROUTED5_0_EXTRA(msg_class, type1_in, type2_in, type3_in , type4_in, type5_in)
314 #define IPC_SYNC_MESSAGE_ROUTED5_1_EXTRA(msg_class, type1_in, type2_in, type3_in , type4_in, type5_in, type1_out) 350 #define IPC_SYNC_MESSAGE_ROUTED5_1_EXTRA(msg_class, type1_in, type2_in, type3_in , type4_in, type5_in, type1_out)
315 #define IPC_SYNC_MESSAGE_ROUTED5_2_EXTRA(msg_class, type1_in, type2_in, type3_in , type4_in, type5_in, type1_out, type2_out) 351 #define IPC_SYNC_MESSAGE_ROUTED5_2_EXTRA(msg_class, type1_in, type2_in, type3_in , type4_in, type5_in, type1_out, type2_out)
316 #define IPC_SYNC_MESSAGE_ROUTED5_3_EXTRA(msg_class, type1_in, type2_in, type3_in , type4_in, type5_in, type1_out, type2_out, type3_out) 352 #define IPC_SYNC_MESSAGE_ROUTED5_3_EXTRA(msg_class, type1_in, type2_in, type3_in , type4_in, type5_in, type1_out, type2_out, type3_out)
353 #define IPC_SYNC_MESSAGE_ROUTED5_4_EXTRA(msg_class, type1_in, type2_in, type3_in , type4_in, type5_in, type1_out, type2_out, type4_out)
317 354
318 #endif 355 #endif
319 356
320 // Note: we currently use __LINE__ to give unique IDs to messages within a file. 357 // Note: we currently use __LINE__ to give unique IDs to messages within a file.
321 // They're globally unique since each file defines its own IPC_MESSAGE_START. 358 // They're globally unique since each file defines its own IPC_MESSAGE_START.
322 // Ideally, we wouldn't use line numbers, but instead use the __COUNTER__ macro, 359 // Ideally, we wouldn't use line numbers, but instead use the __COUNTER__ macro,
323 // but it needs gcc 4.3 and xcode doesn't use it yet. When that happens, switch 360 // but it needs gcc 4.3 and xcode doesn't use it yet. When that happens, switch
324 // to it. 361 // to it.
325 362
326 #define IPC_MESSAGE_CONTROL0(msg_class) \ 363 #define IPC_MESSAGE_CONTROL0(msg_class) \
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
493 public IPC::MessageWithReply<Tuple0, \ 530 public IPC::MessageWithReply<Tuple0, \
494 Tuple3<type1_out&, type2_out&, type3_out&> >{ \ 531 Tuple3<type1_out&, type2_out&, type3_out&> >{ \
495 public: \ 532 public: \
496 enum { ID = (IPC_MESSAGE_START << 16) + __LINE__ }; \ 533 enum { ID = (IPC_MESSAGE_START << 16) + __LINE__ }; \
497 msg_class(type1_out* arg1, type2_out* arg2, type3_out* arg3); \ 534 msg_class(type1_out* arg1, type2_out* arg2, type3_out* arg3); \
498 ~msg_class(); \ 535 ~msg_class(); \
499 static void Log(std::string* name, const Message* msg, std::string* l); \ 536 static void Log(std::string* name, const Message* msg, std::string* l); \
500 }; \ 537 }; \
501 IPC_SYNC_MESSAGE_CONTROL0_3_EXTRA(msg_class, type1_out, type2_out, type3_out) 538 IPC_SYNC_MESSAGE_CONTROL0_3_EXTRA(msg_class, type1_out, type2_out, type3_out)
502 539
540 #define IPC_SYNC_MESSAGE_CONTROL0_4(msg_class, type1_out, type2_out, type3_out, type4_out) \
541 class msg_class : \
542 public IPC::MessageWithReply<Tuple0, \
543 Tuple4<type1_out&, type2_out&, type3_out&, type4_out&> >{ \
544 public: \
545 enum { ID = (IPC_MESSAGE_START << 16) + __LINE__ }; \
546 msg_class(type1_out* arg1, type2_out* arg2, type3_out* arg3, type4_out* arg4 ); \
547 ~msg_class(); \
548 static void Log(std::string* name, const Message* msg, std::string* l); \
549 }; \
550 IPC_SYNC_MESSAGE_CONTROL0_4_EXTRA(msg_class, type1_out, type2_out, type3_out, type4_out)
551
503 #define IPC_SYNC_MESSAGE_CONTROL1_0(msg_class, type1_in) \ 552 #define IPC_SYNC_MESSAGE_CONTROL1_0(msg_class, type1_in) \
504 class msg_class : \ 553 class msg_class : \
505 public IPC::MessageWithReply<Tuple1<type1_in>, Tuple0 > { \ 554 public IPC::MessageWithReply<Tuple1<type1_in>, Tuple0 > { \
506 public: \ 555 public: \
507 enum { ID = (IPC_MESSAGE_START << 16) + __LINE__ }; \ 556 enum { ID = (IPC_MESSAGE_START << 16) + __LINE__ }; \
508 msg_class(const type1_in& arg1); \ 557 msg_class(const type1_in& arg1); \
509 ~msg_class(); \ 558 ~msg_class(); \
510 static void Log(std::string* name, const Message* msg, std::string* l); \ 559 static void Log(std::string* name, const Message* msg, std::string* l); \
511 }; \ 560 }; \
512 IPC_SYNC_MESSAGE_CONTROL1_0_EXTRA(msg_class, type1_in) 561 IPC_SYNC_MESSAGE_CONTROL1_0_EXTRA(msg_class, type1_in)
(...skipping 25 matching lines...) Expand all
538 public IPC::MessageWithReply<Tuple1<type1_in>, \ 587 public IPC::MessageWithReply<Tuple1<type1_in>, \
539 Tuple3<type1_out&, type2_out&, type3_out&> >{ \ 588 Tuple3<type1_out&, type2_out&, type3_out&> >{ \
540 public: \ 589 public: \
541 enum { ID = (IPC_MESSAGE_START << 16) + __LINE__ }; \ 590 enum { ID = (IPC_MESSAGE_START << 16) + __LINE__ }; \
542 msg_class(const type1_in& arg1, type1_out* arg2, type2_out* arg3, type3_out* arg4); \ 591 msg_class(const type1_in& arg1, type1_out* arg2, type2_out* arg3, type3_out* arg4); \
543 ~msg_class(); \ 592 ~msg_class(); \
544 static void Log(std::string* name, const Message* msg, std::string* l); \ 593 static void Log(std::string* name, const Message* msg, std::string* l); \
545 }; \ 594 }; \
546 IPC_SYNC_MESSAGE_CONTROL1_3_EXTRA(msg_class, type1_in, type1_out, type2_out, t ype3_out) 595 IPC_SYNC_MESSAGE_CONTROL1_3_EXTRA(msg_class, type1_in, type1_out, type2_out, t ype3_out)
547 596
597 #define IPC_SYNC_MESSAGE_CONTROL1_4(msg_class, type1_in, type1_out, type2_out, t ype3_out, type4_out) \
598 class msg_class : \
599 public IPC::MessageWithReply<Tuple1<type1_in>, \
600 Tuple4<type1_out&, type2_out&, type3_out&, type4_out&> >{ \
601 public: \
602 enum { ID = (IPC_MESSAGE_START << 16) + __LINE__ }; \
603 msg_class(const type1_in& arg1, type1_out* arg2, type2_out* arg3, type3_out* arg4, type4_out* arg5); \
604 ~msg_class(); \
605 static void Log(std::string* name, const Message* msg, std::string* l); \
606 }; \
607 IPC_SYNC_MESSAGE_CONTROL1_4_EXTRA(msg_class, type1_in, type1_out, type2_out, t ype3_out, type4_out)
608
548 #define IPC_SYNC_MESSAGE_CONTROL2_0(msg_class, type1_in, type2_in) \ 609 #define IPC_SYNC_MESSAGE_CONTROL2_0(msg_class, type1_in, type2_in) \
549 class msg_class : \ 610 class msg_class : \
550 public IPC::MessageWithReply<Tuple2<type1_in, type2_in>, Tuple0 > { \ 611 public IPC::MessageWithReply<Tuple2<type1_in, type2_in>, Tuple0 > { \
551 public: \ 612 public: \
552 enum { ID = (IPC_MESSAGE_START << 16) + __LINE__ }; \ 613 enum { ID = (IPC_MESSAGE_START << 16) + __LINE__ }; \
553 msg_class(const type1_in& arg1, const type2_in& arg2); \ 614 msg_class(const type1_in& arg1, const type2_in& arg2); \
554 ~msg_class(); \ 615 ~msg_class(); \
555 static void Log(std::string* name, const Message* msg, std::string* l); \ 616 static void Log(std::string* name, const Message* msg, std::string* l); \
556 }; \ 617 }; \
557 IPC_SYNC_MESSAGE_CONTROL2_0_EXTRA(msg_class, type1_in, type2_in) 618 IPC_SYNC_MESSAGE_CONTROL2_0_EXTRA(msg_class, type1_in, type2_in)
(...skipping 26 matching lines...) Expand all
584 public IPC::MessageWithReply<Tuple2<type1_in, type2_in>, \ 645 public IPC::MessageWithReply<Tuple2<type1_in, type2_in>, \
585 Tuple3<type1_out&, type2_out&, type3_out&> > { \ 646 Tuple3<type1_out&, type2_out&, type3_out&> > { \
586 public: \ 647 public: \
587 enum { ID = (IPC_MESSAGE_START << 16) + __LINE__ }; \ 648 enum { ID = (IPC_MESSAGE_START << 16) + __LINE__ }; \
588 msg_class(const type1_in& arg1, const type2_in& arg2, type1_out* arg3, type2 _out* arg4, type3_out* arg5); \ 649 msg_class(const type1_in& arg1, const type2_in& arg2, type1_out* arg3, type2 _out* arg4, type3_out* arg5); \
589 ~msg_class(); \ 650 ~msg_class(); \
590 static void Log(std::string* name, const Message* msg, std::string* l); \ 651 static void Log(std::string* name, const Message* msg, std::string* l); \
591 }; \ 652 }; \
592 IPC_SYNC_MESSAGE_CONTROL2_3_EXTRA(msg_class, type1_in, type2_in, type1_out, ty pe2_out, type3_out) 653 IPC_SYNC_MESSAGE_CONTROL2_3_EXTRA(msg_class, type1_in, type2_in, type1_out, ty pe2_out, type3_out)
593 654
655 #define IPC_SYNC_MESSAGE_CONTROL2_4(msg_class, type1_in, type2_in, type1_out, ty pe2_out, type3_out, type4_out) \
656 class msg_class : \
657 public IPC::MessageWithReply<Tuple2<type1_in, type2_in>, \
658 Tuple4<type1_out&, type2_out&, type3_out&, type4_out&> > { \
659 public: \
660 enum { ID = (IPC_MESSAGE_START << 16) + __LINE__ }; \
661 msg_class(const type1_in& arg1, const type2_in& arg2, type1_out* arg3, type2 _out* arg4, type3_out* arg5, type4_out* arg6); \
662 ~msg_class(); \
663 static void Log(std::string* name, const Message* msg, std::string* l); \
664 }; \
665 IPC_SYNC_MESSAGE_CONTROL2_4_EXTRA(msg_class, type1_in, type2_in, type1_out, ty pe2_out, type3_out, type4_out)
666
594 #define IPC_SYNC_MESSAGE_CONTROL3_1(msg_class, type1_in, type2_in, type3_in, typ e1_out) \ 667 #define IPC_SYNC_MESSAGE_CONTROL3_1(msg_class, type1_in, type2_in, type3_in, typ e1_out) \
595 class msg_class : \ 668 class msg_class : \
596 public IPC::MessageWithReply<Tuple3<type1_in, type2_in, type3_in>, \ 669 public IPC::MessageWithReply<Tuple3<type1_in, type2_in, type3_in>, \
597 Tuple1<type1_out&> > { \ 670 Tuple1<type1_out&> > { \
598 public: \ 671 public: \
599 enum { ID = (IPC_MESSAGE_START << 16) + __LINE__ }; \ 672 enum { ID = (IPC_MESSAGE_START << 16) + __LINE__ }; \
600 msg_class(const type1_in& arg1, const type2_in& arg2, const type3_in& arg3, type1_out* arg4); \ 673 msg_class(const type1_in& arg1, const type2_in& arg2, const type3_in& arg3, type1_out* arg4); \
601 ~msg_class(); \ 674 ~msg_class(); \
602 static void Log(std::string* name, const Message* msg, std::string* l); \ 675 static void Log(std::string* name, const Message* msg, std::string* l); \
603 }; \ 676 }; \
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
668 public IPC::MessageWithReply<Tuple4<type1_in, type2_in, type3_in, type4_in >, \ 741 public IPC::MessageWithReply<Tuple4<type1_in, type2_in, type3_in, type4_in >, \
669 Tuple3<type1_out&, type2_out&, type3_out&> > { \ 742 Tuple3<type1_out&, type2_out&, type3_out&> > { \
670 public: \ 743 public: \
671 enum { ID = (IPC_MESSAGE_START << 16) + __LINE__ }; \ 744 enum { ID = (IPC_MESSAGE_START << 16) + __LINE__ }; \
672 msg_class(const type1_in& arg1, const type2_in& arg2, const type3_in& arg3, const type4_in& arg4, type1_out* arg5, type2_out* arg6, type3_out* arg7); \ 745 msg_class(const type1_in& arg1, const type2_in& arg2, const type3_in& arg3, const type4_in& arg4, type1_out* arg5, type2_out* arg6, type3_out* arg7); \
673 ~msg_class(); \ 746 ~msg_class(); \
674 static void Log(std::string* name, const Message* msg, std::string* l); \ 747 static void Log(std::string* name, const Message* msg, std::string* l); \
675 }; \ 748 }; \
676 IPC_SYNC_MESSAGE_CONTROL4_3_EXTRA(msg_class, type1_in, type2_in, type3_in, typ e4_in, type1_out, type2_out, type3_out) 749 IPC_SYNC_MESSAGE_CONTROL4_3_EXTRA(msg_class, type1_in, type2_in, type3_in, typ e4_in, type1_out, type2_out, type3_out)
677 750
751 #define IPC_SYNC_MESSAGE_CONTROL4_4(msg_class, type1_in, type2_in, type3_in, typ e4_in, type1_out, type2_out, type3_out, type4_out) \
752 class msg_class : \
753 public IPC::MessageWithReply<Tuple4<type1_in, type2_in, type3_in, type4_in >, \
754 Tuple4<type1_out&, type2_out&, type3_out&, type4_out&> > { \
755 public: \
756 enum { ID = (IPC_MESSAGE_START << 16) + __LINE__ }; \
757 msg_class(const type1_in& arg1, const type2_in& arg2, const type3_in& arg3, const type4_in& arg4, type1_out* arg5, type2_out* arg6, type3_out* arg7, type4_o ut* arg8); \
758 ~msg_class(); \
759 static void Log(std::string* name, const Message* msg, std::string* l); \
760 }; \
761 IPC_SYNC_MESSAGE_CONTROL4_4_EXTRA(msg_class, type1_in, type2_in, type3_in, typ e4_in, type1_out, type2_out, type3_out, type4_out)
762
678 #define IPC_SYNC_MESSAGE_CONTROL5_1(msg_class, type1_in, type2_in, type3_in, typ e4_in, type5_in, type1_out) \ 763 #define IPC_SYNC_MESSAGE_CONTROL5_1(msg_class, type1_in, type2_in, type3_in, typ e4_in, type5_in, type1_out) \
679 class msg_class : \ 764 class msg_class : \
680 public IPC::MessageWithReply<Tuple5<type1_in, type2_in, type3_in, type4_in , type5_in>, \ 765 public IPC::MessageWithReply<Tuple5<type1_in, type2_in, type3_in, type4_in , type5_in>, \
681 Tuple1<type1_out&> > { \ 766 Tuple1<type1_out&> > { \
682 public: \ 767 public: \
683 enum { ID = (IPC_MESSAGE_START << 16) + __LINE__ }; \ 768 enum { ID = (IPC_MESSAGE_START << 16) + __LINE__ }; \
684 msg_class(const type1_in& arg1, const type2_in& arg2, const type3_in& arg3, const type4_in& arg4, const type5_in& arg5, type1_out* arg6); \ 769 msg_class(const type1_in& arg1, const type2_in& arg2, const type3_in& arg3, const type4_in& arg4, const type5_in& arg5, type1_out* arg6); \
685 ~msg_class(); \ 770 ~msg_class(); \
686 static void Log(std::string* name, const Message* msg, std::string* l); \ 771 static void Log(std::string* name, const Message* msg, std::string* l); \
687 }; \ 772 }; \
(...skipping 14 matching lines...) Expand all
702 #define IPC_SYNC_MESSAGE_CONTROL5_3(msg_class, type1_in, type2_in, type3_in, typ e4_in, type5_in, type1_out, type2_out, type3_out) \ 787 #define IPC_SYNC_MESSAGE_CONTROL5_3(msg_class, type1_in, type2_in, type3_in, typ e4_in, type5_in, type1_out, type2_out, type3_out) \
703 class msg_class : \ 788 class msg_class : \
704 public IPC::MessageWithReply<Tuple5<type1_in, type2_in, type3_in, type4_in , type5_in>, \ 789 public IPC::MessageWithReply<Tuple5<type1_in, type2_in, type3_in, type4_in , type5_in>, \
705 Tuple3<type1_out&, type2_out&, type3_out&> > { \ 790 Tuple3<type1_out&, type2_out&, type3_out&> > { \
706 public: \ 791 public: \
707 enum { ID = (IPC_MESSAGE_START << 16) + __LINE__ }; \ 792 enum { ID = (IPC_MESSAGE_START << 16) + __LINE__ }; \
708 msg_class(const type1_in& arg1, const type2_in& arg2, const type3_in& arg3, const type4_in& arg4, const type5_in& arg5, type1_out* arg6, type2_out* arg7, ty pe3_out* arg8); \ 793 msg_class(const type1_in& arg1, const type2_in& arg2, const type3_in& arg3, const type4_in& arg4, const type5_in& arg5, type1_out* arg6, type2_out* arg7, ty pe3_out* arg8); \
709 ~msg_class(); \ 794 ~msg_class(); \
710 static void Log(std::string* name, const Message* msg, std::string* l); \ 795 static void Log(std::string* name, const Message* msg, std::string* l); \
711 }; \ 796 }; \
712 IPC_SYNC_MESSAGE_CONTROL4_2_EXTRA(msg_class, type1_in, type2_in, type3_in, typ e4_in, type5_in, type1_out, type2_out, type3_out) 797 IPC_SYNC_MESSAGE_CONTROL5_3_EXTRA(msg_class, type1_in, type2_in, type3_in, typ e4_in, type5_in, type1_out, type2_out, type3_out)
798
799 #define IPC_SYNC_MESSAGE_CONTROL5_4(msg_class, type1_in, type2_in, type3_in, typ e4_in, type5_in, type1_out, type2_out, type3_out, type4_out) \
800 class msg_class : \
801 public IPC::MessageWithReply<Tuple5<type1_in, type2_in, type3_in, type4_in , type5_in>, \
802 Tuple4<type1_out&, type2_out&, type3_out&, type4_out&> > { \
803 public: \
804 enum { ID = (IPC_MESSAGE_START << 16) + __LINE__ }; \
805 msg_class(const type1_in& arg1, const type2_in& arg2, const type3_in& arg3, const type4_in& arg4, const type5_in& arg5, type1_out* arg6, type2_out* arg7, ty pe3_out* arg8, type4_out* arg9); \
806 ~msg_class(); \
807 static void Log(std::string* name, const Message* msg, std::string* l); \
808 }; \
809 IPC_SYNC_MESSAGE_CONTROL5_4_EXTRA(msg_class, type1_in, type2_in, type3_in, typ e4_in, type5_in, type1_out, type2_out, type3_out, type4_out)
713 810
714 #define IPC_SYNC_MESSAGE_ROUTED0_0(msg_class) \ 811 #define IPC_SYNC_MESSAGE_ROUTED0_0(msg_class) \
715 class msg_class : public IPC::MessageWithReply<Tuple0, Tuple0 > { \ 812 class msg_class : public IPC::MessageWithReply<Tuple0, Tuple0 > { \
716 public: \ 813 public: \
717 enum { ID = (IPC_MESSAGE_START << 16) + __LINE__ }; \ 814 enum { ID = (IPC_MESSAGE_START << 16) + __LINE__ }; \
718 msg_class(int routing_id); \ 815 msg_class(int routing_id); \
719 ~msg_class(); \ 816 ~msg_class(); \
720 static void Log(std::string* name, const Message* msg, std::string* l); \ 817 static void Log(std::string* name, const Message* msg, std::string* l); \
721 }; \ 818 }; \
722 IPC_SYNC_MESSAGE_ROUTED0_0_EXTRA(msg_class) 819 IPC_SYNC_MESSAGE_ROUTED0_0_EXTRA(msg_class)
(...skipping 24 matching lines...) Expand all
747 public IPC::MessageWithReply<Tuple0, \ 844 public IPC::MessageWithReply<Tuple0, \
748 Tuple3<type1_out&, type2_out&, type3_out&> >{ \ 845 Tuple3<type1_out&, type2_out&, type3_out&> >{ \
749 public: \ 846 public: \
750 enum { ID = (IPC_MESSAGE_START << 16) + __LINE__ }; \ 847 enum { ID = (IPC_MESSAGE_START << 16) + __LINE__ }; \
751 msg_class(int routing_id, type1_out* arg1, type2_out* arg2, type3_out* arg3) ; \ 848 msg_class(int routing_id, type1_out* arg1, type2_out* arg2, type3_out* arg3) ; \
752 ~msg_class(); \ 849 ~msg_class(); \
753 static void Log(std::string* name, const Message* msg, std::string* l); \ 850 static void Log(std::string* name, const Message* msg, std::string* l); \
754 }; \ 851 }; \
755 IPC_SYNC_MESSAGE_ROUTED0_3_EXTRA(msg_class, type1_out, type2_out, type3_out) 852 IPC_SYNC_MESSAGE_ROUTED0_3_EXTRA(msg_class, type1_out, type2_out, type3_out)
756 853
854 #define IPC_SYNC_MESSAGE_ROUTED0_4(msg_class, type1_out, type2_out, type3_out, t ype4_out) \
855 class msg_class : \
856 public IPC::MessageWithReply<Tuple0, \
857 Tuple4<type1_out&, type2_out&, type3_out&, type4_out&> >{ \
858 public: \
859 enum { ID = (IPC_MESSAGE_START << 16) + __LINE__ }; \
860 msg_class(int routing_id, type1_out* arg1, type2_out* arg2, type3_out* arg3, type4_out* arg4); \
861 ~msg_class(); \
862 static void Log(std::string* name, const Message* msg, std::string* l); \
863 }; \
864 IPC_SYNC_MESSAGE_ROUTED0_4_EXTRA(msg_class, type1_out, type2_out, type3_out, t ype4_out)
865
757 #define IPC_SYNC_MESSAGE_ROUTED1_0(msg_class, type1_in) \ 866 #define IPC_SYNC_MESSAGE_ROUTED1_0(msg_class, type1_in) \
758 class msg_class : \ 867 class msg_class : \
759 public IPC::MessageWithReply<Tuple1<type1_in>, Tuple0 > { \ 868 public IPC::MessageWithReply<Tuple1<type1_in>, Tuple0 > { \
760 public: \ 869 public: \
761 enum { ID = (IPC_MESSAGE_START << 16) + __LINE__ }; \ 870 enum { ID = (IPC_MESSAGE_START << 16) + __LINE__ }; \
762 msg_class(int routing_id, const type1_in& arg1); \ 871 msg_class(int routing_id, const type1_in& arg1); \
763 ~msg_class(); \ 872 ~msg_class(); \
764 static void Log(std::string* name, const Message* msg, std::string* l); \ 873 static void Log(std::string* name, const Message* msg, std::string* l); \
765 }; \ 874 }; \
766 IPC_SYNC_MESSAGE_ROUTED1_0_EXTRA(msg_class, type1_in) 875 IPC_SYNC_MESSAGE_ROUTED1_0_EXTRA(msg_class, type1_in)
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
850 public IPC::MessageWithReply<Tuple2<type1_in, type2_in>, \ 959 public IPC::MessageWithReply<Tuple2<type1_in, type2_in>, \
851 Tuple3<type1_out&, type2_out&, type3_out&> > { \ 960 Tuple3<type1_out&, type2_out&, type3_out&> > { \
852 public: \ 961 public: \
853 enum { ID = (IPC_MESSAGE_START << 16) + __LINE__ }; \ 962 enum { ID = (IPC_MESSAGE_START << 16) + __LINE__ }; \
854 msg_class(int routing_id, const type1_in& arg1, const type2_in& arg2, type1_ out* arg3, type2_out* arg4, type3_out* arg5); \ 963 msg_class(int routing_id, const type1_in& arg1, const type2_in& arg2, type1_ out* arg3, type2_out* arg4, type3_out* arg5); \
855 ~msg_class(); \ 964 ~msg_class(); \
856 static void Log(std::string* name, const Message* msg, std::string* l); \ 965 static void Log(std::string* name, const Message* msg, std::string* l); \
857 }; \ 966 }; \
858 IPC_SYNC_MESSAGE_ROUTED2_3_EXTRA(msg_class, type1_in, type2_in, type1_out, typ e2_out, type3_out) 967 IPC_SYNC_MESSAGE_ROUTED2_3_EXTRA(msg_class, type1_in, type2_in, type1_out, typ e2_out, type3_out)
859 968
969 #define IPC_SYNC_MESSAGE_ROUTED2_4(msg_class, type1_in, type2_in, type1_out, typ e2_out, type3_out, type4_out) \
970 class msg_class : \
971 public IPC::MessageWithReply<Tuple2<type1_in, type2_in>, \
972 Tuple4<type1_out&, type2_out&, type3_out&, type4_out&> > { \
973 public: \
974 enum { ID = (IPC_MESSAGE_START << 16) + __LINE__ }; \
975 msg_class(int routing_id, const type1_in& arg1, const type2_in& arg2, type1_ out* arg3, type2_out* arg4, type3_out* arg5, type4_out* arg6); \
976 ~msg_class(); \
977 static void Log(std::string* name, const Message* msg, std::string* l); \
978 }; \
979 IPC_SYNC_MESSAGE_ROUTED2_4_EXTRA(msg_class, type1_in, type2_in, type1_out, typ e2_out, type3_out, type4_out)
980
860 #define IPC_SYNC_MESSAGE_ROUTED3_0(msg_class, type1_in, type2_in, type3_in) \ 981 #define IPC_SYNC_MESSAGE_ROUTED3_0(msg_class, type1_in, type2_in, type3_in) \
861 class msg_class : \ 982 class msg_class : \
862 public IPC::MessageWithReply<Tuple3<type1_in, type2_in, type3_in>, Tuple0 > { \ 983 public IPC::MessageWithReply<Tuple3<type1_in, type2_in, type3_in>, Tuple0 > { \
863 public: \ 984 public: \
864 enum { ID = (IPC_MESSAGE_START << 16) + __LINE__ }; \ 985 enum { ID = (IPC_MESSAGE_START << 16) + __LINE__ }; \
865 msg_class(int routing_id, const type1_in& arg1, const type2_in& arg2, const type3_in& arg3); \ 986 msg_class(int routing_id, const type1_in& arg1, const type2_in& arg2, const type3_in& arg3); \
866 ~msg_class(); \ 987 ~msg_class(); \
867 static void Log(std::string* name, const Message* msg, std::string* l); \ 988 static void Log(std::string* name, const Message* msg, std::string* l); \
868 }; \ 989 }; \
869 IPC_SYNC_MESSAGE_ROUTED3_0_EXTRA(msg_class, type1_in, type2_in, type3_in) 990 IPC_SYNC_MESSAGE_ROUTED3_0_EXTRA(msg_class, type1_in, type2_in, type3_in)
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
957 public IPC::MessageWithReply<Tuple4<type1_in, type2_in, type3_in, type4_in >, \ 1078 public IPC::MessageWithReply<Tuple4<type1_in, type2_in, type3_in, type4_in >, \
958 Tuple3<type1_out&, type2_out&, type3_out&> > { \ 1079 Tuple3<type1_out&, type2_out&, type3_out&> > { \
959 public: \ 1080 public: \
960 enum { ID = (IPC_MESSAGE_START << 16) + __LINE__ }; \ 1081 enum { ID = (IPC_MESSAGE_START << 16) + __LINE__ }; \
961 msg_class(int routing_id, const type1_in& arg1, const type2_in& arg2, const type3_in& arg3, const type4_in& arg4, type1_out* arg5, type2_out* arg6, type3_ou t* arg7); \ 1082 msg_class(int routing_id, const type1_in& arg1, const type2_in& arg2, const type3_in& arg3, const type4_in& arg4, type1_out* arg5, type2_out* arg6, type3_ou t* arg7); \
962 ~msg_class(); \ 1083 ~msg_class(); \
963 static void Log(std::string* name, const Message* msg, std::string* l); \ 1084 static void Log(std::string* name, const Message* msg, std::string* l); \
964 }; \ 1085 }; \
965 IPC_SYNC_MESSAGE_ROUTED4_3_EXTRA(msg_class, type1_in, type2_in, type3_in, type 4_in, type1_out, type2_out, type3_out) 1086 IPC_SYNC_MESSAGE_ROUTED4_3_EXTRA(msg_class, type1_in, type2_in, type3_in, type 4_in, type1_out, type2_out, type3_out)
966 1087
1088 #define IPC_SYNC_MESSAGE_ROUTED4_4(msg_class, type1_in, type2_in, type3_in, type 4_in, type1_out, type2_out, type3_out, type4_out) \
1089 class msg_class : \
1090 public IPC::MessageWithReply<Tuple4<type1_in, type2_in, type3_in, type4_in >, \
1091 Tuple4<type1_out&, type2_out&, type3_out&, type4_out&> > { \
1092 public: \
1093 enum { ID = (IPC_MESSAGE_START << 16) + __LINE__ }; \
1094 msg_class(int routing_id, const type1_in& arg1, const type2_in& arg2, const type3_in& arg3, const type4_in& arg4, type1_out* arg5, type2_out* arg6, type3_ou t* arg7, type4_out* arg8); \
1095 ~msg_class(); \
1096 static void Log(std::string* name, const Message* msg, std::string* l); \
1097 }; \
1098 IPC_SYNC_MESSAGE_ROUTED4_4_EXTRA(msg_class, type1_in, type2_in, type3_in, type 4_in, type1_out, type2_out, type3_out, type4_out)
1099
967 #define IPC_SYNC_MESSAGE_ROUTED5_0(msg_class, type1_in, type2_in, type3_in, type 4_in, type5_in) \ 1100 #define IPC_SYNC_MESSAGE_ROUTED5_0(msg_class, type1_in, type2_in, type3_in, type 4_in, type5_in) \
968 class msg_class : \ 1101 class msg_class : \
969 public IPC::MessageWithReply<Tuple5<type1_in, type2_in, type3_in, type4_in , type5_in>, \ 1102 public IPC::MessageWithReply<Tuple5<type1_in, type2_in, type3_in, type4_in , type5_in>, \
970 Tuple0 > { \ 1103 Tuple0 > { \
971 public: \ 1104 public: \
972 enum { ID = (IPC_MESSAGE_START << 16) + __LINE__ }; \ 1105 enum { ID = (IPC_MESSAGE_START << 16) + __LINE__ }; \
973 msg_class(int routing_id, const type1_in& arg1, const type2_in& arg2, const type3_in& arg3, const type4_in& arg4, const type5_in& arg5); \ 1106 msg_class(int routing_id, const type1_in& arg1, const type2_in& arg2, const type3_in& arg3, const type4_in& arg4, const type5_in& arg5); \
974 ~msg_class(); \ 1107 ~msg_class(); \
975 static void Log(std::string* name, const Message* msg, std::string* l); \ 1108 static void Log(std::string* name, const Message* msg, std::string* l); \
976 }; \ 1109 }; \
(...skipping 28 matching lines...) Expand all
1005 public IPC::MessageWithReply<Tuple5<type1_in, type2_in, type3_in, type4_in , type5_in>, \ 1138 public IPC::MessageWithReply<Tuple5<type1_in, type2_in, type3_in, type4_in , type5_in>, \
1006 Tuple3<type1_out&, type2_out&, type3_out&> > { \ 1139 Tuple3<type1_out&, type2_out&, type3_out&> > { \
1007 public: \ 1140 public: \
1008 enum { ID = (IPC_MESSAGE_START << 16) + __LINE__ }; \ 1141 enum { ID = (IPC_MESSAGE_START << 16) + __LINE__ }; \
1009 msg_class(int routing_id, const type1_in& arg1, const type2_in& arg2, const type3_in& arg3, const type4_in& arg4, const type4_in& arg5, type1_out* arg6, typ e2_out* arg7, type3_out* arg8); \ 1142 msg_class(int routing_id, const type1_in& arg1, const type2_in& arg2, const type3_in& arg3, const type4_in& arg4, const type4_in& arg5, type1_out* arg6, typ e2_out* arg7, type3_out* arg8); \
1010 ~msg_class(); \ 1143 ~msg_class(); \
1011 static void Log(std::string* name, const Message* msg, std::string* l); \ 1144 static void Log(std::string* name, const Message* msg, std::string* l); \
1012 }; \ 1145 }; \
1013 IPC_SYNC_MESSAGE_ROUTED5_3_EXTRA(msg_class, type1_in, type2_in, type3_in, type 4_in, type5_in, type1_out, type2_out, type3_out) 1146 IPC_SYNC_MESSAGE_ROUTED5_3_EXTRA(msg_class, type1_in, type2_in, type3_in, type 4_in, type5_in, type1_out, type2_out, type3_out)
1014 1147
1148 #define IPC_SYNC_MESSAGE_ROUTED5_4(msg_class, type1_in, type2_in, type3_in, type 4_in, type5_in, type1_out, type2_out, type3_out, type4_out) \
1149 class msg_class : \
1150 public IPC::MessageWithReply<Tuple5<type1_in, type2_in, type3_in, type4_in , type5_in>, \
1151 Tuple4<type1_out&, type2_out&, type3_out&, type4_out&> > { \
1152 public: \
1153 enum { ID = (IPC_MESSAGE_START << 16) + __LINE__ }; \
1154 msg_class(int routing_id, const type1_in& arg1, const type2_in& arg2, const type3_in& arg3, const type4_in& arg4, const type4_in& arg5, type1_out* arg6, typ e2_out* arg7, type3_out* arg8, type4_out* arg9); \
1155 ~msg_class(); \
1156 static void Log(std::string* name, const Message* msg, std::string* l); \
1157 }; \
1158 IPC_SYNC_MESSAGE_ROUTED5_4_EXTRA(msg_class, type1_in, type2_in, type3_in, type 4_in, type5_in, type1_out, type2_out, type3_out, type4_out)
1159
1015 1160
1016 1161
1017 // Message crackers and handlers. 1162 // Message crackers and handlers.
1018 // Prefer to use the IPC_BEGIN_MESSAGE_MAP_EX to the older macros since they 1163 // Prefer to use the IPC_BEGIN_MESSAGE_MAP_EX to the older macros since they
1019 // allow you to detect when a message could not be de-serialized. Usage: 1164 // allow you to detect when a message could not be de-serialized. Usage:
1020 // 1165 //
1021 // void MyClass::OnMessageReceived(const IPC::Message& msg) { 1166 // void MyClass::OnMessageReceived(const IPC::Message& msg) {
1022 // bool msg_is_good = false; 1167 // bool msg_is_good = false;
1023 // IPC_BEGIN_MESSAGE_MAP_EX(MyClass, msg, msg_is_good) 1168 // IPC_BEGIN_MESSAGE_MAP_EX(MyClass, msg, msg_is_good)
1024 // IPC_MESSAGE_HANDLER(MsgClassOne, OnMsgClassOne) 1169 // IPC_MESSAGE_HANDLER(MsgClassOne, OnMsgClassOne)
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
1092 } \ 1237 } \
1093 } 1238 }
1094 1239
1095 #define IPC_END_MESSAGE_MAP_EX() \ 1240 #define IPC_END_MESSAGE_MAP_EX() \
1096 } \ 1241 } \
1097 } 1242 }
1098 1243
1099 // This corresponds to an enum value from IPCMessageStart. 1244 // This corresponds to an enum value from IPCMessageStart.
1100 #define IPC_MESSAGE_CLASS(message) \ 1245 #define IPC_MESSAGE_CLASS(message) \
1101 message.type() >> 16 1246 message.type() >> 16
OLDNEW
« no previous file with comments | « ipc/ipc_message_impl_macros.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698