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 #ifndef LIBRARIES_NACL_IO_MOUNT_NODE_DIR_H_ | 5 #ifndef LIBRARIES_NACL_IO_MOUNT_NODE_DIR_H_ |
6 #define LIBRARIES_NACL_IO_MOUNT_NODE_DIR_H_ | 6 #define LIBRARIES_NACL_IO_MOUNT_NODE_DIR_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "nacl_io/mount_node.h" | 11 #include "nacl_io/mount_node.h" |
12 | 12 |
13 struct dirent; | 13 namespace nacl_io { |
14 | 14 |
15 class MountDev; | 15 class MountDev; |
16 class MountHtml5Fs; | 16 class MountHtml5Fs; |
17 class MountHttp; | 17 class MountHttp; |
18 class MountMem; | 18 class MountMem; |
19 class MountNodeDir; | 19 class MountNodeDir; |
20 | 20 |
21 typedef ScopedRef<MountNodeDir> ScopedMountNodeDir; | 21 typedef sdk_util::ScopedRef<MountNodeDir> ScopedMountNodeDir; |
22 | 22 |
23 class MountNodeDir : public MountNode { | 23 class MountNodeDir : public MountNode { |
24 protected: | 24 protected: |
25 explicit MountNodeDir(Mount* mnt); | 25 explicit MountNodeDir(Mount* mnt); |
26 virtual ~MountNodeDir(); | 26 virtual ~MountNodeDir(); |
27 | 27 |
28 public: | 28 public: |
29 typedef std::map<std::string, ScopedMountNode> MountNodeMap_t; | 29 typedef std::map<std::string, ScopedMountNode> MountNodeMap_t; |
30 | 30 |
31 virtual Error FTruncate(off_t size); | 31 virtual Error FTruncate(off_t size); |
(...skipping 18 matching lines...) Expand all Loading... |
50 private: | 50 private: |
51 struct dirent* cache_; | 51 struct dirent* cache_; |
52 MountNodeMap_t map_; | 52 MountNodeMap_t map_; |
53 | 53 |
54 friend class MountDev; | 54 friend class MountDev; |
55 friend class MountMem; | 55 friend class MountMem; |
56 friend class MountHttp; | 56 friend class MountHttp; |
57 friend class MountHtml5Fs; | 57 friend class MountHtml5Fs; |
58 }; | 58 }; |
59 | 59 |
| 60 } // namespace nacl_io |
| 61 |
60 #endif // LIBRARIES_NACL_IO_MOUNT_NODE_DIR_H_ | 62 #endif // LIBRARIES_NACL_IO_MOUNT_NODE_DIR_H_ |
OLD | NEW |