From ea505a9d49ef9770557423d2e4525d8fb91eab69 Mon Sep 17 00:00:00 2001 From: "sanga@chromium.org" Date: Thu, 7 Jul 2011 18:34:40 +0000 Subject: Migrating PPB_FileIO_Dev, PPB_FileRef_Dev, and PPB_FileSystem_Dev dependencies to PPB_FileIO, PPB_FileRef, and PPB_FileSystem. Also fixed some lint errors. Review URL: http://codereview.chromium.org/7248047 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@91733 0039d316-1c4b-4281-b951-d872f2087c98 --- ppapi/proxy/ppapi_param_traits.cc | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'ppapi/proxy/ppapi_param_traits.cc') diff --git a/ppapi/proxy/ppapi_param_traits.cc b/ppapi/proxy/ppapi_param_traits.cc index aa21dc1..4c3d2fb 100644 --- a/ppapi/proxy/ppapi_param_traits.cc +++ b/ppapi/proxy/ppapi_param_traits.cc @@ -6,7 +6,7 @@ #include // For memcpy -#include "ppapi/c/dev/pp_file_info_dev.h" +#include "ppapi/c/pp_file_info.h" #include "ppapi/c/pp_resource.h" #include "ppapi/c/private/ppb_flash_tcp_socket.h" #include "ppapi/proxy/host_resource.h" @@ -97,10 +97,10 @@ bool ParamTraits::Read(const Message* m, void** iter, param_type* r) { void ParamTraits::Log(const param_type& p, std::string* l) { } -// PP_FileInfo_Dev ------------------------------------------------------------- +// PP_FileInfo ------------------------------------------------------------- // static -void ParamTraits::Write(Message* m, const param_type& p) { +void ParamTraits::Write(Message* m, const param_type& p) { ParamTraits::Write(m, p.size); ParamTraits::Write(m, static_cast(p.type)); ParamTraits::Write(m, static_cast(p.system_type)); @@ -110,7 +110,7 @@ void ParamTraits::Write(Message* m, const param_type& p) { } // static -bool ParamTraits::Read(const Message* m, void** iter, +bool ParamTraits::Read(const Message* m, void** iter, param_type* r) { int type, system_type; if (!ParamTraits::Read(m, iter, &r->size) || @@ -124,17 +124,17 @@ bool ParamTraits::Read(const Message* m, void** iter, type != PP_FILETYPE_DIRECTORY && type != PP_FILETYPE_OTHER) return false; - r->type = static_cast(type); + r->type = static_cast(type); if (system_type != PP_FILESYSTEMTYPE_EXTERNAL && system_type != PP_FILESYSTEMTYPE_LOCALPERSISTENT && system_type != PP_FILESYSTEMTYPE_LOCALTEMPORARY) return false; - r->system_type = static_cast(system_type); + r->system_type = static_cast(system_type); return true; } // static -void ParamTraits::Log(const param_type& p, std::string* l) { +void ParamTraits::Log(const param_type& p, std::string* l) { } // PP_Flash_NetAddress --------------------------------------------------------- -- cgit v1.1