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

Unified Diff: ipc/ipc_message_utils.h

Issue 1418743006: ipc: Add ParamTraits<signed char> (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@my-origin
Patch Set: Created 5 years, 2 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 | « no previous file | ipc/ipc_message_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ipc/ipc_message_utils.h
diff --git a/ipc/ipc_message_utils.h b/ipc/ipc_message_utils.h
index 45f424d763370538b95ac25c01c4bf24114cfc76..a08fcf23268561d4a528466853db81ef7d0751d7 100644
--- a/ipc/ipc_message_utils.h
+++ b/ipc/ipc_message_utils.h
@@ -141,6 +141,14 @@ struct IPC_EXPORT ParamTraits<unsigned char> {
};
template <>
Tom Sepez 2015/10/29 22:30:01 nit: put this before <unsigned char> just to keep
ortuno 2015/10/29 22:43:34 Done.
+struct IPC_EXPORT ParamTraits<signed char> {
Tom Sepez 2015/10/29 22:30:01 you shouldn't have to explicitly say "signed" -- I
ortuno 2015/10/29 22:43:34 If I don't put the 'signed' the compiler complains
+ typedef signed char param_type;
+ static void Write(Message* m, const param_type& p);
+ static bool Read(const Message* m, base::PickleIterator* iter, param_type* r);
+ static void Log(const param_type& p, std::string* l);
+};
+
+template <>
struct IPC_EXPORT ParamTraits<unsigned short> {
typedef unsigned short param_type;
static void Write(Message* m, const param_type& p);
« no previous file with comments | « no previous file | ipc/ipc_message_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698