| Index: ipc/ipc_message_utils.cc
|
| diff --git a/ipc/ipc_message_utils.cc b/ipc/ipc_message_utils.cc
|
| index b6b979278a9e387a9af83c9ca2da97de130426b6..dbb2572e6683c707ead39035b42ecbb223dc3a64 100644
|
| --- a/ipc/ipc_message_utils.cc
|
| +++ b/ipc/ipc_message_utils.cc
|
| @@ -449,6 +449,28 @@ void ParamTraits<std::vector<bool> >::Log(const param_type& p, std::string* l) {
|
| }
|
| }
|
|
|
| +void ParamTraits<BrokerableAttachment::AttachmentId>::Write(
|
| + Message* m,
|
| + const param_type& p) {
|
| + m->WriteBytes(p.nonce, BrokerableAttachment::kNonceSize);
|
| +}
|
| +
|
| +bool ParamTraits<BrokerableAttachment::AttachmentId>::Read(
|
| + const Message* m,
|
| + base::PickleIterator* iter,
|
| + param_type* r) {
|
| + const char* data;
|
| + if (!iter->ReadBytes(&data, BrokerableAttachment::kNonceSize))
|
| + return false;
|
| + memcpy(r->nonce, data, BrokerableAttachment::kNonceSize);
|
| + return true;
|
| +}
|
| +
|
| +void ParamTraits<BrokerableAttachment::AttachmentId>::Log(const param_type& p,
|
| + std::string* l) {
|
| + l->append(base::HexEncode(p.nonce, BrokerableAttachment::kNonceSize));
|
| +}
|
| +
|
| void ParamTraits<base::DictionaryValue>::Write(Message* m,
|
| const param_type& p) {
|
| WriteValue(m, &p, 0);
|
|
|