Index: content/common/content_param_traits.h |
diff --git a/content/common/content_param_traits.h b/content/common/content_param_traits.h |
index d4bc359863e4102b62bfb9174aa79e82f8c36038..0a66f3f5a1375a532a43902feac817c2a4923810 100644 |
--- a/content/common/content_param_traits.h |
+++ b/content/common/content_param_traits.h |
@@ -14,6 +14,7 @@ |
#ifndef CONTENT_COMMON_CONTENT_PARAM_TRAITS_H_ |
#define CONTENT_COMMON_CONTENT_PARAM_TRAITS_H_ |
+#include "base/memory/ref_counted_memory.h" |
#include "content/common/content_param_traits_macros.h" |
#include "third_party/WebKit/public/web/WebInputEvent.h" |
#include "webkit/common/cursors/webcursor.h" |
@@ -28,6 +29,14 @@ class IPEndPoint; |
namespace IPC { |
+template<> |
+struct ParamTraits<scoped_refptr<base::RefCountedMemory> > { |
+ typedef scoped_refptr<base::RefCountedMemory> param_type; |
+ static void Write(Message* m, const param_type& p); |
+ static bool Read(const Message* m, PickleIterator* iter, param_type* p); |
+ static void Log(const param_type& p, std::string* l); |
+}; |
+ |
template <> |
struct ParamTraits<net::IPEndPoint> { |
typedef net::IPEndPoint param_type; |