Index: ppapi/api/ppb_file_io.idl |
=================================================================== |
--- ppapi/api/ppb_file_io.idl (revision 113658) |
+++ ppapi/api/ppb_file_io.idl (working copy) |
@@ -99,9 +99,8 @@ |
[in] PP_CompletionCallback callback); |
/** |
- * Query() queries info about the file opened by this FileIO object. The |
- * FileIO object must be opened, and there must be no other operations |
- * pending. |
+ * Query() queries info about the file opened by this FileIO object. This |
+ * function will fail if the FileIO object has not been opened. |
* |
* @param[in] file_io A <code>PP_Resource</code> corresponding to a |
* FileIO. |
@@ -111,8 +110,6 @@ |
* completion of Query(). |
* |
* @return An int32_t containing an error code from <code>pp_errors.h</code>. |
- * PP_ERROR_FAILED will be returned if the file isn't opened, and |
- * PP_ERROR_INPROGRESS will be returned if there is another operation pending. |
*/ |
int32_t Query([in] PP_Resource file_io, |
[out] PP_FileInfo info, |
@@ -120,9 +117,7 @@ |
/** |
* Touch() Updates time stamps for the file opened by this FileIO object. |
- * This function will fail if the FileIO object has not been opened. The |
- * FileIO object must be opened, and there must be no other operations |
- * pending. |
+ * This function will fail if the FileIO object has not been opened. |
* |
* @param[in] file_io A <code>PP_Resource</code> corresponding to a file |
* FileIO. |
@@ -132,8 +127,6 @@ |
* completion of Touch(). |
* |
* @return An int32_t containing an error code from <code>pp_errors.h</code>. |
- * PP_ERROR_FAILED will be returned if the file isn't opened, and |
- * PP_ERROR_INPROGRESS will be returned if there is another operation pending. |
*/ |
int32_t Touch([in] PP_Resource file_io, |
[in] PP_Time last_access_time, |
@@ -157,8 +150,7 @@ |
* @return An The number of bytes read an error code from |
* <code>pp_errors.h</code>. If the return value is 0, then end-of-file was |
* reached. It is valid to call Read() multiple times with a completion |
- * callback to queue up parallel reads from the file, but pending reads |
- * cannot be interleaved with other operations. |
+ * callback to queue up parallel reads from the file at different offsets. |
*/ |
int32_t Read([in] PP_Resource file_io, |
[in] int64_t offset, |
@@ -182,8 +174,7 @@ |
* @return An The number of bytes written or an error code from |
* <code>pp_errors.h</code>. If the return value is 0, then end-of-file was |
* reached. It is valid to call Write() multiple times with a completion |
- * callback to queue up parallel writes to the file, but pending writes |
- * cannot be interleaved with other operations. |
+ * callback to queue up parallel writes to the file at different offsets. |
*/ |
int32_t Write([in] PP_Resource file_io, |
[in] int64_t offset, |
@@ -192,9 +183,8 @@ |
[in] PP_CompletionCallback callback); |
/** |
* SetLength() sets the length of the file. If the file size is extended, |
- * then the extended area of the file is zero-filled. The FileIO object must |
- * have been opened with write access and there must be no other operations |
- * pending. |
+ * then the extended area of the file is zero-filled. The FileIO object must |
+ * have been opened with write access. |
* |
* @param[in] file_io A <code>PP_Resource</code> corresponding to a file |
* FileIO. |
@@ -203,17 +193,13 @@ |
* completion of SetLength(). |
* |
* @return An int32_t containing an error code from <code>pp_errors.h</code>. |
- * PP_ERROR_FAILED will be returned if the file isn't opened, and |
- * PP_ERROR_INPROGRESS will be returned if there is another operation pending. |
*/ |
int32_t SetLength([in] PP_Resource file_io, |
[in] int64_t length, |
[in] PP_CompletionCallback callback); |
/** |
- * Flush() flushes changes to disk. This call can be very expensive! The |
- * FileIO object must have been opened with write access and there must be no |
- * other operations pending. |
+ * Flush() flushes changes to disk. This call can be very expensive! |
* |
* @param[in] file_io A <code>PP_Resource</code> corresponding to a file |
* FileIO. |
@@ -221,8 +207,6 @@ |
* completion of Flush(). |
* |
* @return An int32_t containing an error code from <code>pp_errors.h</code>. |
- * PP_ERROR_FAILED will be returned if the file isn't opened, and |
- * PP_ERROR_INPROGRESS will be returned if there is another operation pending. |
*/ |
int32_t Flush([in] PP_Resource file_io, |
[in] PP_CompletionCallback callback); |