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

Unified Diff: native_client_sdk/src/libraries/nacl_io/nacl_io.h

Issue 302083015: [NaCl SDK] nacl_io: Add doc for html5fs param "filesystem_resource" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: native_client_sdk/src/libraries/nacl_io/nacl_io.h
diff --git a/native_client_sdk/src/libraries/nacl_io/nacl_io.h b/native_client_sdk/src/libraries/nacl_io/nacl_io.h
index 52509037df57f2b2f44bc8f7e7240135d6230f30..711fae468cfdae0e05f0a42bee1a5691a68cfc8b 100644
--- a/native_client_sdk/src/libraries/nacl_io/nacl_io.h
+++ b/native_client_sdk/src/libraries/nacl_io/nacl_io.h
@@ -84,6 +84,12 @@ int nacl_io_register_exit_handler(nacl_io_exit_handler_t exit_handler,
* "PERSISTENT" and "TEMPORARY". The default is "PERSISTENT".
* "expected_size": The expected file-system size. Note that this does
* not request quota -- you must do that from JavaScript.
+ * "filesystem_resource": If specified, this is a string that contains
+ * the integer ID of the Filesystem resource to use instead of
+ * creating a new one. The "type" and "expected_size" parameters are
+ * ignored in this case. This parameter is useful when you pass a
+ * Filesystem resource from JavaScript, but still want to be able to
+ * call open/read/write/etc.
*
* "httpfs": A filesystem that reads from a URL via HTTP.
* source: The root URL to read from. All paths read from this filesystem
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698