OLD | NEW |
1 /* Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2011 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 |
11 label Chrome { | 11 label Chrome { |
12 M13 = 0.9, | |
13 M14 = 1.0 | 12 M14 = 1.0 |
14 }; | 13 }; |
15 | 14 |
16 /** | 15 /** |
17 * The <code>PPB_FileRef</code> struct represents a "weak pointer" to a file in | 16 * The <code>PPB_FileRef</code> struct represents a "weak pointer" to a file in |
18 * a file system. This struct contains a <code>PP_FileSystemType</code> | 17 * a file system. This struct contains a <code>PP_FileSystemType</code> |
19 * identifier and a file path string. | 18 * identifier and a file path string. |
20 */ | 19 */ |
21 [version=0.9] | |
22 interface PPB_FileRef { | 20 interface PPB_FileRef { |
23 /** | 21 /** |
24 * Create() creates a weak pointer to a file in the given file system. File | 22 * Create() creates a weak pointer to a file in the given file system. File |
25 * paths are POSIX style. | 23 * paths are POSIX style. |
26 * | 24 * |
27 * @param[in] resource A <code>PP_Resource</code> corresponding to a file | 25 * @param[in] resource A <code>PP_Resource</code> corresponding to a file |
28 * system. | 26 * system. |
29 * @param[in] path A path to the file. | 27 * @param[in] path A path to the file. |
30 * | 28 * |
31 * @return A <code>PP_Resource</code> corresponding to a file reference if | 29 * @return A <code>PP_Resource</code> corresponding to a file reference if |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 * @param[in] callback A <code>PP_CompletionCallback</code> to be called upon | 161 * @param[in] callback A <code>PP_CompletionCallback</code> to be called upon |
164 * completion of Rename(). | 162 * completion of Rename(). |
165 * | 163 * |
166 * @return An int32_t containing an error code from <code>pp_errors.h</code>. | 164 * @return An int32_t containing an error code from <code>pp_errors.h</code>. |
167 */ | 165 */ |
168 int32_t Rename([in] PP_Resource file_ref, | 166 int32_t Rename([in] PP_Resource file_ref, |
169 [in] PP_Resource new_file_ref, | 167 [in] PP_Resource new_file_ref, |
170 [in] PP_CompletionCallback callback); | 168 [in] PP_CompletionCallback callback); |
171 }; | 169 }; |
172 | 170 |
OLD | NEW |