Index: ipc/ipc_message_utils.cc |
=================================================================== |
--- ipc/ipc_message_utils.cc (revision 65847) |
+++ ipc/ipc_message_utils.cc (working copy) |
@@ -233,6 +233,15 @@ |
l->append(base::Uint64ToString(p)); |
} |
+void ParamTraits<unsigned short>::Write(Message* m, const param_type& p) { |
+ m->WriteBytes(p, sizeof(param_type)); |
+} |
+ |
+bool ParamTraits<unsigned short>::Read(const Message* m, void** iter, |
+ param_type* r) { |
+ return m->ReadBytes(iter, r, sizeof(param_type)); |
+} |
+ |
viettrungluu
2010/11/11 21:09:56
What about Log?
|
void ParamTraits<base::Time>::Write(Message* m, const param_type& p) { |
ParamTraits<int64>::Write(m, p.ToInternalValue()); |
} |