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

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

Issue 12194030: Rename mount (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix whitespace 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_dir.h
diff --git a/native_client_sdk/src/libraries/nacl_mounts/mount_node_dir.h b/native_client_sdk/src/libraries/nacl_mounts/mount_node_dir.h
deleted file mode 100644
index 4a32831c4ac5103074a9faa248694f1f27043ea6..0000000000000000000000000000000000000000
--- a/native_client_sdk/src/libraries/nacl_mounts/mount_node_dir.h
+++ /dev/null
@@ -1,54 +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_DIR_H_
-#define LIBRARIES_NACL_MOUNTS_MOUNT_NODE_DIR_H_
-
-#include <map>
-#include <string>
-
-#include "nacl_mounts/mount_node.h"
-
-struct dirent;
-
-class MountDev;
-class MountHtml5Fs;
-class MountHttp;
-class MountMem;
-
-class MountNodeDir : public MountNode {
- protected:
- explicit MountNodeDir(Mount* mnt);
- virtual ~MountNodeDir();
-
- public:
- typedef std::map<std::string, MountNode*> MountNodeMap_t;
-
- virtual int GetDents(size_t offs, struct dirent* pdir, size_t count);
- virtual int Read(size_t offs, void *buf, size_t count);
- virtual int Truncate(size_t size);
- virtual int Write(size_t offs, void *buf, size_t count);
-
- // Adds a finds or adds a directory entry as an INO, updating the refcount
- virtual int AddChild(const std::string& name, MountNode *node);
- virtual int RemoveChild(const std::string& name);
- virtual MountNode* FindChild(const std::string& name);
- virtual int ChildCount();
-
-
-protected:
- void ClearCache();
- void BuildCache();
-
-private:
- struct dirent* cache_;
- MountNodeMap_t map_;
-
- friend class MountDev;
- friend class MountMem;
- friend class MountHttp;
- friend class MountHtml5Fs;
-};
-
-#endif // LIBRARIES_NACL_MOUNTS_MOUNT_NODE_DIR_H_

Powered by Google App Engine
This is Rietveld 408576698