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

Side by Side Diff: ppapi/c/ppb_file_io.h

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 | « ppapi/api/ppb_file_io.idl ('k') | ppapi/cpp/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 /* From ppb_file_io.idl modified Wed Feb 15 15:55:56 2012. */ 6 /* From ppb_file_io.idl modified Thu Oct 11 14:48:24 2012. */
7 7
8 #ifndef PPAPI_C_PPB_FILE_IO_H_ 8 #ifndef PPAPI_C_PPB_FILE_IO_H_
9 #define PPAPI_C_PPB_FILE_IO_H_ 9 #define PPAPI_C_PPB_FILE_IO_H_
10 10
11 #include "ppapi/c/pp_bool.h" 11 #include "ppapi/c/pp_bool.h"
12 #include "ppapi/c/pp_completion_callback.h" 12 #include "ppapi/c/pp_completion_callback.h"
13 #include "ppapi/c/pp_file_info.h" 13 #include "ppapi/c/pp_file_info.h"
14 #include "ppapi/c/pp_instance.h" 14 #include "ppapi/c/pp_instance.h"
15 #include "ppapi/c/pp_macros.h" 15 #include "ppapi/c/pp_macros.h"
16 #include "ppapi/c/pp_resource.h" 16 #include "ppapi/c/pp_resource.h"
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 * PP_ERROR_FAILED will be returned if the file isn't opened, and 152 * PP_ERROR_FAILED will be returned if the file isn't opened, and
153 * PP_ERROR_INPROGRESS will be returned if there is another operation pending. 153 * PP_ERROR_INPROGRESS will be returned if there is another operation pending.
154 */ 154 */
155 int32_t (*Touch)(PP_Resource file_io, 155 int32_t (*Touch)(PP_Resource file_io,
156 PP_Time last_access_time, 156 PP_Time last_access_time,
157 PP_Time last_modified_time, 157 PP_Time last_modified_time,
158 struct PP_CompletionCallback callback); 158 struct PP_CompletionCallback callback);
159 /** 159 /**
160 * Read() reads from an offset in the file. The size of the buffer must be 160 * Read() reads from an offset in the file. The size of the buffer must be
161 * large enough to hold the specified number of bytes to read. This function 161 * large enough to hold the specified number of bytes to read. This function
162 * might perform a partial read. 162 * might perform a partial read, meaning all the requested bytes
163 * might not be returned, even if the end of the file has not been reached.
163 * 164 *
164 * @param[in] file_io A <code>PP_Resource</code> corresponding to a file 165 * @param[in] file_io A <code>PP_Resource</code> corresponding to a file
165 * FileIO. 166 * FileIO.
166 * @param[in] offset The offset into the file. 167 * @param[in] offset The offset into the file.
167 * @param[in] buffer The buffer to hold the specified number of bytes read. 168 * @param[in] buffer The buffer to hold the specified number of bytes read.
168 * @param[in] bytes_to_read The number of bytes to read from 169 * @param[in] bytes_to_read The number of bytes to read from
169 * <code>offset</code>. 170 * <code>offset</code>.
170 * @param[in] callback A <code>PP_CompletionCallback</code> to be called upon 171 * @param[in] callback A <code>PP_CompletionCallback</code> to be called upon
171 * completion of Read(). 172 * completion of Read().
172 * 173 *
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 void (*Close)(PP_Resource file_io); 255 void (*Close)(PP_Resource file_io);
255 }; 256 };
256 257
257 typedef struct PPB_FileIO_1_0 PPB_FileIO; 258 typedef struct PPB_FileIO_1_0 PPB_FileIO;
258 /** 259 /**
259 * @} 260 * @}
260 */ 261 */
261 262
262 #endif /* PPAPI_C_PPB_FILE_IO_H_ */ 263 #endif /* PPAPI_C_PPB_FILE_IO_H_ */
263 264
OLDNEW
« no previous file with comments | « ppapi/api/ppb_file_io.idl ('k') | ppapi/cpp/file_io.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698