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

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 54e15a14009e75a3437d73255fa67e548924c0e5..3d6276d4c0b35ac9fb7be10dbefbeafea93be3cf 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,34 +41,6 @@ std::string NormalizeHeaderKey(const std::string& s) {
return result;
}
-Error HttpFs::Access(const Path& path, int a_mode) {
- ScopedNode node;
- NodeMap_t::iterator iter = node_cache_.find(path.Join());
- if (iter == node_cache_.end()) {
- // 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;
- } else {
- node = iter->second;
- }
-
- 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);

Powered by Google App Engine
This is Rietveld 408576698