diff options
author | viettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-02 01:27:26 +0000 |
---|---|---|
committer | viettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-02 01:27:26 +0000 |
commit | d062d9636fb69a79942ada2321fe48e9f326cf8c (patch) | |
tree | 411c6f8c59b2f282a2ff539d2a6b22adade8cb84 /ppapi/proxy/ppb_flash_file_proxy.h | |
parent | c35d5507f07fa3a7820b991b69786c6175590849 (diff) | |
download | chromium_src-d062d9636fb69a79942ada2321fe48e9f326cf8c.zip chromium_src-d062d9636fb69a79942ada2321fe48e9f326cf8c.tar.gz chromium_src-d062d9636fb69a79942ada2321fe48e9f326cf8c.tar.bz2 |
Pepper/Flapper: Get rid of unimplemented private file ref stuff and implement proxy.
BUG=none
TEST=builds? works?
Review URL: http://codereview.chromium.org/6594099
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76488 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/proxy/ppb_flash_file_proxy.h')
-rw-r--r-- | ppapi/proxy/ppb_flash_file_proxy.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/ppapi/proxy/ppb_flash_file_proxy.h b/ppapi/proxy/ppb_flash_file_proxy.h index be4821c..e10bb94 100644 --- a/ppapi/proxy/ppb_flash_file_proxy.h +++ b/ppapi/proxy/ppb_flash_file_proxy.h @@ -13,11 +13,13 @@ #include "ppapi/proxy/interface_proxy.h" struct PP_FileInfo_Dev; +struct PPB_Flash_File_FileRef; struct PPB_Flash_File_ModuleLocal; namespace pp { namespace proxy { +class HostResource; struct SerializedDirEntry; class PPB_Flash_File_ModuleLocal_Proxy : public InterfaceProxy { @@ -63,6 +65,32 @@ class PPB_Flash_File_ModuleLocal_Proxy : public InterfaceProxy { int32_t* result); }; +class PPB_Flash_File_FileRef_Proxy : public InterfaceProxy { + public: + PPB_Flash_File_FileRef_Proxy(Dispatcher* dispatcher, + const void* target_interface); + virtual ~PPB_Flash_File_FileRef_Proxy(); + + static const Info* GetInfo(); + + const PPB_Flash_File_FileRef* ppb_flash_file_module_local_target() const { + return static_cast<const PPB_Flash_File_FileRef*>(target_interface()); + } + + // InterfaceProxy implementation. + virtual bool OnMessageReceived(const IPC::Message& msg); + + private: + // Message handlers. + void OnMsgOpenFile(const HostResource& host_resource, + int32_t mode, + IPC::PlatformFileForTransit* file_handle, + int32_t* result); + void OnMsgQueryFile(const HostResource& host_resource, + PP_FileInfo_Dev* info, + int32_t* result); +}; + } // namespace proxy } // namespace pp |