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

Side by Side Diff: native_client_sdk/src/libraries/nacl_mounts/nacl_mounts.h

Issue 11887021: [NaCl SDK] Add HTTP mount. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: docs for nacl_mounts.h Created 7 years, 11 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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_MOUNTS_NACL_MOUNTS_H_ 5 #ifndef LIBRARIES_NACL_MOUNTS_NACL_MOUNTS_H_
6 #define LIBRARIES_NACL_MOUNTS_NACL_MOUNTS_H_ 6 #define LIBRARIES_NACL_MOUNTS_NACL_MOUNTS_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 #include "utils/macros.h" 10 #include "utils/macros.h"
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 * read in JavaScript via the HTML5 FileSystem API. This mount 69 * read in JavaScript via the HTML5 FileSystem API. This mount
70 * provides the use of persistent storage. Please read the 70 * provides the use of persistent storage. Please read the
71 * documentation in ppapi/c/ppb_file_system.h for more information. 71 * documentation in ppapi/c/ppb_file_system.h for more information.
72 * source: Unused. 72 * source: Unused.
73 * data: A string of parameters: 73 * data: A string of parameters:
74 * "type": Which type of filesystem to mount. Valid values are 74 * "type": Which type of filesystem to mount. Valid values are
75 * "PERSISTENT" and "TEMPORARY". The default is "PERSISTENT". 75 * "PERSISTENT" and "TEMPORARY". The default is "PERSISTENT".
76 * "expected_size": The expected file-system size. Note that this does 76 * "expected_size": The expected file-system size. Note that this does
77 * not request quota -- you must do that from JavaScript. 77 * not request quota -- you must do that from JavaScript.
78 * 78 *
79 * "httpfs": A filesystem that reads from a URL via HTTP.
80 * source: The root URL to read from. All paths read from this filesystem
81 * will be appended to this root.
82 * e.g. If source == "http://example.com/path", reading from
83 * "foo/bar.txt" will attempt to read from the URL
84 * "http://example.com/path/foo/bar.txt".
85 * data: A string of parameters:
86 * "allow_cross_origin_request": If "true", then reads from this
87 * filesystem will follow the CORS standard for cross-origin requests.
88 * See http://www.w3.org/TR/access-control.
89 * "allow_credentials": If "true", credentials are sent with cross-origin
90 * requests. If false, no credentials are sent with the request and
91 * cookies are ignored in the response.
92 * All other key/value pairs are assumed to be headers to use with
93 * HTTP requests.
94 *
79 * 95 *
80 * @param[in] source Depends on the filesystem type. See above. 96 * @param[in] source Depends on the filesystem type. See above.
81 * @param[in] target The absolute path to mount the filesystem. 97 * @param[in] target The absolute path to mount the filesystem.
82 * @param[in] filesystemtype The name of the filesystem type to mount. See 98 * @param[in] filesystemtype The name of the filesystem type to mount. See
83 * above for examples. 99 * above for examples.
84 * @param[in] mountflags Unused. 100 * @param[in] mountflags Unused.
85 * @param[in] data Depends on the filesystem type. See above. 101 * @param[in] data Depends on the filesystem type. See above.
86 * @return 0 on success, -1 on failure (with errno set). 102 * @return 0 on success, -1 on failure (with errno set).
87 */ 103 */
88 int mount(const char* source, const char* target, const char* filesystemtype, 104 int mount(const char* source, const char* target, const char* filesystemtype,
89 unsigned long mountflags, const void *data); 105 unsigned long mountflags, const void *data);
90 106
91 EXTERN_C_END 107 EXTERN_C_END
92 108
93 #endif // LIBRARIES_NACL_MOUNTS_NACL_MOUNTS_H_ 109 #endif // LIBRARIES_NACL_MOUNTS_NACL_MOUNTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698