Index: content/common/content_param_traits.h |
diff --git a/content/common/content_param_traits.h b/content/common/content_param_traits.h |
index 5ce29da76453f742a12d1222e7bcc91dda4fff7b..c20b75d1b8abae96f96ba24b020730b8268afc5a 100644 |
--- a/content/common/content_param_traits.h |
+++ b/content/common/content_param_traits.h |
@@ -18,6 +18,10 @@ |
#include "content/common/cursors/webcursor.h" |
#include "third_party/WebKit/public/platform/WebInputEvent.h" |
+namespace content { |
+class MessagePort; |
+} |
+ |
namespace IPC { |
template <> |
@@ -47,6 +51,16 @@ struct ParamTraits<WebInputEventPointer> { |
static void Log(const param_type& p, std::string* l); |
}; |
+template <> |
+struct CONTENT_EXPORT ParamTraits<content::MessagePort> { |
+ typedef content::MessagePort param_type; |
+ static void GetSize(base::PickleSizer* sizer, const param_type& p); |
+ static void Write(base::Pickle* m, const param_type& p); |
+ static bool Read(const base::Pickle* m, base::PickleIterator* iter, |
+ param_type* r); |
+ static void Log(const param_type& p, std::string* l); |
+}; |
+ |
} // namespace IPC |
#endif // CONTENT_COMMON_CONTENT_PARAM_TRAITS_H_ |