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

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

Powered by Google App Engine
This is Rietveld 408576698