diff options
author | jianli@chromium.org <jianli@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-27 18:29:24 +0000 |
---|---|---|
committer | jianli@chromium.org <jianli@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-27 18:29:24 +0000 |
commit | 22339b123c68805c7c293c67f6f47ea45f0fd1a1 (patch) | |
tree | bb05e2e3eb0362338e921a4dce9d5c350437326e /chrome/common/common_param_traits.h | |
parent | e840afdedd33728491639312a268fbf37a48f078 (diff) | |
download | chromium_src-22339b123c68805c7c293c67f6f47ea45f0fd1a1.zip chromium_src-22339b123c68805c7c293c67f6f47ea45f0fd1a1.tar.gz chromium_src-22339b123c68805c7c293c67f6f47ea45f0fd1a1.tar.bz2 |
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
Diffstat (limited to 'chrome/common/common_param_traits.h')
-rw-r--r-- | chrome/common/common_param_traits.h | 13 |
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; |