OLD | NEW |
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 #ifndef LIBRARIES_NACL_IO_NACL_IO_H_ | 5 #ifndef LIBRARIES_NACL_IO_NACL_IO_H_ |
6 #define LIBRARIES_NACL_IO_NACL_IO_H_ | 6 #define LIBRARIES_NACL_IO_NACL_IO_H_ |
7 | 7 |
8 #include <ppapi/c/pp_instance.h> | 8 #include <ppapi/c/pp_instance.h> |
9 #include <ppapi/c/ppb.h> | 9 #include <ppapi/c/ppb.h> |
10 | 10 |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 * "html5fs": A filesystem that uses PPAPI FileSystem interface, which can be | 77 * "html5fs": A filesystem that uses PPAPI FileSystem interface, which can be |
78 * read in JavaScript via the HTML5 FileSystem API. This filesystem | 78 * read in JavaScript via the HTML5 FileSystem API. This filesystem |
79 * provides the use of persistent storage. Please read the | 79 * provides the use of persistent storage. Please read the |
80 * documentation in ppapi/c/ppb_file_system.h for more information. | 80 * documentation in ppapi/c/ppb_file_system.h for more information. |
81 * source: Unused. | 81 * source: Unused. |
82 * data: A string of parameters: | 82 * data: A string of parameters: |
83 * "type": Which type of filesystem to mount. Valid values are | 83 * "type": Which type of filesystem to mount. Valid values are |
84 * "PERSISTENT" and "TEMPORARY". The default is "PERSISTENT". | 84 * "PERSISTENT" and "TEMPORARY". The default is "PERSISTENT". |
85 * "expected_size": The expected file-system size. Note that this does | 85 * "expected_size": The expected file-system size. Note that this does |
86 * not request quota -- you must do that from JavaScript. | 86 * not request quota -- you must do that from JavaScript. |
| 87 * "filesystem_resource": If specified, this is a string that contains |
| 88 * the integer ID of the Filesystem resource to use instead of |
| 89 * creating a new one. The "type" and "expected_size" parameters are |
| 90 * ignored in this case. This parameter is useful when you pass a |
| 91 * Filesystem resource from JavaScript, but still want to be able to |
| 92 * call open/read/write/etc. |
87 * | 93 * |
88 * "httpfs": A filesystem that reads from a URL via HTTP. | 94 * "httpfs": A filesystem that reads from a URL via HTTP. |
89 * source: The root URL to read from. All paths read from this filesystem | 95 * source: The root URL to read from. All paths read from this filesystem |
90 * will be appended to this root. | 96 * will be appended to this root. |
91 * e.g. If source == "http://example.com/path", reading from | 97 * e.g. If source == "http://example.com/path", reading from |
92 * "foo/bar.txt" will attempt to read from the URL | 98 * "foo/bar.txt" will attempt to read from the URL |
93 * "http://example.com/path/foo/bar.txt". | 99 * "http://example.com/path/foo/bar.txt". |
94 * data: A string of parameters: | 100 * data: A string of parameters: |
95 * "allow_cross_origin_requests": If "true", then reads from this | 101 * "allow_cross_origin_requests": If "true", then reads from this |
96 * filesystem will follow the CORS standard for cross-origin requests. | 102 * filesystem will follow the CORS standard for cross-origin requests. |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 * | 183 * |
178 * @param[in] fs_type The name of the filesystem type; the same identifier that | 184 * @param[in] fs_type The name of the filesystem type; the same identifier that |
179 * was passed to nacl_io_register_fs_type(). | 185 * was passed to nacl_io_register_fs_type(). |
180 * @return 0 on success, -1 on failure (with errno set). | 186 * @return 0 on success, -1 on failure (with errno set). |
181 */ | 187 */ |
182 int nacl_io_unregister_fs_type(const char* fs_type); | 188 int nacl_io_unregister_fs_type(const char* fs_type); |
183 | 189 |
184 EXTERN_C_END | 190 EXTERN_C_END |
185 | 191 |
186 #endif /* LIBRARIES_NACL_IO_NACL_IO_H_ */ | 192 #endif /* LIBRARIES_NACL_IO_NACL_IO_H_ */ |
OLD | NEW |