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

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

Issue 15800004: [NaCl SDK] nacl_io: Added support for access() syscall. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase to HEAD. Created 7 years, 6 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
Index: native_client_sdk/src/libraries/nacl_io/mount_http.h
diff --git a/native_client_sdk/src/libraries/nacl_io/mount_http.h b/native_client_sdk/src/libraries/nacl_io/mount_http.h
index e10f1afcfe99600a4579463c61959f5c23bd4cb6..94de677be41a5f70663206e2138bc3d829407b83 100644
--- a/native_client_sdk/src/libraries/nacl_io/mount_http.h
+++ b/native_client_sdk/src/libraries/nacl_io/mount_http.h
@@ -21,6 +21,7 @@ class MountHttp : public Mount {
public:
typedef std::map<std::string, MountNode*> NodeMap_t;
+ virtual Error Access(const Path& path, int a_mode);
virtual Error Open(const Path& path, int mode, MountNode** out_node);
virtual Error Unlink(const Path& path);
virtual Error Mkdir(const Path& path, int permissions);
@@ -41,6 +42,10 @@ class MountHttp : public Mount {
Error ParseManifest(char *text);
private:
+ // Gets the URL to fetch for |path|.
+ // |path| is relative to the mount point for the HTTP filesystem.
+ std::string MakeUrl(const Path& path);
+
std::string url_root_;
StringMap_t headers_;
NodeMap_t node_cache_;
« no previous file with comments | « native_client_sdk/src/libraries/nacl_io/mount_html5fs.cc ('k') | native_client_sdk/src/libraries/nacl_io/mount_http.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698