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

Unified Diff: native_client_sdk/src/libraries/nacl_io/httpfs/http_fs.cc

Issue 547053002: [NaCl SDK] nacl_io: Remove Node::Access method. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@http_fs_root
Patch Set: Created 6 years, 3 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/httpfs/http_fs.cc
diff --git a/native_client_sdk/src/libraries/nacl_io/httpfs/http_fs.cc b/native_client_sdk/src/libraries/nacl_io/httpfs/http_fs.cc
index 67dcc489f0faa18c37dc2d9036755f07275a98a8..74e73838e1e8d540f27e5580c679ffbf937fb8a6 100644
--- a/native_client_sdk/src/libraries/nacl_io/httpfs/http_fs.cc
+++ b/native_client_sdk/src/libraries/nacl_io/httpfs/http_fs.cc
@@ -41,31 +41,6 @@ std::string NormalizeHeaderKey(const std::string& s) {
return result;
}
-Error HttpFs::Access(const Path& path, int a_mode) {
- ScopedNode node = FindExistingNode(path);
- if (node.get() == NULL) {
- // If we can't find the node in the cache, fetch it
- std::string url = MakeUrl(path);
- node.reset(new HttpFsNode(this, url, cache_content_));
- Error error = node->Init(0);
- if (error)
- return error;
-
- error = node->GetStat(NULL);
- if (error)
- return error;
- }
-
- int obj_mode = node->GetMode();
- if (((a_mode & R_OK) && !(obj_mode & S_IREAD)) ||
- ((a_mode & W_OK) && !(obj_mode & S_IWRITE)) ||
- ((a_mode & X_OK) && !(obj_mode & S_IEXEC))) {
- return EACCES;
- }
-
- return 0;
-}
-
Error HttpFs::Open(const Path& path, int open_flags, ScopedNode* out_node) {
out_node->reset(NULL);
« no previous file with comments | « native_client_sdk/src/libraries/nacl_io/httpfs/http_fs.h ('k') | native_client_sdk/src/libraries/nacl_io/jsfs/js_fs.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698