Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(460)

Side by Side Diff: ppapi/api/ppb_file_io.idl

Issue 10993031: Refactor the URLResponseInfo to use new design (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/renderer/pepper/pepper_in_process_resource_creation.cc ('k') | ppapi/c/ppb_file_io.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 /* Copyright (c) 2012 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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 * PP_ERROR_INPROGRESS will be returned if there is another operation pending. 136 * PP_ERROR_INPROGRESS will be returned if there is another operation pending.
137 */ 137 */
138 int32_t Touch([in] PP_Resource file_io, 138 int32_t Touch([in] PP_Resource file_io,
139 [in] PP_Time last_access_time, 139 [in] PP_Time last_access_time,
140 [in] PP_Time last_modified_time, 140 [in] PP_Time last_modified_time,
141 [in] PP_CompletionCallback callback); 141 [in] PP_CompletionCallback callback);
142 142
143 /** 143 /**
144 * Read() reads from an offset in the file. The size of the buffer must be 144 * Read() reads from an offset in the file. The size of the buffer must be
145 * large enough to hold the specified number of bytes to read. This function 145 * large enough to hold the specified number of bytes to read. This function
146 * might perform a partial read. 146 * might perform a partial read, meaning all the requested bytes
147 * might not be returned, even if the end of the file has not been reached.
147 * 148 *
148 * @param[in] file_io A <code>PP_Resource</code> corresponding to a file 149 * @param[in] file_io A <code>PP_Resource</code> corresponding to a file
149 * FileIO. 150 * FileIO.
150 * @param[in] offset The offset into the file. 151 * @param[in] offset The offset into the file.
151 * @param[in] buffer The buffer to hold the specified number of bytes read. 152 * @param[in] buffer The buffer to hold the specified number of bytes read.
152 * @param[in] bytes_to_read The number of bytes to read from 153 * @param[in] bytes_to_read The number of bytes to read from
153 * <code>offset</code>. 154 * <code>offset</code>.
154 * @param[in] callback A <code>PP_CompletionCallback</code> to be called upon 155 * @param[in] callback A <code>PP_CompletionCallback</code> to be called upon
155 * completion of Read(). 156 * completion of Read().
156 * 157 *
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 * <strong>Note:</strong> If the FileIO object is destroyed, and it is still 236 * <strong>Note:</strong> If the FileIO object is destroyed, and it is still
236 * open, then it will be implicitly closed, so you are not required to call 237 * open, then it will be implicitly closed, so you are not required to call
237 * Close(). 238 * Close().
238 * 239 *
239 * @param[in] file_io A <code>PP_Resource</code> corresponding to a file 240 * @param[in] file_io A <code>PP_Resource</code> corresponding to a file
240 * FileIO. 241 * FileIO.
241 */ 242 */
242 void Close([in] PP_Resource file_io); 243 void Close([in] PP_Resource file_io);
243 }; 244 };
244 245
OLDNEW
« no previous file with comments | « content/renderer/pepper/pepper_in_process_resource_creation.cc ('k') | ppapi/c/ppb_file_io.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698