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

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

Issue 19717004: [NaCl SDK] Add nacl_io and sdk_util namespaces. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix bad copyright in mount_mem Created 7 years, 5 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_node.h
diff --git a/native_client_sdk/src/libraries/nacl_io/mount_node.h b/native_client_sdk/src/libraries/nacl_io/mount_node.h
index 749f348a0aa374e9e2f428c0f743fd7617882edb..b5b4d26fd80098ee079da76fce25804eec42ffc5 100644
--- a/native_client_sdk/src/libraries/nacl_io/mount_node.h
+++ b/native_client_sdk/src/libraries/nacl_io/mount_node.h
@@ -8,23 +8,23 @@
#include <string>
#include "nacl_io/error.h"
+#include "nacl_io/osdirent.h"
#include "nacl_io/osstat.h"
#include "sdk_util/ref_object.h"
#include "sdk_util/scoped_ref.h"
#include "sdk_util/simple_lock.h"
-struct dirent;
-struct stat;
+namespace nacl_io {
class Mount;
class MountNode;
-typedef ScopedRef<MountNode> ScopedMountNode;
+typedef sdk_util::ScopedRef<MountNode> ScopedMountNode;
// NOTE: The KernelProxy is the only class that should be setting errno. All
// other classes should return Error (as defined by nacl_io/error.h).
-class MountNode : public RefObject {
+class MountNode : public sdk_util::RefObject {
protected:
explicit MountNode(Mount* mount);
virtual ~MountNode();
@@ -97,7 +97,7 @@ class MountNode : public RefObject {
protected:
struct stat stat_;
- SimpleLock node_lock_;
+ sdk_util::SimpleLock node_lock_;
// We use a pointer directly to avoid cycles in the ref count.
// TODO(noelallen) We should change this so it's unnecessary for the node
@@ -113,4 +113,6 @@ class MountNode : public RefObject {
friend class MountNodeDir;
};
+} // namespace nacl_io
+
#endif // LIBRARIES_NACL_IO_MOUNT_NODE_H_
« no previous file with comments | « native_client_sdk/src/libraries/nacl_io/mount_mem.cc ('k') | native_client_sdk/src/libraries/nacl_io/mount_node.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698