From 22339b123c68805c7c293c67f6f47ea45f0fd1a1 Mon Sep 17 00:00:00 2001 From: "jianli@chromium.org" Date: Fri, 27 Aug 2010 18:29:24 +0000 Subject: Support sending BlobData to browser process. Also support sending UploadData with the blob info to browser process. BUG=none TEST=none Review URL: http://codereview.chromium.org/3108042 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57707 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/common/common_param_traits.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'chrome/common/common_param_traits.h') 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 > { static void Log(const param_type& p, std::string* l); }; +// Traits for webkit_blob::BlobData. +template <> +struct ParamTraits > { + typedef scoped_refptr 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 { typedef ThumbnailScore param_type; -- cgit v1.1