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

Unified Diff: ipc/ipc_message_macros.h

Issue 6410007: Make the implementation .cc files go away, instead have the authors give us a... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 months 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 side-by-side diff with in-line comments
Download patch
Index: ipc/ipc_message_macros.h
===================================================================
--- ipc/ipc_message_macros.h (revision 73235)
+++ ipc/ipc_message_macros.h (working copy)
@@ -360,6 +360,25 @@
// but it needs gcc 4.3 and xcode doesn't use it yet. When that happens, switch
// to it.
+#define IPC_STRUCT_FIRST(type, name, init) \
+ struct IPC_STRUCT_NAME { IPC_STRUCT_NAME (); ~IPC_STRUCT_NAME (); \
+ IPC_STRUCT_MEMBER(type, name)
+#define IPC_STRUCT_NEXT(type, name, init) \
+ IPC_STRUCT_MEMBER(type, name)
+#define IPC_STRUCT_LAST(type, name, init) \
+ IPC_STRUCT_MEMBER(type, name) \
+ }; \
+ namespace IPC { \
+ template <> \
+ struct ParamTraits<IPC_STRUCT_NAME> { \
+ typedef IPC_STRUCT_NAME param_type; \
+ static void Write(Message* m, const param_type& p); \
+ static bool Read(const Message* m, void** iter, param_type* p); \
+ static void Log(const param_type& p, std::string* l); \
+ }; \
+ }
+#define IPC_STRUCT_MEMBER(type, name) type name;
+
#define IPC_MESSAGE_CONTROL0(msg_class) \
class msg_class : public IPC::Message { \
public: \

Powered by Google App Engine
This is Rietveld 408576698