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/param_traits_log_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/param_traits_log_macros.h')
-rw-r--r-- | ipc/param_traits_log_macros.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ipc/param_traits_log_macros.h b/ipc/param_traits_log_macros.h index 40f8ec4..de2006c 100644 --- a/ipc/param_traits_log_macros.h +++ b/ipc/param_traits_log_macros.h @@ -21,6 +21,7 @@ // Set up so next include will generate log methods. #undef IPC_STRUCT_TRAITS_BEGIN #undef IPC_STRUCT_TRAITS_MEMBER +#undef IPC_STRUCT_TRAITS_PARENT #undef IPC_STRUCT_TRAITS_END #define IPC_STRUCT_TRAITS_BEGIN(struct_name) \ void ParamTraits<struct_name>::Log(const param_type& p, std::string* l) { \ @@ -31,6 +32,11 @@ l->append(", "); \ LogParam(p.name, l); \ needs_comma = true; +#define IPC_STRUCT_TRAITS_PARENT(type) \ + if (needs_comma) \ + l->append(", "); \ + ParamTraits<type>::Log(p, l); \ + needs_comma = true; #define IPC_STRUCT_TRAITS_END() \ l->append(")"); \ } |