Chromium Code Reviews| 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 /** | 6 /** |
| 7 * This file defines the API to create a file reference or "weak pointer" to a | 7 * This file defines the API to create a file reference or "weak pointer" to a |
| 8 * file in a file system. | 8 * file in a file system. |
| 9 */ | 9 */ |
| 10 | 10 |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 161 * file reference. | 161 * file reference. |
| 162 * @param[in] callback A <code>PP_CompletionCallback</code> to be called upon | 162 * @param[in] callback A <code>PP_CompletionCallback</code> to be called upon |
| 163 * completion of Rename(). | 163 * completion of Rename(). |
| 164 * | 164 * |
| 165 * @return An int32_t containing an error code from <code>pp_errors.h</code>. | 165 * @return An int32_t containing an error code from <code>pp_errors.h</code>. |
| 166 */ | 166 */ |
| 167 int32_t Rename([in] PP_Resource file_ref, | 167 int32_t Rename([in] PP_Resource file_ref, |
| 168 [in] PP_Resource new_file_ref, | 168 [in] PP_Resource new_file_ref, |
| 169 [in] PP_CompletionCallback callback); | 169 [in] PP_CompletionCallback callback); |
| 170 | 170 |
| 171 /* | 171 /** |
| 172 * Query() queries info about a file or directory. You must have access to | 172 * Query() queries info about a file or directory. You must have access to |
| 173 * read this file or directory if it exists in the external filesystem. | 173 * read this file or directory if it exists in the external filesystem. |
| 174 * | 174 * |
| 175 * @param[in] file_ref A <code>PP_Resource</code> corresponding to a file | 175 * @param[in] file_ref A <code>PP_Resource</code> corresponding to a file |
| 176 * reference. | 176 * reference. |
| 177 * @param[out] info A pointer to a <code>PP_FileInfo</code> which will be | 177 * @param[out] info A pointer to a <code>PP_FileInfo</code> which will be |
| 178 * populated with information about the file or directory. | 178 * populated with information about the file or directory. |
| 179 * @param[in] callback A <code>PP_CompletionCallback</code> to be called upon | 179 * @param[in] callback A <code>PP_CompletionCallback</code> to be called upon |
| 180 * completion of Query(). | 180 * completion of Query(). |
| 181 * | 181 * |
| 182 * @return An int32_t containing an error code from <code>pp_errors.h</code>. | 182 * @return An int32_t containing an error code from <code>pp_errors.h</code>. |
| 183 */ | 183 */ |
| 184 [version=1.1] | 184 [version=1.1] |
| 185 int32_t Query([in] PP_Resource file_ref, | 185 int32_t Query([in] PP_Resource file_ref, |
| 186 [out] PP_FileInfo info, | 186 [out] PP_FileInfo info, |
| 187 [in] PP_CompletionCallback callback); | 187 [in] PP_CompletionCallback callback); |
| 188 | |
| 189 /** | |
| 190 * Reads all entries in a directory. | |
| 191 * | |
| 192 * @param[in] file_ref A <code>PP_Resource</code> corresponding to a directory | |
| 193 * reference. | |
| 194 * @param[in] output An output array which will receive | |
|
palmer
2013/05/03 00:07:24
Shouldn't this be [out], then?
hamaji
2013/05/03 01:10:34
I'm not sure, but I think this should be [in], bec
dmichael (off chromium)
2013/05/03 02:54:57
We use [in] for PP_ArrayOutput parameters. It's a
| |
| 195 * <code>PP_DirectoryEntry</code> objects on success. | |
| 196 * @param[in] callback A <code>PP_CompletionCallback</code> to run on | |
| 197 * completion. | |
| 198 * | |
| 199 * @return An int32_t containing an error code from <code>pp_errors.h</code>. | |
| 200 */ | |
| 201 [version=1.1] | |
| 202 int32_t ReadEntries([in] PP_Resource file_ref, | |
| 203 [in] PP_ArrayOutput output, | |
| 204 [in] PP_CompletionCallback callback); | |
| 188 }; | 205 }; |
| 189 | 206 |
| OLD | NEW |