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

Unified Diff: ppapi/api/ppb_file_io.idl

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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ppapi/c/ppb_file_io.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/api/ppb_file_io.idl
diff --git a/ppapi/api/ppb_file_io.idl b/ppapi/api/ppb_file_io.idl
index f89ba171c10bd6c73749cab9f79e6d92b924555d..2e43ec54c1c7ca7d7ffacbe3b6fbb17ac10a3008 100644
--- a/ppapi/api/ppb_file_io.idl
+++ b/ppapi/api/ppb_file_io.idl
@@ -12,7 +12,8 @@
label Chrome {
M14 = 1.0,
- M25 = 1.1
+ M25 = 1.1,
+ M29 = 1.2
};
/**
@@ -41,14 +42,23 @@ label Chrome {
* Requests that the file be truncated to length 0 if it exists and is a
* regular file. <code>PP_FILEOPENFLAG_WRITE</code> must also be specified.
*/
- PP_FILEOPENFLAG_TRUNCATE = 1 << 3,
+ PP_FILEOPENFLAG_TRUNCATE = 1 << 3,
/**
* Requests that the file is created when this flag is combined with
* <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.
+ */
+ [version=1.2]
+ PP_FILEOPENFLAG_APPEND = 1 << 5
};
« no previous file with comments | « no previous file | ppapi/c/ppb_file_io.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698