Index: ipc/ipc_message_utils.h |
diff --git a/ipc/ipc_message_utils.h b/ipc/ipc_message_utils.h |
index 94651419be23314484f6fe6b91a8d2fc643c1e3e..863d0d60d1989a78f014a82a5ff46f11db3f15f5 100644 |
--- a/ipc/ipc_message_utils.h |
+++ b/ipc/ipc_message_utils.h |
@@ -20,6 +20,7 @@ |
#include "base/strings/string_util.h" |
#include "base/strings/stringprintf.h" |
#include "base/tuple.h" |
+#include "ipc/brokerable_attachment.h" |
#include "ipc/ipc_message_start.h" |
#include "ipc/ipc_param_traits.h" |
#include "ipc/ipc_sync_message.h" |
@@ -428,6 +429,15 @@ struct ParamTraits<std::pair<A, B> > { |
} |
}; |
+// IPC ParamTraits ------------------------------------------------------------- |
+template <> |
+struct IPC_EXPORT ParamTraits<IPC::BrokerableAttachment::AttachmentId> { |
+ typedef IPC::BrokerableAttachment::AttachmentId 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); |
+}; |
+ |
// Base ParamTraits ------------------------------------------------------------ |
template <> |