| OLD | NEW |
| 1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 * Use of this source code is governed by a BSD-style license that can be | 2 * Use of this source code is governed by a BSD-style license that can be |
| 3 * found in the LICENSE file. | 3 * found in the LICENSE file. |
| 4 */ | 4 */ |
| 5 | 5 |
| 6 /* From ppb_file_system.idl modified Thu May 2 16:44:38 2013. */ | 6 /* From ppb_file_system.idl modified Thu Jun 13 14:30:40 2013. */ |
| 7 | 7 |
| 8 #ifndef PPAPI_C_PPB_FILE_SYSTEM_H_ | 8 #ifndef PPAPI_C_PPB_FILE_SYSTEM_H_ |
| 9 #define PPAPI_C_PPB_FILE_SYSTEM_H_ | 9 #define PPAPI_C_PPB_FILE_SYSTEM_H_ |
| 10 | 10 |
| 11 #include "ppapi/c/pp_bool.h" | 11 #include "ppapi/c/pp_bool.h" |
| 12 #include "ppapi/c/pp_completion_callback.h" | 12 #include "ppapi/c/pp_completion_callback.h" |
| 13 #include "ppapi/c/pp_file_info.h" | 13 #include "ppapi/c/pp_file_info.h" |
| 14 #include "ppapi/c/pp_instance.h" | 14 #include "ppapi/c/pp_instance.h" |
| 15 #include "ppapi/c/pp_macros.h" | 15 #include "ppapi/c/pp_macros.h" |
| 16 #include "ppapi/c/pp_resource.h" | 16 #include "ppapi/c/pp_resource.h" |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 /** | 59 /** |
| 60 * Open() opens the file system. A file system must be opened before running | 60 * Open() opens the file system. A file system must be opened before running |
| 61 * any other operation on it. | 61 * any other operation on it. |
| 62 * | 62 * |
| 63 * @param[in] file_system A <code>PP_Resource</code> corresponding to a file | 63 * @param[in] file_system A <code>PP_Resource</code> corresponding to a file |
| 64 * system. | 64 * system. |
| 65 * | 65 * |
| 66 * @param[in] expected_size The expected size of the file system. Note that | 66 * @param[in] expected_size The expected size of the file system. Note that |
| 67 * this does not request quota; to do that, you must either invoke | 67 * this does not request quota; to do that, you must either invoke |
| 68 * requestQuota from JavaScript: | 68 * requestQuota from JavaScript: |
| 69 | 69 * http://www.html5rocks.com/en/tutorials/file/filesystem/#toc-requesting-quot
a |
| 70 | |
| 71 * http://www.html5rocks.com/en/tutorials/file/filesystem/#toc-requesting-quo
ta | |
| 72 * or set the unlimitedStorage permission for Chrome Web Store apps: | 70 * or set the unlimitedStorage permission for Chrome Web Store apps: |
| 73 * http://code.google.com/chrome/extensions/manifest.html#permissions | 71 * http://code.google.com/chrome/extensions/manifest.html#permissions |
| 74 * | 72 * |
| 75 * @param[in] callback A <code>PP_CompletionCallback</code> to be called upon | 73 * @param[in] callback A <code>PP_CompletionCallback</code> to be called upon |
| 76 * completion of Open(). | 74 * completion of Open(). |
| 77 * | 75 * |
| 78 * @return An int32_t containing an error code from <code>pp_errors.h</code>. | 76 * @return An int32_t containing an error code from <code>pp_errors.h</code>. |
| 79 */ | 77 */ |
| 80 int32_t (*Open)(PP_Resource file_system, | 78 int32_t (*Open)(PP_Resource file_system, |
| 81 int64_t expected_size, | 79 int64_t expected_size, |
| (...skipping 12 matching lines...) Expand all Loading... |
| 94 PP_FileSystemType (*GetType)(PP_Resource file_system); | 92 PP_FileSystemType (*GetType)(PP_Resource file_system); |
| 95 }; | 93 }; |
| 96 | 94 |
| 97 typedef struct PPB_FileSystem_1_0 PPB_FileSystem; | 95 typedef struct PPB_FileSystem_1_0 PPB_FileSystem; |
| 98 /** | 96 /** |
| 99 * @} | 97 * @} |
| 100 */ | 98 */ |
| 101 | 99 |
| 102 #endif /* PPAPI_C_PPB_FILE_SYSTEM_H_ */ | 100 #endif /* PPAPI_C_PPB_FILE_SYSTEM_H_ */ |
| 103 | 101 |
| OLD | NEW |