From 50473c1cae9ac7989de4ca21ca7ec6adef4d20bd Mon Sep 17 00:00:00 2001 From: "dpranke@chromium.org" Date: Tue, 6 Sep 2011 22:51:11 +0000 Subject: add IPC_MESSAGE_EXPORT to IPC_STRUCT_BEGIN. This is needed for complex message structures that need to marshall a lot of params (like ViewHostMsg_FrameNavigate_Params). R=darin@chromium.org BUG=90442 Review URL: http://codereview.chromium.org/7828067 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99853 0039d316-1c4b-4281-b951-d872f2087c98 --- ipc/ipc_message_macros.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'ipc') diff --git a/ipc/ipc_message_macros.h b/ipc/ipc_message_macros.h index 63faa48..77a8415 100644 --- a/ipc/ipc_message_macros.h +++ b/ipc/ipc_message_macros.h @@ -183,22 +183,22 @@ #include "ipc/ipc_message_utils_impl.h" #endif +// Override this to force message classes to be exported. +#ifndef IPC_MESSAGE_EXPORT +#define IPC_MESSAGE_EXPORT +#endif + // Macros for defining structs. May be subsequently redefined. #define IPC_STRUCT_BEGIN(struct_name) \ struct struct_name; \ IPC_STRUCT_TRAITS_BEGIN(struct_name) \ IPC_STRUCT_TRAITS_END() \ - struct struct_name : IPC::NoParams { \ + struct IPC_MESSAGE_EXPORT struct_name : IPC::NoParams { \ struct_name(); \ ~struct_name(); #define IPC_STRUCT_MEMBER(type, name) type name; #define IPC_STRUCT_END() }; -// Override this to force message classes to be exported. -#ifndef IPC_MESSAGE_EXPORT -#define IPC_MESSAGE_EXPORT -#endif - // Message macros collect specific numbers of arguments and funnel them into // the common message generation macro. These should never be redefined. #define IPC_MESSAGE_CONTROL0(msg_class) \ -- cgit v1.1