Index: ppapi/c/ppb_file_ref.h |
diff --git a/ppapi/c/ppb_file_ref.h b/ppapi/c/ppb_file_ref.h |
index 873ef188868308c681901eac193b98ef7833ac82..f71b7afe341047c72977107c72268d9e9f4e2ff6 100644 |
--- a/ppapi/c/ppb_file_ref.h |
+++ b/ppapi/c/ppb_file_ref.h |
@@ -3,7 +3,7 @@ |
* found in the LICENSE file. |
*/ |
-/* From ppb_file_ref.idl modified Thu Aug 15 10:50:43 2013. */ |
+/* From ppb_file_ref.idl modified Mon Jan 6 18:05:53 2014. */ |
#ifndef PPAPI_C_PPB_FILE_REF_H_ |
#define PPAPI_C_PPB_FILE_REF_H_ |
@@ -20,6 +20,7 @@ |
#define PPB_FILEREF_INTERFACE_1_0 "PPB_FileRef;1.0" |
#define PPB_FILEREF_INTERFACE_1_1 "PPB_FileRef;1.1" |
+#define PPB_FILEREF_INTERFACE_1_2 "PPB_FileRef;1.2" /* dev */ |
#define PPB_FILEREF_INTERFACE PPB_FILEREF_INTERFACE_1_1 |
/** |
@@ -38,7 +39,7 @@ |
* a file system. This struct contains a <code>PP_FileSystemType</code> |
* identifier and a file path string. |
*/ |
-struct PPB_FileRef_1_1 { |
+struct PPB_FileRef_1_2 { /* dev */ |
/** |
* Create() creates a weak pointer to a file in the given file system. File |
* paths are POSIX style. |
@@ -117,16 +118,19 @@ struct PPB_FileRef_1_1 { |
* |
* @param[in] file_ref A <code>PP_Resource</code> corresponding to a file |
* reference. |
+ * @param[in] exclusive A <code>PP_Bool</code> set to <code>PP_TRUE</code> to |
+ * fail if the directory already exists. |
* @param[in] make_ancestors A <code>PP_Bool</code> set to |
* <code>PP_TRUE</code> to make ancestor directories or <code>PP_FALSE</code> |
* if ancestor directories are not needed. |
* |
* @return An int32_t containing an error code from <code>pp_errors.h</code>. |
- * Succeeds if the directory already exists. Fails if ancestor directories |
- * do not exist and <code>make_ancestors</code> was passed as |
- * <code>PP_FALSE</code>. |
+ * Fails if the directory already exists and <code>exclusive</code> was passed |
+ * as <code>PP_TRUE</code>. And also fails if ancestor directories do not |
+ * exist and <code>make_ancestors</code> was passed as <code>PP_FALSE</code>. |
*/ |
int32_t (*MakeDirectory)(PP_Resource directory_ref, |
+ PP_Bool exclusive, |
PP_Bool make_ancestors, |
struct PP_CompletionCallback callback); |
/** |
@@ -212,8 +216,6 @@ struct PPB_FileRef_1_1 { |
struct PP_CompletionCallback callback); |
}; |
-typedef struct PPB_FileRef_1_1 PPB_FileRef; |
- |
struct PPB_FileRef_1_0 { |
PP_Resource (*Create)(PP_Resource file_system, const char* path); |
PP_Bool (*IsFileRef)(PP_Resource resource); |
@@ -234,6 +236,35 @@ struct PPB_FileRef_1_0 { |
PP_Resource new_file_ref, |
struct PP_CompletionCallback callback); |
}; |
+ |
+struct PPB_FileRef_1_1 { |
+ PP_Resource (*Create)(PP_Resource file_system, const char* path); |
+ PP_Bool (*IsFileRef)(PP_Resource resource); |
+ PP_FileSystemType (*GetFileSystemType)(PP_Resource file_ref); |
+ struct PP_Var (*GetName)(PP_Resource file_ref); |
+ struct PP_Var (*GetPath)(PP_Resource file_ref); |
+ PP_Resource (*GetParent)(PP_Resource file_ref); |
+ int32_t (*MakeDirectory)(PP_Resource directory_ref, |
+ PP_Bool make_ancestors, |
+ struct PP_CompletionCallback callback); |
+ int32_t (*Touch)(PP_Resource file_ref, |
+ PP_Time last_access_time, |
+ PP_Time last_modified_time, |
+ struct PP_CompletionCallback callback); |
+ int32_t (*Delete)(PP_Resource file_ref, |
+ struct PP_CompletionCallback callback); |
+ int32_t (*Rename)(PP_Resource file_ref, |
+ PP_Resource new_file_ref, |
+ struct PP_CompletionCallback callback); |
+ int32_t (*Query)(PP_Resource file_ref, |
+ struct PP_FileInfo* info, |
+ struct PP_CompletionCallback callback); |
+ int32_t (*ReadDirectoryEntries)(PP_Resource file_ref, |
+ struct PP_ArrayOutput output, |
+ struct PP_CompletionCallback callback); |
+}; |
+ |
+typedef struct PPB_FileRef_1_1 PPB_FileRef; |
/** |
* @} |
*/ |