summaryrefslogtreecommitdiffstats
path: root/ipc/ipc_message_macros.h
diff options
context:
space:
mode:
authordpranke@chromium.org <dpranke@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-06 22:51:11 +0000
committerdpranke@chromium.org <dpranke@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-06 22:51:11 +0000
commit50473c1cae9ac7989de4ca21ca7ec6adef4d20bd (patch)
treedb674bc7643d15d2e94b427e3bb738d24e4eda0f /ipc/ipc_message_macros.h
parentcf4cc26dcda805ab251e90fd852bfd7d7ddd298d (diff)
downloadchromium_src-50473c1cae9ac7989de4ca21ca7ec6adef4d20bd.zip
chromium_src-50473c1cae9ac7989de4ca21ca7ec6adef4d20bd.tar.gz
chromium_src-50473c1cae9ac7989de4ca21ca7ec6adef4d20bd.tar.bz2
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
Diffstat (limited to 'ipc/ipc_message_macros.h')
-rw-r--r--ipc/ipc_message_macros.h12
1 files changed, 6 insertions, 6 deletions
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) \