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

Side by Side Diff: ipc/ipc_message_impl_macros.h

Issue 5998006: Clean up Automation and Chrome Frame IPC code. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 12 months 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 | « chrome_frame/urlmon_url_request.cc ('k') | ipc/ipc_message_macros.h » ('j') | 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 // The file ipc_messsage_macros.h defines the classes for individual 5 // The file ipc_messsage_macros.h defines the classes for individual
6 // messages. This file works similarly, except that it defines the 6 // messages. This file works similarly, except that it defines the
7 // implementations of the constructors and the logging methods. (These only 7 // implementations of the constructors and the logging methods. (These only
8 // have to be generated once). It is meant to be included in a XXX_messages.cc 8 // have to be generated once). It is meant to be included in a XXX_messages.cc
9 // file right before including XXX_messages_internal.h. 9 // file right before including XXX_messages_internal.h.
10 10
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 #define IPC_SYNC_MESSAGE_CONTROL0_3_EXTRA(msg_class, type1_out, type2_out, \ 168 #define IPC_SYNC_MESSAGE_CONTROL0_3_EXTRA(msg_class, type1_out, type2_out, \
169 type3_out) \ 169 type3_out) \
170 msg_class::msg_class(type1_out* arg1, type2_out* arg2, type3_out* arg3) \ 170 msg_class::msg_class(type1_out* arg1, type2_out* arg2, type3_out* arg3) \
171 : IPC::MessageWithReply<Tuple0, Tuple3<type1_out&, type2_out&, \ 171 : IPC::MessageWithReply<Tuple0, Tuple3<type1_out&, type2_out&, \
172 type3_out&> >( \ 172 type3_out&> >( \
173 MSG_ROUTING_CONTROL, ID, \ 173 MSG_ROUTING_CONTROL, ID, \
174 MakeTuple(), MakeRefTuple(*arg1, *arg2, *arg3)) {} \ 174 MakeTuple(), MakeRefTuple(*arg1, *arg2, *arg3)) {} \
175 \ 175 \
176 IPC_SYNC_MESSAGE_DTOR_AND_LOG(msg_class) 176 IPC_SYNC_MESSAGE_DTOR_AND_LOG(msg_class)
177 177
178 #define IPC_SYNC_MESSAGE_CONTROL0_4_EXTRA(msg_class, type1_out, type2_out, \
179 type3_out, type4_out) \
180 msg_class::msg_class(type1_out* arg1, type2_out* arg2, type3_out* arg3, type4_ out* arg4) \
181 : IPC::MessageWithReply<Tuple0, Tuple4<type1_out&, type2_out&, \
182 type3_out&, type4_out&> >( \
183 MSG_ROUTING_CONTROL, ID, \
184 MakeTuple(), MakeRefTuple(*arg1, *arg2, *arg3, *arg4)) {} \
185 \
186 IPC_SYNC_MESSAGE_DTOR_AND_LOG(msg_class)
187
178 188
179 #define IPC_SYNC_MESSAGE_CONTROL1_0_EXTRA(msg_class, type1_in) \ 189 #define IPC_SYNC_MESSAGE_CONTROL1_0_EXTRA(msg_class, type1_in) \
180 msg_class::msg_class(const type1_in& arg1) \ 190 msg_class::msg_class(const type1_in& arg1) \
181 : IPC::MessageWithReply<Tuple1<type1_in>, Tuple0 >( \ 191 : IPC::MessageWithReply<Tuple1<type1_in>, Tuple0 >( \
182 MSG_ROUTING_CONTROL, ID, \ 192 MSG_ROUTING_CONTROL, ID, \
183 MakeRefTuple(arg1), MakeTuple()) {} \ 193 MakeRefTuple(arg1), MakeTuple()) {} \
184 \ 194 \
185 IPC_SYNC_MESSAGE_DTOR_AND_LOG(msg_class) 195 IPC_SYNC_MESSAGE_DTOR_AND_LOG(msg_class)
186 196
187 #define IPC_SYNC_MESSAGE_CONTROL1_1_EXTRA(msg_class, type1_in, type1_out) \ 197 #define IPC_SYNC_MESSAGE_CONTROL1_1_EXTRA(msg_class, type1_in, type1_out) \
(...skipping 17 matching lines...) Expand all
205 type2_out, type3_out) \ 215 type2_out, type3_out) \
206 msg_class::msg_class(const type1_in& arg1, type1_out* arg2, \ 216 msg_class::msg_class(const type1_in& arg1, type1_out* arg2, \
207 type2_out* arg3, type3_out* arg4) \ 217 type2_out* arg3, type3_out* arg4) \
208 : IPC::MessageWithReply<Tuple1<type1_in>, \ 218 : IPC::MessageWithReply<Tuple1<type1_in>, \
209 Tuple3<type1_out&, type2_out&, type3_out&> >( \ 219 Tuple3<type1_out&, type2_out&, type3_out&> >( \
210 MSG_ROUTING_CONTROL, ID, \ 220 MSG_ROUTING_CONTROL, ID, \
211 MakeRefTuple(arg1), MakeRefTuple(*arg2, *arg3, *arg4)) {} \ 221 MakeRefTuple(arg1), MakeRefTuple(*arg2, *arg3, *arg4)) {} \
212 \ 222 \
213 IPC_SYNC_MESSAGE_DTOR_AND_LOG(msg_class) 223 IPC_SYNC_MESSAGE_DTOR_AND_LOG(msg_class)
214 224
225 #define IPC_SYNC_MESSAGE_CONTROL1_4_EXTRA(msg_class, type1_in, type1_out, \
226 type2_out, type3_out, type4_out) \
227 msg_class::msg_class(const type1_in& arg1, type1_out* arg2, \
228 type2_out* arg3, type3_out* arg4, type4_out* arg5) \
229 : IPC::MessageWithReply<Tuple1<type1_in>, \
230 Tuple4<type1_out&, type2_out&, type3_out&, type4_out&> >( \
231 MSG_ROUTING_CONTROL, ID, \
232 MakeRefTuple(arg1), MakeRefTuple(*arg2, *arg3, *arg4, *arg5)) {} \
233 \
234 IPC_SYNC_MESSAGE_DTOR_AND_LOG(msg_class)
235
215 #define IPC_SYNC_MESSAGE_CONTROL2_0_EXTRA(msg_class, type1_in, type2_in) \ 236 #define IPC_SYNC_MESSAGE_CONTROL2_0_EXTRA(msg_class, type1_in, type2_in) \
216 msg_class::msg_class(const type1_in& arg1, const type2_in& arg2) \ 237 msg_class::msg_class(const type1_in& arg1, const type2_in& arg2) \
217 : IPC::MessageWithReply<Tuple2<type1_in, type2_in>, Tuple0 >( \ 238 : IPC::MessageWithReply<Tuple2<type1_in, type2_in>, Tuple0 >( \
218 MSG_ROUTING_CONTROL, ID, \ 239 MSG_ROUTING_CONTROL, ID, \
219 MakeRefTuple(arg1, arg2), MakeTuple()) {} \ 240 MakeRefTuple(arg1, arg2), MakeTuple()) {} \
220 \ 241 \
221 IPC_SYNC_MESSAGE_DTOR_AND_LOG(msg_class) 242 IPC_SYNC_MESSAGE_DTOR_AND_LOG(msg_class)
222 243
223 #define IPC_SYNC_MESSAGE_CONTROL2_1_EXTRA(msg_class, type1_in, type2_in, type1_o ut) \ 244 #define IPC_SYNC_MESSAGE_CONTROL2_1_EXTRA(msg_class, type1_in, type2_in, type1_o ut) \
224 msg_class::msg_class(const type1_in& arg1, const type2_in& arg2, \ 245 msg_class::msg_class(const type1_in& arg1, const type2_in& arg2, \
225 type1_out* arg3) \ 246 type1_out* arg3) \
226 : IPC::MessageWithReply<Tuple2<type1_in, type2_in>, \ 247 : IPC::MessageWithReply<Tuple2<type1_in, type2_in>, \
227 Tuple1<type1_out&> >( \ 248 Tuple1<type1_out&> >( \
228 MSG_ROUTING_CONTROL, ID, \ 249 MSG_ROUTING_CONTROL, ID, \
229 MakeRefTuple(arg1, arg2), MakeRefTuple(*arg3)) {} \ 250 MakeRefTuple(arg1, arg2), MakeRefTuple(*arg3)) {} \
230 \ 251 \
231 IPC_SYNC_MESSAGE_DTOR_AND_LOG(msg_class) 252 IPC_SYNC_MESSAGE_DTOR_AND_LOG(msg_class)
232 253
233
234 #define IPC_SYNC_MESSAGE_CONTROL2_2_EXTRA(msg_class, type1_in, type2_in, \ 254 #define IPC_SYNC_MESSAGE_CONTROL2_2_EXTRA(msg_class, type1_in, type2_in, \
235 type1_out, type2_out) \ 255 type1_out, type2_out) \
236 msg_class::msg_class(const type1_in& arg1, const type2_in& arg2, \ 256 msg_class::msg_class(const type1_in& arg1, const type2_in& arg2, \
237 type1_out* arg3, type2_out* arg4) \ 257 type1_out* arg3, type2_out* arg4) \
238 : IPC::MessageWithReply<Tuple2<type1_in, type2_in>, \ 258 : IPC::MessageWithReply<Tuple2<type1_in, type2_in>, \
239 Tuple2<type1_out&, type2_out&> >(MSG_ROUTING_CONTROL, ID, \ 259 Tuple2<type1_out&, type2_out&> >(MSG_ROUTING_CONTROL, ID, \
240 MakeRefTuple(arg1, arg2), MakeRefTuple(*arg3, *arg4)) {} \ 260 MakeRefTuple(arg1, arg2), MakeRefTuple(*arg3, *arg4)) {} \
241 \ 261 \
242 IPC_SYNC_MESSAGE_DTOR_AND_LOG(msg_class) 262 IPC_SYNC_MESSAGE_DTOR_AND_LOG(msg_class)
243 263
244
245 #define IPC_SYNC_MESSAGE_CONTROL2_3_EXTRA(msg_class, type1_in, type2_in, \ 264 #define IPC_SYNC_MESSAGE_CONTROL2_3_EXTRA(msg_class, type1_in, type2_in, \
246 type1_out, type2_out, type3_out) \ 265 type1_out, type2_out, type3_out) \
247 msg_class::msg_class(const type1_in& arg1, const type2_in& arg2, \ 266 msg_class::msg_class(const type1_in& arg1, const type2_in& arg2, \
248 type1_out* arg3, type2_out* arg4, type3_out* arg5) \ 267 type1_out* arg3, type2_out* arg4, type3_out* arg5) \
249 : IPC::MessageWithReply<Tuple2<type1_in, type2_in>, \ 268 : IPC::MessageWithReply<Tuple2<type1_in, type2_in>, \
250 Tuple3<type1_out&, type2_out&, type3_out&> >(MSG_ROUTING_CONTROL, \ 269 Tuple3<type1_out&, type2_out&, type3_out&> >(MSG_ROUTING_CONTROL, \
251 ID, \ 270 ID, \
252 MakeRefTuple(arg1, arg2), MakeRefTuple(*arg3, *arg4, *arg5)) {} \ 271 MakeRefTuple(arg1, arg2), MakeRefTuple(*arg3, *arg4, *arg5)) {} \
253 \ 272 \
254 IPC_SYNC_MESSAGE_DTOR_AND_LOG(msg_class) 273 IPC_SYNC_MESSAGE_DTOR_AND_LOG(msg_class)
255 274
275 #define IPC_SYNC_MESSAGE_CONTROL2_4_EXTRA(msg_class, type1_in, type2_in, \
276 type1_out, type2_out, type3_out, type4_out) \
277 msg_class::msg_class(const type1_in& arg1, const type2_in& arg2, \
278 type1_out* arg3, type2_out* arg4, type3_out* arg5, type4_ out* arg6) \
279 : IPC::MessageWithReply<Tuple2<type1_in, type2_in>, \
280 Tuple4<type1_out&, type2_out&, type3_out&, type4_out&> >(MSG_ROUTING _CONTROL, \
281 ID, \
282 MakeRefTuple(arg1, arg2), MakeRefTuple(*arg3, *arg4, *arg5, *arg6)) {} \
283 \
284 IPC_SYNC_MESSAGE_DTOR_AND_LOG(msg_class)
256 285
257 #define IPC_SYNC_MESSAGE_CONTROL3_1_EXTRA(msg_class, type1_in, type2_in, \ 286 #define IPC_SYNC_MESSAGE_CONTROL3_1_EXTRA(msg_class, type1_in, type2_in, \
258 type3_in, type1_out) \ 287 type3_in, type1_out) \
259 msg_class::msg_class(const type1_in& arg1, const type2_in& arg2, \ 288 msg_class::msg_class(const type1_in& arg1, const type2_in& arg2, \
260 const type3_in& arg3, type1_out* arg4) \ 289 const type3_in& arg3, type1_out* arg4) \
261 : IPC::MessageWithReply<Tuple3<type1_in, type2_in, type3_in>, \ 290 : IPC::MessageWithReply<Tuple3<type1_in, type2_in, type3_in>, \
262 Tuple1<type1_out&> >(MSG_ROUTING_CONTROL, ID, \ 291 Tuple1<type1_out&> >(MSG_ROUTING_CONTROL, ID, \
263 MakeRefTuple(arg1, arg2, arg3), MakeRefTuple(*arg4)) {} \ 292 MakeRefTuple(arg1, arg2, arg3), MakeRefTuple(*arg4)) {} \
264 \ 293 \
265 IPC_SYNC_MESSAGE_DTOR_AND_LOG(msg_class) 294 IPC_SYNC_MESSAGE_DTOR_AND_LOG(msg_class)
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 const type3_in& arg3, const type4_in& arg4, \ 366 const type3_in& arg3, const type4_in& arg4, \
338 type1_out* arg5, type2_out* arg6, typ3_out* arg7) \ 367 type1_out* arg5, type2_out* arg6, typ3_out* arg7) \
339 : IPC::MessageWithReply<Tuple4<type1_in, type2_in, type3_in, \ 368 : IPC::MessageWithReply<Tuple4<type1_in, type2_in, type3_in, \
340 type4_in>, \ 369 type4_in>, \
341 Tuple3<type1_out&, type2_out&, type3_out&> >(MSG_ROUTING_CONTROL, ID, \ 370 Tuple3<type1_out&, type2_out&, type3_out&> >(MSG_ROUTING_CONTROL, ID, \
342 MakeRefTuple(arg1, arg2, arg3, arg4), \ 371 MakeRefTuple(arg1, arg2, arg3, arg4), \
343 MakeRefTuple(*arg5, *arg6, *arg7)) {} \ 372 MakeRefTuple(*arg5, *arg6, *arg7)) {} \
344 \ 373 \
345 IPC_SYNC_MESSAGE_DTOR_AND_LOG(msg_class) 374 IPC_SYNC_MESSAGE_DTOR_AND_LOG(msg_class)
346 375
376 #define IPC_SYNC_MESSAGE_CONTROL4_4_EXTRA(msg_class, type1_in, type2_in, \
377 type3_in, type4_in, type1_out, \
378 type2_out, type3_out, type4_out) \
379 msg_class::msg_class(const type1_in& arg1, const type2_in& arg2, \
380 const type3_in& arg3, const type4_in& arg4, \
381 type1_out* arg5, type2_out* arg6, \
382 type3_out* arg7, type4_out* arg8) \
383 : IPC::MessageWithReply<Tuple4<type1_in, type2_in, type3_in, \
384 type4_in>, \
385 Tuple4<type1_out&, type2_out&, type3_out&, type4_out&> >(MSG_ROUTING_C ONTROL, ID, \
386 MakeRefTuple(arg1, arg2, arg3, arg4), \
387 MakeRefTuple(*arg5, *arg6, *arg7, *arg8)) {} \
388 \
389 IPC_SYNC_MESSAGE_DTOR_AND_LOG(msg_class)
390
347 #define IPC_SYNC_MESSAGE_CONTROL5_1_EXTRA(msg_class, type1_in, type2_in, \ 391 #define IPC_SYNC_MESSAGE_CONTROL5_1_EXTRA(msg_class, type1_in, type2_in, \
348 type3_in, type4_in, type5_in, \ 392 type3_in, type4_in, type5_in, \
349 type1_out) \ 393 type1_out) \
350 msg_class::msg_class(const type1_in& arg1, const type2_in& arg2, \ 394 msg_class::msg_class(const type1_in& arg1, const type2_in& arg2, \
351 const type3_in& arg3, const type4_in& arg4, \ 395 const type3_in& arg3, const type4_in& arg4, \
352 const type5_in& arg5, type1_out* arg6) \ 396 const type5_in& arg5, type1_out* arg6) \
353 : IPC::MessageWithReply<Tuple5<type1_in, type2_in, type3_in, type4_in, typ e5_in>, \ 397 : IPC::MessageWithReply<Tuple5<type1_in, type2_in, type3_in, type4_in, typ e5_in>, \
354 Tuple1<type1_out&> >(MSG_ROUTING_CONTROL, ID, \ 398 Tuple1<type1_out&> >(MSG_ROUTING_CONTROL, ID, \
355 MakeRefTuple(arg1, arg2, arg3, arg4, arg5), MakeRefTuple(*arg6)) {} \ 399 MakeRefTuple(arg1, arg2, arg3, arg4, arg5), MakeRefTuple(*arg6)) {} \
356 \ 400 \
(...skipping 21 matching lines...) Expand all
378 const type3_in& arg3, const type4_in& arg4, \ 422 const type3_in& arg3, const type4_in& arg4, \
379 const type5_in& arg5, type1_out* arg6, type2_out* arg7, t yp3_out* arg8) \ 423 const type5_in& arg5, type1_out* arg6, type2_out* arg7, t yp3_out* arg8) \
380 : IPC::MessageWithReply<Tuple4<type1_in, type2_in, type3_in, \ 424 : IPC::MessageWithReply<Tuple4<type1_in, type2_in, type3_in, \
381 type4_in, type5_in>, \ 425 type4_in, type5_in>, \
382 Tuple3<type1_out&, type2_out&, type3_out&> >(MSG_ROUTING_CONTROL, ID, \ 426 Tuple3<type1_out&, type2_out&, type3_out&> >(MSG_ROUTING_CONTROL, ID, \
383 MakeRefTuple(arg1, arg2, arg3, arg4, arg5), \ 427 MakeRefTuple(arg1, arg2, arg3, arg4, arg5), \
384 MakeRefTuple(*arg6, *arg7, *arg8)) {} \ 428 MakeRefTuple(*arg6, *arg7, *arg8)) {} \
385 \ 429 \
386 IPC_SYNC_MESSAGE_DTOR_AND_LOG(msg_class) 430 IPC_SYNC_MESSAGE_DTOR_AND_LOG(msg_class)
387 431
432 #define IPC_SYNC_MESSAGE_CONTROL5_4_EXTRA(msg_class, type1_in, type2_in, \
433 type3_in, type4_in, type5_in, \
434 type1_out, type2_out, type3_out, \
435 type4_out) \
436 msg_class::msg_class(const type1_in& arg1, const type2_in& arg2, \
437 const type3_in& arg3, const type4_in& arg4, \
438 const type5_in& arg5, type1_out* arg6, \
439 type2_out* arg7, type3_out* arg8, type4_out* arg9) \
440 : IPC::MessageWithReply<Tuple4<type1_in, type2_in, type3_in, \
441 type4_in, type5_in>, \
442 Tuple4<type1_out&, type2_out&, type3_out&, type4_out&> >(MSG_ROUTING_C ONTROL, ID, \
443 MakeRefTuple(arg1, arg2, arg3, arg4, arg5), \
444 MakeRefTuple(*arg6, *arg7, *arg8, *arg9)) {} \
445 \
446 IPC_SYNC_MESSAGE_DTOR_AND_LOG(msg_class)
447
388 #define IPC_SYNC_MESSAGE_ROUTED0_0_EXTRA(msg_class) \ 448 #define IPC_SYNC_MESSAGE_ROUTED0_0_EXTRA(msg_class) \
389 msg_class::msg_class(int routing_id) \ 449 msg_class::msg_class(int routing_id) \
390 : IPC::MessageWithReply<Tuple0, Tuple0>( \ 450 : IPC::MessageWithReply<Tuple0, Tuple0>( \
391 routing_id, ID, \ 451 routing_id, ID, \
392 MakeTuple(), MakeTuple()) {} \ 452 MakeTuple(), MakeTuple()) {} \
393 \ 453 \
394 IPC_SYNC_MESSAGE_DTOR_AND_LOG(msg_class) 454 IPC_SYNC_MESSAGE_DTOR_AND_LOG(msg_class)
395 455
396 #define IPC_SYNC_MESSAGE_ROUTED0_1_EXTRA(msg_class, type1_out) \ 456 #define IPC_SYNC_MESSAGE_ROUTED0_1_EXTRA(msg_class, type1_out) \
397 msg_class::msg_class(int routing_id, type1_out* arg1) \ 457 msg_class::msg_class(int routing_id, type1_out* arg1) \
(...skipping 14 matching lines...) Expand all
412 #define IPC_SYNC_MESSAGE_ROUTED0_3_EXTRA(msg_class, type1_out, type2_out, \ 472 #define IPC_SYNC_MESSAGE_ROUTED0_3_EXTRA(msg_class, type1_out, type2_out, \
413 type3_out) \ 473 type3_out) \
414 msg_class::msg_class(int routing_id, type1_out* arg1, type2_out* arg2, \ 474 msg_class::msg_class(int routing_id, type1_out* arg1, type2_out* arg2, \
415 type3_out* arg3) \ 475 type3_out* arg3) \
416 : IPC::MessageWithReply<Tuple0, \ 476 : IPC::MessageWithReply<Tuple0, \
417 Tuple3<type1_out&, type2_out&, type3_out&> >(routing_id, ID, \ 477 Tuple3<type1_out&, type2_out&, type3_out&> >(routing_id, ID, \
418 MakeTuple(), MakeRefTuple(*arg1, *arg2, *arg3)) {} \ 478 MakeTuple(), MakeRefTuple(*arg1, *arg2, *arg3)) {} \
419 \ 479 \
420 IPC_SYNC_MESSAGE_DTOR_AND_LOG(msg_class) 480 IPC_SYNC_MESSAGE_DTOR_AND_LOG(msg_class)
421 481
482 #define IPC_SYNC_MESSAGE_ROUTED0_4_EXTRA(msg_class, type1_out, type2_out, \
483 type3_out, type4_out) \
484 msg_class::msg_class(int routing_id, type1_out* arg1, type2_out* arg2, \
485 type3_out* arg3, type4_out* arg4) \
486 : IPC::MessageWithReply<Tuple0, \
487 Tuple4<type1_out&, type2_out&, type3_out&, type4_out&> >(routing_id, I D, \
488 MakeTuple(), MakeRefTuple(*arg1, *arg2, *arg3, *arg4)) {} \
489 \
490 IPC_SYNC_MESSAGE_DTOR_AND_LOG(msg_class)
491
422 #define IPC_SYNC_MESSAGE_ROUTED1_0_EXTRA(msg_class, type1_in) \ 492 #define IPC_SYNC_MESSAGE_ROUTED1_0_EXTRA(msg_class, type1_in) \
423 msg_class::msg_class(int routing_id, const type1_in& arg1) \ 493 msg_class::msg_class(int routing_id, const type1_in& arg1) \
424 : IPC::MessageWithReply<Tuple1<type1_in>, Tuple0 >( \ 494 : IPC::MessageWithReply<Tuple1<type1_in>, Tuple0 >( \
425 routing_id, ID, \ 495 routing_id, ID, \
426 MakeRefTuple(arg1), MakeTuple()) {} \ 496 MakeRefTuple(arg1), MakeTuple()) {} \
427 \ 497 \
428 IPC_SYNC_MESSAGE_DTOR_AND_LOG(msg_class) 498 IPC_SYNC_MESSAGE_DTOR_AND_LOG(msg_class)
429 499
430 #define IPC_SYNC_MESSAGE_ROUTED1_1_EXTRA(msg_class, type1_in, type1_out) \ 500 #define IPC_SYNC_MESSAGE_ROUTED1_1_EXTRA(msg_class, type1_in, type1_out) \
431 msg_class::msg_class(int routing_id, const type1_in& arg1, \ 501 msg_class::msg_class(int routing_id, const type1_in& arg1, \
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
502 type1_out, type2_out, type3_out) \ 572 type1_out, type2_out, type3_out) \
503 msg_class::msg_class(int routing_id, const type1_in& arg1, \ 573 msg_class::msg_class(int routing_id, const type1_in& arg1, \
504 const type2_in& arg2, type1_out* arg3, \ 574 const type2_in& arg2, type1_out* arg3, \
505 type2_out* arg4, type3_out* arg5) \ 575 type2_out* arg4, type3_out* arg5) \
506 : IPC::MessageWithReply<Tuple2<type1_in, type2_in>, \ 576 : IPC::MessageWithReply<Tuple2<type1_in, type2_in>, \
507 Tuple3<type1_out&, type2_out&, type3_out&> >(routing_id, ID, \ 577 Tuple3<type1_out&, type2_out&, type3_out&> >(routing_id, ID, \
508 MakeRefTuple(arg1, arg2), MakeRefTuple(*arg3, *arg4, *arg5)) {} \ 578 MakeRefTuple(arg1, arg2), MakeRefTuple(*arg3, *arg4, *arg5)) {} \
509 \ 579 \
510 IPC_SYNC_MESSAGE_DTOR_AND_LOG(msg_class) 580 IPC_SYNC_MESSAGE_DTOR_AND_LOG(msg_class)
511 581
582 #define IPC_SYNC_MESSAGE_ROUTED2_4_EXTRA(msg_class, type1_in, type2_in, \
583 type1_out, type2_out, type3_out, \
584 type4_out) \
585 msg_class::msg_class(int routing_id, const type1_in& arg1, \
586 const type2_in& arg2, type1_out* arg3, \
587 type2_out* arg4, type3_out* arg5, type4_out* arg6) \
588 : IPC::MessageWithReply<Tuple2<type1_in, type2_in>, \
589 Tuple4<type1_out&, type2_out&, type3_out&, type4_out&> >(routing_id, ID, \
590 MakeRefTuple(arg1, arg2), MakeRefTuple(*arg3, *arg4, *arg5, *arg6)) {} \
591 \
592 IPC_SYNC_MESSAGE_DTOR_AND_LOG(msg_class)
593
512 #define IPC_SYNC_MESSAGE_ROUTED3_0_EXTRA(msg_class, type1_in, type2_in, \ 594 #define IPC_SYNC_MESSAGE_ROUTED3_0_EXTRA(msg_class, type1_in, type2_in, \
513 type3_in) \ 595 type3_in) \
514 msg_class::msg_class(int routing_id, const type1_in& arg1, \ 596 msg_class::msg_class(int routing_id, const type1_in& arg1, \
515 const type2_in& arg2, const type3_in& arg3) \ 597 const type2_in& arg2, const type3_in& arg3) \
516 : IPC::MessageWithReply<Tuple3<type1_in, type2_in, type3_in>, Tuple0>( \ 598 : IPC::MessageWithReply<Tuple3<type1_in, type2_in, type3_in>, Tuple0>( \
517 routing_id, ID, \ 599 routing_id, ID, \
518 MakeRefTuple(arg1, arg2, arg3), MakeTuple()) {} \ 600 MakeRefTuple(arg1, arg2, arg3), MakeTuple()) {} \
519 \ 601 \
520 IPC_SYNC_MESSAGE_DTOR_AND_LOG(msg_class) 602 IPC_SYNC_MESSAGE_DTOR_AND_LOG(msg_class)
521 603
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
611 const type2_in& arg2, const type3_in& arg3, \ 693 const type2_in& arg2, const type3_in& arg3, \
612 const type4_in& arg4, type1_out* arg5, \ 694 const type4_in& arg4, type1_out* arg5, \
613 type2_out* arg6, type3_out* arg7) \ 695 type2_out* arg6, type3_out* arg7) \
614 : IPC::MessageWithReply<Tuple4<type1_in, type2_in, type3_in, type4_in>, \ 696 : IPC::MessageWithReply<Tuple4<type1_in, type2_in, type3_in, type4_in>, \
615 Tuple3<type1_out&, type2_out&, type3_out&> >(routing_id, ID, \ 697 Tuple3<type1_out&, type2_out&, type3_out&> >(routing_id, ID, \
616 MakeRefTuple(arg1, arg2, arg3, arg4), \ 698 MakeRefTuple(arg1, arg2, arg3, arg4), \
617 MakeRefTuple(*arg5, *arg6, *arg7)) {} \ 699 MakeRefTuple(*arg5, *arg6, *arg7)) {} \
618 \ 700 \
619 IPC_SYNC_MESSAGE_DTOR_AND_LOG(msg_class) 701 IPC_SYNC_MESSAGE_DTOR_AND_LOG(msg_class)
620 702
703 #define IPC_SYNC_MESSAGE_ROUTED4_4_EXTRA(msg_class, type1_in, type2_in, \
704 type3_in, type4_in, type1_out, \
705 type2_out, type3_out, type4_out) \
706 msg_class::msg_class(int routing_id, const type1_in& arg1, \
707 const type2_in& arg2, const type3_in& arg3, \
708 const type4_in& arg4, type1_out* arg5, \
709 type2_out* arg6, type3_out* arg7, type4_out* arg8) \
710 : IPC::MessageWithReply<Tuple4<type1_in, type2_in, type3_in, type4_in>, \
711 Tuple4<type1_out&, type2_out&, type3_out&, type4_out&> >(routing_id, I D, \
712 MakeRefTuple(arg1, arg2, arg3, arg4), \
713 MakeRefTuple(*arg5, *arg6, *arg7, *arg8)) {} \
714 \
715 IPC_SYNC_MESSAGE_DTOR_AND_LOG(msg_class)
716
621 #define IPC_SYNC_MESSAGE_ROUTED5_0_EXTRA(msg_class, type1_in, type2_in, \ 717 #define IPC_SYNC_MESSAGE_ROUTED5_0_EXTRA(msg_class, type1_in, type2_in, \
622 type3_in, type4_in, type5_in) \ 718 type3_in, type4_in, type5_in) \
623 msg_class::msg_class(int routing_id, const type1_in& arg1, \ 719 msg_class::msg_class(int routing_id, const type1_in& arg1, \
624 const type2_in& arg2, const type3_in& arg3, \ 720 const type2_in& arg2, const type3_in& arg3, \
625 const type4_in& arg4, const type5_in& arg5) \ 721 const type4_in& arg4, const type5_in& arg5) \
626 : IPC::MessageWithReply<Tuple5<type1_in, type2_in, type3_in, \ 722 : IPC::MessageWithReply<Tuple5<type1_in, type2_in, type3_in, \
627 type4_in, type5_in>, Tuple0 >(routing_id, ID, \ 723 type4_in, type5_in>, Tuple0 >(routing_id, ID, \
628 MakeRefTuple(arg1, arg2, arg3, arg4, arg5), MakeTuple()) {} \ 724 MakeRefTuple(arg1, arg2, arg3, arg4, arg5), MakeTuple()) {} \
629 \ 725 \
630 IPC_SYNC_MESSAGE_DTOR_AND_LOG(msg_class) 726 IPC_SYNC_MESSAGE_DTOR_AND_LOG(msg_class)
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
665 type1_out* arg6, type2_out* arg7, \ 761 type1_out* arg6, type2_out* arg7, \
666 type3_out* arg8) \ 762 type3_out* arg8) \
667 : IPC::MessageWithReply<Tuple5<type1_in, type2_in, type3_in, \ 763 : IPC::MessageWithReply<Tuple5<type1_in, type2_in, type3_in, \
668 type4_in, type5_in>, \ 764 type4_in, type5_in>, \
669 Tuple3<type1_out&, type2_out&, type3_out&> >(routing_id, ID, \ 765 Tuple3<type1_out&, type2_out&, type3_out&> >(routing_id, ID, \
670 MakeRefTuple(arg1, arg2, arg3, arg4, arg5), \ 766 MakeRefTuple(arg1, arg2, arg3, arg4, arg5), \
671 MakeRefTuple(*arg6, *arg7, *arg8)) {} \ 767 MakeRefTuple(*arg6, *arg7, *arg8)) {} \
672 \ 768 \
673 IPC_SYNC_MESSAGE_DTOR_AND_LOG(msg_class) 769 IPC_SYNC_MESSAGE_DTOR_AND_LOG(msg_class)
674 770
771 #define IPC_SYNC_MESSAGE_ROUTED5_4_EXTRA(msg_class, type1_in, type2_in, \
772 type3_in, type4_in, type5_in, \
773 type1_out, type2_out, type3_out, type4_out) \
774 msg_class::msg_class(int routing_id, const type1_in& arg1, \
775 const type2_in& arg2, const type3_in& arg3, \
776 const type4_in& arg4, const type4_in& arg5, \
777 type1_out* arg6, type2_out* arg7, \
778 type3_out* arg8, type4_out* arg9) \
779 : IPC::MessageWithReply<Tuple5<type1_in, type2_in, type3_in, \
780 type4_in, type5_in>, \
781 Tuple4<type1_out&, type2_out&, type3_out&, type4_out&> >(routing_id, I D, \
782 MakeRefTuple(arg1, arg2, arg3, arg4, arg5), \
783 MakeRefTuple(*arg6, *arg7, *arg8, *arg9)) {} \
784 \
785 IPC_SYNC_MESSAGE_DTOR_AND_LOG(msg_class)
786
675 #endif // IPC_IPC_MESSAGE_IMPL_MACROS_H_ 787 #endif // IPC_IPC_MESSAGE_IMPL_MACROS_H_
OLDNEW
« no previous file with comments | « chrome_frame/urlmon_url_request.cc ('k') | ipc/ipc_message_macros.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698