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 #ifndef PPAPI_C_PPB_FILE_REF_H_ | 5 #ifndef PPAPI_C_PPB_FILE_REF_H_ |
6 #define PPAPI_C_PPB_FILE_REF_H_ | 6 #define PPAPI_C_PPB_FILE_REF_H_ |
7 | 7 |
8 #include "ppapi/c/pp_bool.h" | 8 #include "ppapi/c/pp_bool.h" |
9 #include "ppapi/c/pp_file_info.h" | 9 #include "ppapi/c/pp_file_info.h" |
10 #include "ppapi/c/pp_instance.h" | 10 #include "ppapi/c/pp_instance.h" |
11 #include "ppapi/c/pp_resource.h" | 11 #include "ppapi/c/pp_resource.h" |
12 #include "ppapi/c/pp_var.h" | 12 #include "ppapi/c/pp_var.h" |
13 | 13 |
14 /** | 14 /** |
15 * @file | 15 * @file |
16 * This file defines the API to create a file reference or "weak pointer" to a | 16 * This file defines the API to create a file reference or "weak pointer" to a |
17 * file in a file system. | 17 * file in a file system. |
18 */ | 18 */ |
19 | 19 |
20 struct PP_CompletionCallback; | 20 struct PP_CompletionCallback; |
21 | 21 |
22 #define PPB_FILEREF_INTERFACE_0_9 "PPB_FileRef;0.9" | 22 #define PPB_FILEREF_INTERFACE_0_9 "PPB_FileRef;0.9" |
23 #define PPB_FILEREF_INTERFACE PPB_FILEREF_INTERFACE_0_9 | 23 #define PPB_FILEREF_INTERFACE_1_0 "PPB_FileRef;1.0" |
| 24 #define PPB_FILEREF_INTERFACE PPB_FILEREF_INTERFACE_1_0 |
24 | 25 |
25 /** | 26 /** |
26 * @addtogroup Structs | 27 * @addtogroup Structs |
27 * @{ | 28 * @{ |
28 */ | 29 */ |
29 /** | 30 /** |
30 * The <code>PPB_FileRef</code> struct represents a "weak pointer" to a file in | 31 * The <code>PPB_FileRef</code> struct represents a "weak pointer" to a file in |
31 * a file system. This struct contains a <code>PP_FileSystemType</code> | 32 * a file system. This struct contains a <code>PP_FileSystemType</code> |
32 * identifier and a file path string. | 33 * identifier and a file path string. |
33 */ | 34 */ |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 int32_t (*Rename)(PP_Resource file_ref, | 181 int32_t (*Rename)(PP_Resource file_ref, |
181 PP_Resource new_file_ref, | 182 PP_Resource new_file_ref, |
182 struct PP_CompletionCallback callback); | 183 struct PP_CompletionCallback callback); |
183 }; | 184 }; |
184 /** | 185 /** |
185 * @} | 186 * @} |
186 */ | 187 */ |
187 | 188 |
188 #endif /* PPAPI_C_PPB_FILE_REF_H_ */ | 189 #endif /* PPAPI_C_PPB_FILE_REF_H_ */ |
189 | 190 |
OLD | NEW |