Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(32)

Unified Diff: ppapi/c/ppb_file_ref.h

Issue 14784002: Move DirectoryReader::ReadEntries to FileRef::ReadDirectoryEntries (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: rebased Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ppapi/c/pp_directory_entry.h ('k') | ppapi/cpp/dev/directory_entry_dev.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..951c30d0a8eebe8b13d5f62f4ac97c3ae2fd4b17 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 16:22:57 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);
+ /**
+ * ReadDirectoryEntries() 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
+ * <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 (*ReadDirectoryEntries)(PP_Resource file_ref,
+ struct PP_ArrayOutput output,
+ struct PP_CompletionCallback callback);
};
typedef struct PPB_FileRef_1_1 PPB_FileRef;
« no previous file with comments | « ppapi/c/pp_directory_entry.h ('k') | ppapi/cpp/dev/directory_entry_dev.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698