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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 * "allow_cross_origin_requests": If "true", then reads from this | 92 * "allow_cross_origin_requests": If "true", then reads from this |
93 * filesystem will follow the CORS standard for cross-origin requests. | 93 * filesystem will follow the CORS standard for cross-origin requests. |
94 * See http://www.w3.org/TR/access-control. | 94 * See http://www.w3.org/TR/access-control. |
95 * "allow_credentials": If "true", credentials are sent with cross-origin | 95 * "allow_credentials": If "true", credentials are sent with cross-origin |
96 * requests. If false, no credentials are sent with the request and | 96 * requests. If false, no credentials are sent with the request and |
97 * cookies are ignored in the response. | 97 * cookies are ignored in the response. |
98 * All other key/value pairs are assumed to be headers to use with | 98 * All other key/value pairs are assumed to be headers to use with |
99 * HTTP requests. | 99 * HTTP requests. |
100 * | 100 * |
101 * "passthroughfs": A filesystem that passes all requests through to the | 101 * "passthroughfs": A filesystem that passes all requests through to the |
102 * underlying NaCL calls. The primary use of this filesystem | 102 * underlying NaCl calls. The primary use of this filesystem |
103 * is to allow reading NMF resources. | 103 * is to allow reading NMF resources. |
104 * source: Unused. | 104 * source: Unused. |
105 * data: Unused. | 105 * data: Unused. |
106 * | 106 * |
107 * | 107 * |
108 * @param[in] source Depends on the filesystem type. See above. | 108 * @param[in] source Depends on the filesystem type. See above. |
109 * @param[in] target The absolute path to mount the filesystem. | 109 * @param[in] target The absolute path to mount the filesystem. |
110 * @param[in] filesystemtype The name of the filesystem type to mount. See | 110 * @param[in] filesystemtype The name of the filesystem type to mount. See |
111 * above for examples. | 111 * above for examples. |
112 * @param[in] mountflags Unused. | 112 * @param[in] mountflags Unused. |
113 * @param[in] data Depends on the filesystem type. See above. | 113 * @param[in] data Depends on the filesystem type. See above. |
114 * @return 0 on success, -1 on failure (with errno set). | 114 * @return 0 on success, -1 on failure (with errno set). |
115 * | 115 * |
116 * int mount(const char* source, const char* target, const char* filesystemtype, | 116 * int mount(const char* source, const char* target, const char* filesystemtype, |
117 * unsigned long mountflags, const void *data) NOTHROW; | 117 * unsigned long mountflags, const void *data) NOTHROW; |
118 */ | 118 */ |
119 | 119 |
120 EXTERN_C_END | 120 EXTERN_C_END |
121 | 121 |
122 #endif /* LIBRARIES_NACL_IO_NACL_IO_H_ */ | 122 #endif /* LIBRARIES_NACL_IO_NACL_IO_H_ */ |
OLD | NEW |