diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-21 17:28:16 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-21 17:28:16 +0000 |
commit | 1162a6aa785238a562f59287b2911cbeb3510955 (patch) | |
tree | 78253eeff401afd8cd5aa312f3664efd095f139f /ppapi/proxy/ppapi_param_traits.h | |
parent | cc057b01668c93e6c769e709c429d1a0c8f15065 (diff) | |
download | chromium_src-1162a6aa785238a562f59287b2911cbeb3510955.zip chromium_src-1162a6aa785238a562f59287b2911cbeb3510955.tar.gz chromium_src-1162a6aa785238a562f59287b2911cbeb3510955.tar.bz2 |
Properly serialize FileRef_CreateInfo vectors. This has the same serialization
problem as vectors of SerializedVars.
TEST=manual
BUG=none
Review URL: http://codereview.chromium.org/6879101
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82507 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/proxy/ppapi_param_traits.h')
-rw-r--r-- | ppapi/proxy/ppapi_param_traits.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ppapi/proxy/ppapi_param_traits.h b/ppapi/proxy/ppapi_param_traits.h index be8f6e4..2d07191 100644 --- a/ppapi/proxy/ppapi_param_traits.h +++ b/ppapi/proxy/ppapi_param_traits.h @@ -139,6 +139,14 @@ struct ParamTraits< std::vector<pp::proxy::SerializedVar> > { }; template<> +struct ParamTraits< std::vector<pp::proxy::PPBFileRef_CreateInfo> > { + typedef std::vector<pp::proxy::PPBFileRef_CreateInfo> 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<pp::proxy::SerializedFlashMenu> { typedef pp::proxy::SerializedFlashMenu param_type; static void Write(Message* m, const param_type& p); |