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

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

Issue 12194030: Rename mount (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix c file. Created 7 years, 10 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_node.h
diff --git a/native_client_sdk/src/libraries/nacl_mounts/mount_node.h b/native_client_sdk/src/libraries/nacl_mounts/mount_node.h
deleted file mode 100644
index c52e765cf162ba8413c865c69bb94c4d7096f327..0000000000000000000000000000000000000000
--- a/native_client_sdk/src/libraries/nacl_mounts/mount_node.h
+++ /dev/null
@@ -1,75 +0,0 @@
-/* Copyright (c) 2012 The Chromium Authors. All rights reserved.
- * Use of this source code is governed by a BSD-style license that can be
- * found in the LICENSE file.
- */
-#ifndef LIBRARIES_NACL_MOUNTS_MOUNT_NODE_H_
-#define LIBRARIES_NACL_MOUNTS_MOUNT_NODE_H_
-
-#include <string>
-
-#include "nacl_mounts/osstat.h"
-#include "utils/ref_object.h"
-
-struct dirent;
-struct stat;
-class Mount;
-
-class MountNode : public RefObject {
- protected:
- explicit MountNode(Mount* mount);
- virtual ~MountNode();
-
- protected:
- // Initialize with node specific flags, in this case stat permissions.
- virtual bool Init(int flags);
- virtual void Destroy();
-
- public:
- // Normal OS operations on a node (file), can be called by the kernel
- // directly so it must lock and unlock appropriately. These functions
- // must not be called by the mount.
- virtual int FSync();
- virtual int GetDents(size_t offs, struct dirent* pdir, size_t count);
- virtual int GetStat(struct stat* stat);
- virtual int Ioctl(int request, char* arg);
- virtual int Read(size_t offs, void* buf, size_t count);
- virtual int Truncate(size_t size);
- virtual int Write(size_t offs, const void* buf, size_t count);
-
- virtual int GetLinks();
- virtual int GetMode();
- virtual int GetType();
- virtual size_t GetSize();
- virtual bool IsaDir();
- virtual bool IsaFile();
- virtual bool IsaTTY();
-
- protected:
- // Directory operations on the node are done by the Mount. The mount's lock
- // must be held while these calls are made.
-
- // Adds or removes a directory entry updating the link numbers and refcount
- virtual int AddChild(const std::string& name, MountNode *node);
- virtual int RemoveChild(const std::string& name);
-
- // Find a child and return it without updating the refcount
- virtual MountNode* FindChild(const std::string& name);
- virtual int ChildCount();
-
- // Update the link count
- virtual void Link();
- virtual void Unlink();
-
-protected:
- struct stat stat_;
- Mount* mount_;
-
- friend class Mount;
- friend class MountDev;
- friend class MountHtml5Fs;
- friend class MountHttp;
- friend class MountMem;
- friend class MountNodeDir;
-};
-
-#endif // LIBRARIES_NACL_MOUNTS_MOUNT_NODE_H_

Powered by Google App Engine
This is Rietveld 408576698