Chromium Code Reviews| Index: ipc/ipc_message_utils.h |
| =================================================================== |
| --- ipc/ipc_message_utils.h (revision 65847) |
| +++ ipc/ipc_message_utils.h (working copy) |
| @@ -241,6 +241,14 @@ |
| static void Log(const param_type& p, std::string* l); |
| }; |
| +template <> |
| +struct ParamTraits<unsigned short> { |
|
viettrungluu
2010/11/11 21:09:56
It's a little odd to have param traits for |unsign
brettw
2010/11/11 21:35:46
Yeah, I think we should just add stuff we actually
|
| + typedef unsigned short param_type; |
| + static void Write(Message* m, const param_type& p); |
| + static bool Read(const Message* m, void** iter, param_type* r); |
| + static void Log(const param_type& p, std::string* l); |
| +}; |
| + |
| // Note that the IPC layer doesn't sanitize NaNs and +/- INF values. Clients |
| // should be sure to check the sanity of these values after receiving them over |
| // IPC. |