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

Side by Side Diff: ipc/ipc_message_impl_macros.h

Issue 5722003: Make DOMStorageDispatcherHost be a message filter (and rename it accordingly)... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: get rid of _DELAY_HANDLE macro 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 | « chrome/test/render_view_test.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 312 matching lines...) Expand 10 before | Expand all | Expand 10 after
323 const type3_in& arg3, const type4_in& arg4, \ 323 const type3_in& arg3, const type4_in& arg4, \
324 type1_out* arg5, type2_out* arg6) \ 324 type1_out* arg5, type2_out* arg6) \
325 : IPC::MessageWithReply<Tuple4<type1_in, type2_in, type3_in, \ 325 : IPC::MessageWithReply<Tuple4<type1_in, type2_in, type3_in, \
326 type4_in>, \ 326 type4_in>, \
327 Tuple2<type1_out&, type2_out&> >(MSG_ROUTING_CONTROL, ID, \ 327 Tuple2<type1_out&, type2_out&> >(MSG_ROUTING_CONTROL, ID, \
328 MakeRefTuple(arg1, arg2, arg3, arg4), \ 328 MakeRefTuple(arg1, arg2, arg3, arg4), \
329 MakeRefTuple(*arg5, *arg6)) {} \ 329 MakeRefTuple(*arg5, *arg6)) {} \
330 \ 330 \
331 IPC_SYNC_MESSAGE_DTOR_AND_LOG(msg_class) 331 IPC_SYNC_MESSAGE_DTOR_AND_LOG(msg_class)
332 332
333 #define IPC_SYNC_MESSAGE_CONTROL4_3_EXTRA(msg_class, type1_in, type2_in, \
jorlow 2010/12/13 19:25:11 Hmm.....in theory, this probably means we should b
jam 2010/12/13 19:37:59 async routed/control and sync routed had messages
334 type3_in, type4_in, type1_out, \
335 type2_out, type3_out) \
336 msg_class::msg_class(const type1_in& arg1, const type2_in& arg2, \
337 const type3_in& arg3, const type4_in& arg4, \
338 type1_out* arg5, type2_out* arg6, typ3_out* arg7) \
339 : IPC::MessageWithReply<Tuple4<type1_in, type2_in, type3_in, \
340 type4_in>, \
341 Tuple3<type1_out&, type2_out&, type3_out&> >(MSG_ROUTING_CONTROL, ID, \
342 MakeRefTuple(arg1, arg2, arg3, arg4), \
343 MakeRefTuple(*arg5, *arg6, *arg7)) {} \
344 \
345 IPC_SYNC_MESSAGE_DTOR_AND_LOG(msg_class)
346
347 #define IPC_SYNC_MESSAGE_CONTROL5_1_EXTRA(msg_class, type1_in, type2_in, \
348 type3_in, type4_in, type5_in, \
349 type1_out) \
350 msg_class::msg_class(const type1_in& arg1, const type2_in& arg2, \
351 const type3_in& arg3, const type4_in& arg4, \
352 const type5_in& arg5, type1_out* arg6) \
353 : IPC::MessageWithReply<Tuple5<type1_in, type2_in, type3_in, type4_in, typ e5_in>, \
354 Tuple1<type1_out&> >(MSG_ROUTING_CONTROL, ID, \
355 MakeRefTuple(arg1, arg2, arg3, arg4, arg5), MakeRefTuple(*arg6)) {} \
356 \
357 IPC_SYNC_MESSAGE_DTOR_AND_LOG(msg_class)
358
359
360 #define IPC_SYNC_MESSAGE_CONTROL5_2_EXTRA(msg_class, type1_in, type2_in, \
361 type3_in, type4_in, type5_in, \
362 type1_out, type2_out) \
363 msg_class::msg_class(const type1_in& arg1, const type2_in& arg2, \
364 const type3_in& arg3, const type4_in& arg4, \
365 const type5_in& arg5, type1_out* arg6, type2_out* arg7) \
366 : IPC::MessageWithReply<Tuple5<type1_in, type2_in, type3_in, \
367 type4_in, type5_in>, \
368 Tuple2<type1_out&, type2_out&> >(MSG_ROUTING_CONTROL, ID, \
369 MakeRefTuple(arg1, arg2, arg3, arg4, arg5), \
370 MakeRefTuple(*arg6, *arg7)) {} \
371 \
372 IPC_SYNC_MESSAGE_DTOR_AND_LOG(msg_class)
373
374 #define IPC_SYNC_MESSAGE_CONTROL5_3_EXTRA(msg_class, type1_in, type2_in, \
375 type3_in, type4_in, type5_in, \
376 type1_out, type2_out, type3_out) \
377 msg_class::msg_class(const type1_in& arg1, const type2_in& arg2, \
378 const type3_in& arg3, const type4_in& arg4, \
379 const type5_in& arg5, type1_out* arg6, type2_out* arg7, t yp3_out* arg8) \
380 : IPC::MessageWithReply<Tuple4<type1_in, type2_in, type3_in, \
381 type4_in, type5_in>, \
382 Tuple3<type1_out&, type2_out&, type3_out&> >(MSG_ROUTING_CONTROL, ID, \
383 MakeRefTuple(arg1, arg2, arg3, arg4, arg5), \
384 MakeRefTuple(*arg6, *arg7, *arg8)) {} \
385 \
386 IPC_SYNC_MESSAGE_DTOR_AND_LOG(msg_class)
387
333 #define IPC_SYNC_MESSAGE_ROUTED0_0_EXTRA(msg_class) \ 388 #define IPC_SYNC_MESSAGE_ROUTED0_0_EXTRA(msg_class) \
334 msg_class::msg_class(int routing_id) \ 389 msg_class::msg_class(int routing_id) \
335 : IPC::MessageWithReply<Tuple0, Tuple0>( \ 390 : IPC::MessageWithReply<Tuple0, Tuple0>( \
336 routing_id, ID, \ 391 routing_id, ID, \
337 MakeTuple(), MakeTuple()) {} \ 392 MakeTuple(), MakeTuple()) {} \
338 \ 393 \
339 IPC_SYNC_MESSAGE_DTOR_AND_LOG(msg_class) 394 IPC_SYNC_MESSAGE_DTOR_AND_LOG(msg_class)
340 395
341 #define IPC_SYNC_MESSAGE_ROUTED0_1_EXTRA(msg_class, type1_out) \ 396 #define IPC_SYNC_MESSAGE_ROUTED0_1_EXTRA(msg_class, type1_out) \
342 msg_class::msg_class(int routing_id, type1_out* arg1) \ 397 msg_class::msg_class(int routing_id, type1_out* arg1) \
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after
611 type3_out* arg8) \ 666 type3_out* arg8) \
612 : IPC::MessageWithReply<Tuple5<type1_in, type2_in, type3_in, \ 667 : IPC::MessageWithReply<Tuple5<type1_in, type2_in, type3_in, \
613 type4_in, type5_in>, \ 668 type4_in, type5_in>, \
614 Tuple3<type1_out&, type2_out&, type3_out&> >(routing_id, ID, \ 669 Tuple3<type1_out&, type2_out&, type3_out&> >(routing_id, ID, \
615 MakeRefTuple(arg1, arg2, arg3, arg4, arg5), \ 670 MakeRefTuple(arg1, arg2, arg3, arg4, arg5), \
616 MakeRefTuple(*arg6, *arg7, *arg8)) {} \ 671 MakeRefTuple(*arg6, *arg7, *arg8)) {} \
617 \ 672 \
618 IPC_SYNC_MESSAGE_DTOR_AND_LOG(msg_class) 673 IPC_SYNC_MESSAGE_DTOR_AND_LOG(msg_class)
619 674
620 #endif // IPC_IPC_MESSAGE_IMPL_MACROS_H_ 675 #endif // IPC_IPC_MESSAGE_IMPL_MACROS_H_
OLDNEW
« no previous file with comments | « chrome/test/render_view_test.cc ('k') | ipc/ipc_message_macros.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698