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