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

Unified Diff: chrome/common/safe_browsing/ipc_protobuf_message_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 | « chrome/common/render_messages.cc ('k') | chrome/common/safe_browsing/protobuf_message_param_traits.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/safe_browsing/ipc_protobuf_message_macros.h
diff --git a/chrome/common/safe_browsing/ipc_protobuf_message_macros.h b/chrome/common/safe_browsing/ipc_protobuf_message_macros.h
index 4f14c79bdf6144e83cb4614f3d2a1b8d700bd159..db17241ad7f4a7280c386a36f9270042cebb3675 100644
--- a/chrome/common/safe_browsing/ipc_protobuf_message_macros.h
+++ b/chrome/common/safe_browsing/ipc_protobuf_message_macros.h
@@ -31,23 +31,24 @@
#include <string>
-#define IPC_PROTOBUF_MESSAGE_TRAITS_BEGIN(message_name) \
- namespace IPC { \
- template <> \
- struct IPC_MESSAGE_EXPORT ParamTraits<message_name> { \
- typedef message_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); \
- \
- private: \
- template <class P> \
- static bool ReadParamF(const Message* m, \
- base::PickleIterator* iter, \
- param_type* p, \
- void (param_type::*setter_function)(P)); \
- }; \
+#define IPC_PROTOBUF_MESSAGE_TRAITS_BEGIN(message_name) \
+ namespace IPC { \
+ template <> \
+ struct IPC_MESSAGE_EXPORT ParamTraits<message_name> { \
+ typedef message_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); \
+ \
+ private: \
+ template <class P> \
+ static bool ReadParamF(const base::Pickle* m, \
+ base::PickleIterator* iter, \
+ param_type* p, \
+ void (param_type::*setter_function)(P)); \
+ }; \
} // namespace IPC
#define IPC_PROTOBUF_MESSAGE_TRAITS_OPTIONAL_FUNDAMENTAL_MEMBER(name)
« no previous file with comments | « chrome/common/render_messages.cc ('k') | chrome/common/safe_browsing/protobuf_message_param_traits.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698