Chromium Code Reviews| Index: ppapi/api/ppb_file_ref.idl |
| diff --git a/ppapi/api/ppb_file_ref.idl b/ppapi/api/ppb_file_ref.idl |
| index d9226471a9f23cc6e9c862369ef905c25a9731b5..dde7597a34b8e25b3ce13b28020dfd51b39b3cd9 100644 |
| --- a/ppapi/api/ppb_file_ref.idl |
| +++ b/ppapi/api/ppb_file_ref.idl |
| @@ -10,7 +10,8 @@ |
| label Chrome { |
| M14 = 1.0, |
| - M28 = 1.1 |
| + M28 = 1.1, |
| + M34 = 1.2 |
|
yzshen1
2013/12/20 18:18:55
please consider [channel=dev] tag.
nhiroki
2014/01/06 13:24:22
Done.
|
| }; |
| /** |
| @@ -116,6 +117,31 @@ interface PPB_FileRef { |
| [in] PP_CompletionCallback callback); |
| /** |
| + * MakeDirectory() makes a new directory in the file system as well as any |
| + * parent directories if the <code>make_ancestors</code> argument is |
| + * <code>PP_TRUE</code>. It is not valid to make a directory in the external |
| + * file system. |
| + * |
| + * @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>. |
| + * 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>. |
| + */ |
| + [version=1.2] |
| + int32_t MakeDirectory([in] PP_Resource directory_ref, |
| + [in] PP_Bool exclusive, |
| + [in] PP_Bool make_ancestors, |
| + [in] PP_CompletionCallback callback); |
| + |
| + /** |
| * Touch() Updates time stamps for a file. You must have write access to the |
| * file if it exists in the external filesystem. |
| * |