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

Unified Diff: native_client_sdk/src/libraries/nacl_mounts/mount.h

Issue 12166002: Cleanup (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 side-by-side diff with in-line comments
Download patch
Index: native_client_sdk/src/libraries/nacl_mounts/mount.h
diff --git a/native_client_sdk/src/libraries/nacl_mounts/mount.h b/native_client_sdk/src/libraries/nacl_mounts/mount.h
index 108fa7b4b9cdd8c67773d31cb97d5d378a7b37d5..6f1cb17c8a44ec96bb8baa3ac54f2a7cb31e3f17 100644
--- a/native_client_sdk/src/libraries/nacl_mounts/mount.h
+++ b/native_client_sdk/src/libraries/nacl_mounts/mount.h
@@ -8,6 +8,7 @@
#include <map>
#include <string>
+#include "nacl_mounts/inode_pool.h"
#include "nacl_mounts/mount_node.h"
#include "nacl_mounts/path.h"
#include "utils/macros.h"
@@ -56,18 +57,14 @@ class Mount : public RefObject {
// Convert from R,W,R/W open flags to STAT permission flags
static int OpenModeToPermission(int mode);
- unsigned int num_nodes() const { return num_nodes_; }
-
- // Should only be called by MountNode when a new node is created with this
- // Mount as its parent.
- void OnNodeCreated();
- void OnNodeDestroyed();
+ void OnNodeCreated(MountNode* node) ;
+ void OnNodeDestroyed(MountNode* node);
protected:
// Device number for the mount.
int dev_;
- unsigned int num_nodes_;
PepperInterface* ppapi_; // Weak reference.
+ INodePool inode_pool_;
private:
// May only be called by the KernelProxy when the Kernel's

Powered by Google App Engine
This is Rietveld 408576698