diff options
author | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-05 19:08:32 +0000 |
---|---|---|
committer | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-05 19:08:32 +0000 |
commit | 94dc971dc40c6cfea33abd234e744ac314d0bc2a (patch) | |
tree | 0f2f3f0b57dfdb01c65afc6833e7ad622eb85697 /ipc/ipc_message_macros.h | |
parent | a14ea34921d1347ceca1c8ddaa6dc1cf6efb1ddb (diff) | |
download | chromium_src-94dc971dc40c6cfea33abd234e744ac314d0bc2a.zip chromium_src-94dc971dc40c6cfea33abd234e744ac314d0bc2a.tar.gz chromium_src-94dc971dc40c6cfea33abd234e744ac314d0bc2a.tar.bz2 |
Move resource related IPCs to their own file in content. I added a IPC_STRUCT_TRAITS_PARENT macro to allow the automatic serializing macros to add a parent struct.
TBR=tsepez
Review URL: http://codereview.chromium.org/6628035
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@77048 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ipc/ipc_message_macros.h')
-rw-r--r-- | ipc/ipc_message_macros.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/ipc/ipc_message_macros.h b/ipc/ipc_message_macros.h index de1132e..b8885dc 100644 --- a/ipc/ipc_message_macros.h +++ b/ipc/ipc_message_macros.h @@ -130,9 +130,11 @@ // // Externally-defined structs are registered with IPC_STRUCT_TRAITS_BEGIN(), // IPC_STRUCT_TRAITS_MEMBER(), and IPC_STRUCT_TRAITS_END() macros. These -// cause registration of the types with message generation only. Note that -// IPC_STRUCT_TRAITS_MEMBER() is only permitted inside matching calls -// to IPC_STRUCT_TRAITS_BEGIN() / IPC_STRUCT_TRAITS_END(). +// cause registration of the types with message generation only. +// There's also IPC_STRUCT_TRAITS_PARENT, which is used to register a parent +// class (whose own traits are already defined). Note that +// IPC_STRUCT_TRAITS_MEMBER() and IPC_STRUCT_TRAITS_PARENT are only permitted +// inside matching calls to IPC_STRUCT_TRAITS_BEGIN() / IPC_STRUCT_TRAITS_END(). // // Enum types are registered with a single IPC_ENUM_TRAITS() macro. There // is no need to enumerate each value to the IPC mechanism. |