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 /** | 7 /** |
8 * This file defines the API to create a file i/o object. | 8 * This file defines the API to create a file i/o object. |
9 */ | 9 */ |
10 | 10 |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 | 52 |
53 /** | 53 /** |
54 * The <code>PPB_FileIO</code> struct is used to operate on a regular file | 54 * The <code>PPB_FileIO</code> struct is used to operate on a regular file |
55 * (PP_FileType_Regular). | 55 * (PP_FileType_Regular). |
56 */ | 56 */ |
57 [version=0.5] | 57 [version=0.5] |
58 interface PPB_FileIO { | 58 interface PPB_FileIO { |
59 /** | 59 /** |
60 * Create() creates a new FileIO object. | 60 * Create() creates a new FileIO object. |
61 * | 61 * |
62 * @param[in] instance A <code>PP_Instance</code> indentifying the instance | 62 * @param[in] instance A <code>PP_Instance</code> identifying the instance |
63 * with the file. | 63 * with the file. |
64 * | 64 * |
65 * @return A <code>PP_Resource</code> corresponding to a FileIO if | 65 * @return A <code>PP_Resource</code> corresponding to a FileIO if |
66 * successful or 0 if the module is invalid. | 66 * successful or 0 if the module is invalid. |
67 */ | 67 */ |
68 PP_Resource Create([in] PP_Instance instance); | 68 PP_Resource Create([in] PP_Instance instance); |
69 /** | 69 /** |
70 * IsFileIO() determines if the provided resource is a FileIO. | 70 * IsFileIO() determines if the provided resource is a FileIO. |
71 * | 71 * |
72 * @param[in] resource A <code>PP_Resource</code> corresponding to a FileIO. | 72 * @param[in] resource A <code>PP_Resource</code> corresponding to a FileIO. |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
221 * <strong>Note:</strong> If the FileIO object is destroyed, and it is still | 221 * <strong>Note:</strong> If the FileIO object is destroyed, and it is still |
222 * open, then it will be implicitly closed, so you are not required to call | 222 * open, then it will be implicitly closed, so you are not required to call |
223 * Close(). | 223 * Close(). |
224 * | 224 * |
225 * @param[in] file_io A <code>PP_Resource</code> corresponding to a file | 225 * @param[in] file_io A <code>PP_Resource</code> corresponding to a file |
226 * FileIO. | 226 * FileIO. |
227 */ | 227 */ |
228 void Close([in] PP_Resource file_io); | 228 void Close([in] PP_Resource file_io); |
229 }; | 229 }; |
230 | 230 |
OLD | NEW |