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

Unified Diff: ipc/param_traits_macros.h

Issue 1659003003: IPC::Message -> base::Pickle (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: one more mac fix Created 4 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
« no previous file with comments | « ipc/mojo/ipc_mojo_message_helper.cc ('k') | ipc/param_traits_read_macros.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ipc/param_traits_macros.h
diff --git a/ipc/param_traits_macros.h b/ipc/param_traits_macros.h
index 317f31228d993f2d26aa0e8eeb5d9ab21c9aa620..7c4cc69275bc1ec209afe7fe34aa20a24bb18b38 100644
--- a/ipc/param_traits_macros.h
+++ b/ipc/param_traits_macros.h
@@ -8,16 +8,17 @@
#include <string>
// Traits generation for structs.
-#define IPC_STRUCT_TRAITS_BEGIN(struct_name) \
- namespace IPC { \
- template <> \
- struct IPC_MESSAGE_EXPORT ParamTraits<struct_name> { \
- typedef struct_name param_type; \
- static void Write(Message* m, const param_type& p); \
- static bool Read(const Message* m, base::PickleIterator* iter, \
- param_type* p); \
- static void Log(const param_type& p, std::string* l); \
- }; \
+#define IPC_STRUCT_TRAITS_BEGIN(struct_name) \
+ namespace IPC { \
+ template <> \
+ struct IPC_MESSAGE_EXPORT ParamTraits<struct_name> { \
+ typedef struct_name param_type; \
+ static void Write(base::Pickle* m, const param_type& p); \
+ static bool Read(const base::Pickle* m, \
+ base::PickleIterator* iter, \
+ param_type* p); \
+ static void Log(const param_type& p, std::string* l); \
+ }; \
}
#define IPC_STRUCT_TRAITS_MEMBER(name)
@@ -48,15 +49,16 @@
// Traits generation for enums. This macro may be redefined later.
#define IPC_ENUM_TRAITS_VALIDATE(enum_name, validation_expression) \
- namespace IPC { \
- template <> \
- struct IPC_MESSAGE_EXPORT ParamTraits<enum_name> { \
- typedef enum_name param_type; \
- static void Write(Message* m, const param_type& p); \
- static bool Read(const Message* m, base::PickleIterator* iter, \
- param_type* p); \
- static void Log(const param_type& p, std::string* l); \
- }; \
+ namespace IPC { \
+ template <> \
+ struct IPC_MESSAGE_EXPORT ParamTraits<enum_name> { \
+ typedef enum_name param_type; \
+ static void Write(base::Pickle* m, const param_type& p); \
+ static bool Read(const base::Pickle* m, \
+ base::PickleIterator* iter, \
+ param_type* p); \
+ static void Log(const param_type& p, std::string* l); \
+ }; \
}
#endif // IPC_PARAM_TRAITS_MACROS_H_
« no previous file with comments | « ipc/mojo/ipc_mojo_message_helper.cc ('k') | ipc/param_traits_read_macros.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698