Chromium Code Reviews| Index: ppapi/c/ppb_file_ref.h |
| diff --git a/ppapi/c/ppb_file_ref.h b/ppapi/c/ppb_file_ref.h |
| index 910fd80fedbff3d1bc45fa10afb94d0e9d984edf..cf4ebc20334131fe9c84f4097649b8ebc819e52b 100644 |
| --- a/ppapi/c/ppb_file_ref.h |
| +++ b/ppapi/c/ppb_file_ref.h |
| @@ -3,11 +3,12 @@ |
| * found in the LICENSE file. |
| */ |
| -/* From ppb_file_ref.idl modified Thu Mar 7 12:02:53 2013. */ |
| +/* From ppb_file_ref.idl modified Thu May 2 12:46:08 2013. */ |
| #ifndef PPAPI_C_PPB_FILE_REF_H_ |
| #define PPAPI_C_PPB_FILE_REF_H_ |
| +#include "ppapi/c/pp_array_output.h" |
| #include "ppapi/c/pp_bool.h" |
| #include "ppapi/c/pp_completion_callback.h" |
| #include "ppapi/c/pp_file_info.h" |
| @@ -178,7 +179,7 @@ struct PPB_FileRef_1_1 { |
| int32_t (*Rename)(PP_Resource file_ref, |
| PP_Resource new_file_ref, |
| struct PP_CompletionCallback callback); |
| - /* |
| + /** |
| * Query() queries info about a file or directory. You must have access to |
| * read this file or directory if it exists in the external filesystem. |
| * |
| @@ -194,6 +195,21 @@ struct PPB_FileRef_1_1 { |
| int32_t (*Query)(PP_Resource file_ref, |
| struct PP_FileInfo* info, |
| struct PP_CompletionCallback callback); |
| + /** |
| + * Reads all entries in a directory. |
| + * |
| + * @param[in] file_ref A <code>PP_Resource</code> corresponding to a directory |
| + * reference. |
| + * @param[in] output An output array which will receive |
|
palmer
2013/05/03 00:07:24
[out] ?
hamaji
2013/05/03 01:10:34
See the comment in IDL file.
|
| + * <code>PP_DirectoryEntry</code> objects on success. |
| + * @param[in] callback A <code>PP_CompletionCallback</code> to run on |
| + * completion. |
| + * |
| + * @return An int32_t containing an error code from <code>pp_errors.h</code>. |
| + */ |
| + int32_t (*ReadEntries)(PP_Resource file_ref, |
| + struct PP_ArrayOutput output, |
| + struct PP_CompletionCallback callback); |
| }; |
| typedef struct PPB_FileRef_1_1 PPB_FileRef; |