| Index: trunk/src/ppapi/proxy/ppapi_param_traits.cc
|
| ===================================================================
|
| --- trunk/src/ppapi/proxy/ppapi_param_traits.cc (revision 220164)
|
| +++ trunk/src/ppapi/proxy/ppapi_param_traits.cc (working copy)
|
| @@ -175,6 +175,36 @@
|
| l->append(" bytes)>");
|
| }
|
|
|
| +// TODO(teravest): Remove this when FileRef is moved to the "new" proxy.
|
| +// PPB_FileRef_CreateInfo ------------------------------------------------------
|
| +
|
| +// static
|
| +void ParamTraits<ppapi::PPB_FileRef_CreateInfo>::Write(Message* m,
|
| + const param_type& p) {
|
| + ParamTraits<ppapi::HostResource>::Write(m, p.resource);
|
| + ParamTraits<int>::Write(m, p.file_system_type);
|
| + ParamTraits<std::string>::Write(m, p.path);
|
| + ParamTraits<std::string>::Write(m, p.name);
|
| + ParamTraits<PP_Resource>::Write(m, p.file_system_plugin_resource);
|
| +}
|
| +
|
| +// static
|
| +bool ParamTraits<ppapi::PPB_FileRef_CreateInfo>::Read(const Message* m,
|
| + PickleIterator* iter,
|
| + param_type* r) {
|
| + return
|
| + ParamTraits<ppapi::HostResource>::Read(m, iter, &r->resource) &&
|
| + ParamTraits<int>::Read(m, iter, &r->file_system_type) &&
|
| + ParamTraits<std::string>::Read(m, iter, &r->path) &&
|
| + ParamTraits<std::string>::Read(m, iter, &r->name) &&
|
| + ParamTraits<PP_Resource>::Read(m, iter, &r->file_system_plugin_resource);
|
| +}
|
| +
|
| +// static
|
| +void ParamTraits<ppapi::PPB_FileRef_CreateInfo>::Log(const param_type& p,
|
| + std::string* l) {
|
| +}
|
| +
|
| // HostResource ----------------------------------------------------------------
|
|
|
| // static
|
| @@ -244,6 +274,28 @@
|
| std::string* l) {
|
| }
|
|
|
| +// std::vector<PPB_FileRef_CreateInfo> -----------------------------------------
|
| +
|
| +void ParamTraits< std::vector<ppapi::PPB_FileRef_CreateInfo> >::Write(
|
| + Message* m,
|
| + const param_type& p) {
|
| + WriteVectorWithoutCopy(m, p);
|
| +}
|
| +
|
| +// static
|
| +bool ParamTraits< std::vector<ppapi::PPB_FileRef_CreateInfo> >::Read(
|
| + const Message* m,
|
| + PickleIterator* iter,
|
| + param_type* r) {
|
| + return ReadVectorWithoutCopy(m, iter, r);
|
| +}
|
| +
|
| +// static
|
| +void ParamTraits< std::vector<ppapi::PPB_FileRef_CreateInfo> >::Log(
|
| + const param_type& p,
|
| + std::string* l) {
|
| +}
|
| +
|
| // ppapi::PpapiPermissions -----------------------------------------------------
|
|
|
| void ParamTraits<ppapi::PpapiPermissions>::Write(Message* m,
|
|
|