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

Unified Diff: native_client_sdk/src/libraries/nacl_io/html5fs/html5_fs.h

Issue 605513002: [NaCl SDK] nacl_io: Replace allocated ino with hash of path. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix nits 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/html5fs/html5_fs.h
diff --git a/native_client_sdk/src/libraries/nacl_io/html5fs/html5_fs.h b/native_client_sdk/src/libraries/nacl_io/html5fs/html5_fs.h
index bf4c249a5590ea130eaf509667c0366f966e3715..c075aa64d2f93d09cbde13ab26d059d2585df127 100644
--- a/native_client_sdk/src/libraries/nacl_io/html5fs/html5_fs.h
+++ b/native_client_sdk/src/libraries/nacl_io/html5fs/html5_fs.h
@@ -28,6 +28,12 @@ class Html5Fs : public Filesystem {
PP_Resource filesystem_resource() { return filesystem_resource_; }
+ virtual void OnNodeCreated(Node* node);
+ virtual void OnNodeDestroyed(Node* node);
+
+ static ino_t HashPathSegment(ino_t hash, const char *str, size_t len);
+ static ino_t HashPath(const Path& path);
+
protected:
static const int REMOVE_DIR = 1;
static const int REMOVE_FILE = 2;
« no previous file with comments | « native_client_sdk/src/libraries/nacl_io/filesystem.h ('k') | native_client_sdk/src/libraries/nacl_io/html5fs/html5_fs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698