| OLD | NEW |
| 1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 * Use of this source code is governed by a BSD-style license that can be | 2 * Use of this source code is governed by a BSD-style license that can be |
| 3 * found in the LICENSE file. | 3 * found in the LICENSE file. |
| 4 */ | 4 */ |
| 5 | |
| 6 #ifndef LIBRARIES_NACL_MOUNTS_MOUNT_NODE_DIR_H_ | 5 #ifndef LIBRARIES_NACL_MOUNTS_MOUNT_NODE_DIR_H_ |
| 7 #define LIBRARIES_NACL_MOUNTS_MOUNT_NODE_DIR_H_ | 6 #define LIBRARIES_NACL_MOUNTS_MOUNT_NODE_DIR_H_ |
| 8 | 7 |
| 9 #include <dirent.h> | |
| 10 | |
| 11 #include <map> | 8 #include <map> |
| 12 #include <string> | 9 #include <string> |
| 13 #include <vector> | |
| 14 | 10 |
| 15 #include "nacl_mounts/mount_node.h" | 11 #include "nacl_mounts/mount_node.h" |
| 16 | 12 |
| 13 struct dirent; |
| 17 | 14 |
| 18 class MountNodeDir : public MountNode { | 15 class MountNodeDir : public MountNode { |
| 19 protected: | 16 protected: |
| 20 MountNodeDir(Mount *mount, int ino, int dev); | 17 MountNodeDir(Mount *mount, int ino, int dev); |
| 21 virtual ~MountNodeDir(); | 18 virtual ~MountNodeDir(); |
| 22 virtual bool Init(int mode, short uid, short gid); | 19 virtual bool Init(int mode, short uid, short gid); |
| 23 | 20 |
| 24 public: | 21 public: |
| 25 typedef std::map<std::string, MountNode*> MountNodeMap_t; | 22 typedef std::map<std::string, MountNode*> MountNodeMap_t; |
| 26 | 23 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 41 void BuildCache(); | 38 void BuildCache(); |
| 42 | 39 |
| 43 private: | 40 private: |
| 44 struct dirent* cache_; | 41 struct dirent* cache_; |
| 45 MountNodeMap_t map_; | 42 MountNodeMap_t map_; |
| 46 | 43 |
| 47 friend class MountMem; | 44 friend class MountMem; |
| 48 }; | 45 }; |
| 49 | 46 |
| 50 #endif // LIBRARIES_NACL_MOUNTS_MOUNT_NODE_DIR_H_ | 47 #endif // LIBRARIES_NACL_MOUNTS_MOUNT_NODE_DIR_H_ |
| 51 | |
| OLD | NEW |