diff options
| author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-17 23:59:39 +0000 |
|---|---|---|
| committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-17 23:59:39 +0000 |
| commit | 4deeb43f8b7c1b21d3545228db86de2c73c9fd43 (patch) | |
| tree | 9b44b6a5908d3948eb74d41f1dc69433c5a963d7 /ppapi/c | |
| parent | c2a6aa323905a384677df735ccaa68ac700b1587 (diff) | |
| download | chromium_src-4deeb43f8b7c1b21d3545228db86de2c73c9fd43.zip chromium_src-4deeb43f8b7c1b21d3545228db86de2c73c9fd43.tar.gz chromium_src-4deeb43f8b7c1b21d3545228db86de2c73c9fd43.tar.bz2 | |
Implement proxying for FileRef and FileChooser.
This also changes the FileRef interface to remove the Query function, since
there is no close function, there's no way to cancel the current request, which
makes memory management of the info structure very difficult.
Review URL: http://codereview.chromium.org/6519057
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75331 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/c')
| -rw-r--r-- | ppapi/c/dev/ppb_file_ref_dev.h | 10 | ||||
| -rw-r--r-- | ppapi/c/private/ppb_proxy_private.h | 7 |
2 files changed, 8 insertions, 9 deletions
diff --git a/ppapi/c/dev/ppb_file_ref_dev.h b/ppapi/c/dev/ppb_file_ref_dev.h index 0f74a7c..4799b34 100644 --- a/ppapi/c/dev/ppb_file_ref_dev.h +++ b/ppapi/c/dev/ppb_file_ref_dev.h @@ -5,13 +5,13 @@ #ifndef PPAPI_C_DEV_PPB_FILE_REF_DEV_H_ #define PPAPI_C_DEV_PPB_FILE_REF_DEV_H_ -#include "ppapi/c/pp_bool.h" #include "ppapi/c/dev/pp_file_info_dev.h" +#include "ppapi/c/pp_bool.h" #include "ppapi/c/pp_instance.h" #include "ppapi/c/pp_resource.h" #include "ppapi/c/pp_var.h" -#define PPB_FILEREF_DEV_INTERFACE "PPB_FileRef(Dev);0.5" +#define PPB_FILEREF_DEV_INTERFACE "PPB_FileRef(Dev);0.6" // A FileRef is a "weak pointer" to a file in a file system. It contains a // PP_FileSystemType identifier and a file path string. @@ -51,12 +51,6 @@ struct PPB_FileRef_Dev { PP_Bool make_ancestors, struct PP_CompletionCallback callback); - // Queries info about the file. You must have read access to this file if it - // exists in the external filesystem. - int32_t (*Query)(PP_Resource file_ref, - struct PP_FileInfo_Dev* info, - struct PP_CompletionCallback callback); - // Updates timestamps for a file. You must have write access to the file if // it exists in the external filesystem. int32_t (*Touch)(PP_Resource file_ref, diff --git a/ppapi/c/private/ppb_proxy_private.h b/ppapi/c/private/ppb_proxy_private.h index fc8341e..d003281 100644 --- a/ppapi/c/private/ppb_proxy_private.h +++ b/ppapi/c/private/ppb_proxy_private.h @@ -5,15 +5,20 @@ #ifndef PPAPI_C_PRIVATE_PROXY_PRIVATE_H_ #define PPAPI_C_PRIVATE_PROXY_PRIVATE_H_ +#include "ppapi/c/pp_instance.h" #include "ppapi/c/pp_module.h" +#include "ppapi/c/pp_resource.h" -#define PPB_PROXY_PRIVATE_INTERFACE "PPB_Proxy_Private;1" +#define PPB_PROXY_PRIVATE_INTERFACE "PPB_Proxy_Private;2" // Exposes functions needed by the out-of-process proxy to call into the // renderer PPAPI implementation. struct PPB_Proxy_Private { // Called when the given plugin process has crashed. void (*PluginCrashed)(PP_Module module); + + // Returns the instance for the given resource, or 0 on failure. + PP_Instance (*GetInstanceForResource)(PP_Resource resource); }; #endif // PPAPI_C_PRIVATE_PROXY_PRIVATE_H_ |
