diff options
author | teravest@chromium.org <teravest@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-06-12 16:33:56 +0000 |
---|---|---|
committer | teravest@chromium.org <teravest@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-06-12 16:33:56 +0000 |
commit | 595a59c9bea956f6435878d7b1680659f7dcbe36 (patch) | |
tree | 42cf7b7bb52beb6ad86fbbdbf3a575142dbc3fe6 /ppapi/c | |
parent | 12d1a439cc84cfb28ebee6c003dfb4b18f7e4561 (diff) | |
download | chromium_src-595a59c9bea956f6435878d7b1680659f7dcbe36.zip chromium_src-595a59c9bea956f6435878d7b1680659f7dcbe36.tar.gz chromium_src-595a59c9bea956f6435878d7b1680659f7dcbe36.tar.bz2 |
Pepper: Add append support to FileIO.
This change adds a PP_FILEOPENFLAG_APPEND flag to PP_FileOpenFlags which will
force all writes to be appended to the end of the file instead of the current
file position. This flag is mutually exclusive with PP_FILEOPENFLAG_WRITE.
BUG=242383
Review URL: https://chromiumcodereview.appspot.com/16765005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@205817 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/c')
-rw-r--r-- | ppapi/c/ppb_file_io.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/ppapi/c/ppb_file_io.h b/ppapi/c/ppb_file_io.h index da3747a..fe0e1bd 100644 --- a/ppapi/c/ppb_file_io.h +++ b/ppapi/c/ppb_file_io.h @@ -3,7 +3,7 @@ * found in the LICENSE file. */ -/* From ppb_file_io.idl modified Fri Nov 16 10:46:53 2012. */ +/* From ppb_file_io.idl modified Tue Jun 11 15:21:38 2013. */ #ifndef PPAPI_C_PPB_FILE_IO_H_ #define PPAPI_C_PPB_FILE_IO_H_ @@ -60,7 +60,14 @@ typedef enum { * <code>PP_FILEOPENFLAG_CREATE</code>. If this flag is specified, and the * file already exists, then the FileIO::Open() call will fail. */ - PP_FILEOPENFLAG_EXCLUSIVE = 1 << 4 + PP_FILEOPENFLAG_EXCLUSIVE = 1 << 4, + /** + * Requests write access to a file, but writes will always occur at the end of + * the file. Mututally exclusive with <code>PP_FILEOPENFLAG_WRITE</code>. + * + * This is only supported in version 1.2 (Chrome 29) and later. + */ + PP_FILEOPENFLAG_APPEND = 1 << 5 } PP_FileOpenFlags; PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_FileOpenFlags, 4); /** |