OLD | NEW |
| (Empty) |
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 | |
3 * found in the LICENSE file. | |
4 */ | |
5 #ifndef LIBRARIES_NACL_MOUNTS_MOUNT_DEV_H_ | |
6 #define LIBRARIES_NACL_MOUNTS_MOUNT_DEV_H_ | |
7 | |
8 #include "nacl_mounts/mount.h" | |
9 | |
10 class MountNode; | |
11 | |
12 class MountDev : public Mount { | |
13 public: | |
14 virtual MountNode *Open(const Path& path, int mode); | |
15 | |
16 virtual int Unlink(const Path& path); | |
17 virtual int Mkdir(const Path& path, int permissions); | |
18 virtual int Rmdir(const Path& path); | |
19 virtual int Remove(const Path& path); | |
20 | |
21 protected: | |
22 MountDev(); | |
23 | |
24 virtual bool Init(int dev, StringMap_t& args, PepperInterface* ppapi); | |
25 virtual void Destroy(); | |
26 | |
27 private: | |
28 MountNode* root_; | |
29 MountNode* null_node_; | |
30 MountNode* zero_node_; | |
31 MountNode* random_node_; | |
32 MountNode* console0_node_; | |
33 MountNode* console1_node_; | |
34 MountNode* console2_node_; | |
35 MountNode* console3_node_; | |
36 MountNode* tty_node_; | |
37 | |
38 friend class Mount; | |
39 }; | |
40 | |
41 #endif // LIBRARIES_NACL_MOUNTS_MOUNT_DEV_H_ | |
OLD | NEW |