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

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

Issue 16765005: Pepper: Add append support to FileIO. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comment: M29 -> Chrome 29. Created 7 years, 6 months 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
« no previous file with comments | « ppapi/api/ppb_file_io.idl ('k') | ppapi/shared_impl/file_type_conversion.cc » ('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 Fri Nov 16 10:46:53 2012. */ 6 /* From ppb_file_io.idl modified Tue Jun 11 15:21:38 2013. */
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_array_output.h" 11 #include "ppapi/c/pp_array_output.h"
12 #include "ppapi/c/pp_bool.h" 12 #include "ppapi/c/pp_bool.h"
13 #include "ppapi/c/pp_completion_callback.h" 13 #include "ppapi/c/pp_completion_callback.h"
14 #include "ppapi/c/pp_file_info.h" 14 #include "ppapi/c/pp_file_info.h"
15 #include "ppapi/c/pp_instance.h" 15 #include "ppapi/c/pp_instance.h"
16 #include "ppapi/c/pp_macros.h" 16 #include "ppapi/c/pp_macros.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 /** 53 /**
54 * Requests that the file be truncated to length 0 if it exists and is a 54 * Requests that the file be truncated to length 0 if it exists and is a
55 * regular file. <code>PP_FILEOPENFLAG_WRITE</code> must also be specified. 55 * regular file. <code>PP_FILEOPENFLAG_WRITE</code> must also be specified.
56 */ 56 */
57 PP_FILEOPENFLAG_TRUNCATE = 1 << 3, 57 PP_FILEOPENFLAG_TRUNCATE = 1 << 3,
58 /** 58 /**
59 * Requests that the file is created when this flag is combined with 59 * Requests that the file is created when this flag is combined with
60 * <code>PP_FILEOPENFLAG_CREATE</code>. If this flag is specified, and the 60 * <code>PP_FILEOPENFLAG_CREATE</code>. If this flag is specified, and the
61 * file already exists, then the FileIO::Open() call will fail. 61 * file already exists, then the FileIO::Open() call will fail.
62 */ 62 */
63 PP_FILEOPENFLAG_EXCLUSIVE = 1 << 4 63 PP_FILEOPENFLAG_EXCLUSIVE = 1 << 4,
64 /**
65 * Requests write access to a file, but writes will always occur at the end of
66 * the file. Mututally exclusive with <code>PP_FILEOPENFLAG_WRITE</code>.
67 *
68 * This is only supported in version 1.2 (Chrome 29) and later.
69 */
70 PP_FILEOPENFLAG_APPEND = 1 << 5
64 } PP_FileOpenFlags; 71 } PP_FileOpenFlags;
65 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_FileOpenFlags, 4); 72 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_FileOpenFlags, 4);
66 /** 73 /**
67 * @} 74 * @}
68 */ 75 */
69 76
70 /** 77 /**
71 * @addtogroup Interfaces 78 * @addtogroup Interfaces
72 * @{ 79 * @{
73 */ 80 */
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 struct PP_CompletionCallback callback); 322 struct PP_CompletionCallback callback);
316 int32_t (*Flush)(PP_Resource file_io, struct PP_CompletionCallback callback); 323 int32_t (*Flush)(PP_Resource file_io, struct PP_CompletionCallback callback);
317 void (*Close)(PP_Resource file_io); 324 void (*Close)(PP_Resource file_io);
318 }; 325 };
319 /** 326 /**
320 * @} 327 * @}
321 */ 328 */
322 329
323 #endif /* PPAPI_C_PPB_FILE_IO_H_ */ 330 #endif /* PPAPI_C_PPB_FILE_IO_H_ */
324 331
OLDNEW
« no previous file with comments | « ppapi/api/ppb_file_io.idl ('k') | ppapi/shared_impl/file_type_conversion.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698