summaryrefslogtreecommitdiffstats
path: root/chrome/common/common_param_traits.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/common/common_param_traits.h')
-rw-r--r--chrome/common/common_param_traits.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/chrome/common/common_param_traits.h b/chrome/common/common_param_traits.h
index da04edc..d77f15c 100644
--- a/chrome/common/common_param_traits.h
+++ b/chrome/common/common_param_traits.h
@@ -49,6 +49,10 @@ namespace printing {
struct PageRange;
} // namespace printing
+namespace webkit_blob {
+class BlobData;
+}
+
namespace webkit_glue {
struct PasswordForm;
struct WebApplicationInfo;
@@ -272,6 +276,15 @@ struct ParamTraits<scoped_refptr<net::UploadData> > {
static void Log(const param_type& p, std::string* l);
};
+// Traits for webkit_blob::BlobData.
+template <>
+struct ParamTraits<scoped_refptr<webkit_blob::BlobData> > {
+ typedef scoped_refptr<webkit_blob::BlobData> param_type;
+ static void Write(Message* m, const param_type& p);
+ static bool Read(const Message* m, void** iter, param_type* r);
+ static void Log(const param_type& p, std::string* l);
+};
+
template<>
struct ParamTraits<ThumbnailScore> {
typedef ThumbnailScore param_type;