OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2010 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_DEV_PPB_FILE_IO_DEV_H_ | 5 #ifndef PPAPI_C_DEV_PPB_FILE_IO_DEV_H_ |
6 #define PPAPI_C_DEV_PPB_FILE_IO_DEV_H_ | 6 #define PPAPI_C_DEV_PPB_FILE_IO_DEV_H_ |
7 | 7 |
8 #include "ppapi/c/pp_bool.h" | 8 #include "ppapi/c/pp_bool.h" |
9 #include "ppapi/c/pp_macros.h" | 9 #include "ppapi/c/pp_macros.h" |
10 #include "ppapi/c/pp_module.h" | 10 #include "ppapi/c/pp_module.h" |
11 #include "ppapi/c/pp_resource.h" | 11 #include "ppapi/c/pp_resource.h" |
12 #include "ppapi/c/pp_stdint.h" | 12 #include "ppapi/c/pp_stdint.h" |
13 #include "ppapi/c/pp_time.h" | 13 #include "ppapi/c/pp_time.h" |
14 | 14 |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 | 108 |
109 // Cancels any IO that may be pending, and closes the FileIO object. Any | 109 // Cancels any IO that may be pending, and closes the FileIO object. Any |
110 // pending callbacks will still run, reporting PP_Error_Aborted if pending IO | 110 // pending callbacks will still run, reporting PP_Error_Aborted if pending IO |
111 // was interrupted. It is NOT valid to call Open again after a call to this | 111 // was interrupted. It is NOT valid to call Open again after a call to this |
112 // method. Note: If the FileIO object is destroyed, and it is still open, | 112 // method. Note: If the FileIO object is destroyed, and it is still open, |
113 // then it will be implicitly closed, so you are not required to call the | 113 // then it will be implicitly closed, so you are not required to call the |
114 // Close method. | 114 // Close method. |
115 void (*Close)(PP_Resource file_io); | 115 void (*Close)(PP_Resource file_io); |
116 }; | 116 }; |
117 | 117 |
118 #endif // PPAPI_C_DEV_PPB_FILE_IO_DEV_H_ | 118 #endif /* PPAPI_C_DEV_PPB_FILE_IO_DEV_H_ */ |
| 119 |
OLD | NEW |