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_MOUNTS_MOUNT_MEM_H_ | 5 #ifndef LIBRARIES_NACL_IO_MOUNT_MEM_H_ |
6 #define LIBRARIES_NACL_MOUNTS_MOUNT_MEM_H_ | 6 #define LIBRARIES_NACL_IO_MOUNT_MEM_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "nacl_mounts/mount.h" | 11 #include "nacl_io/mount.h" |
12 | 12 |
13 class MountMem : public Mount { | 13 class MountMem : public Mount { |
14 protected: | 14 protected: |
15 MountMem(); | 15 MountMem(); |
16 | 16 |
17 virtual bool Init(int dev, StringMap_t& args, PepperInterface* ppapi); | 17 virtual bool Init(int dev, StringMap_t& args, PepperInterface* ppapi); |
18 virtual void Destroy(); | 18 virtual void Destroy(); |
19 | 19 |
20 // The protected functions are only used internally and will not | 20 // The protected functions are only used internally and will not |
21 // acquire or release the mount's lock themselves. The caller is | 21 // acquire or release the mount's lock themselves. The caller is |
(...skipping 22 matching lines...) Expand all Loading... |
44 | 44 |
45 int RemoveInternal(const Path& path, int remove_type); | 45 int RemoveInternal(const Path& path, int remove_type); |
46 | 46 |
47 MountNode* root_; | 47 MountNode* root_; |
48 size_t max_ino_; | 48 size_t max_ino_; |
49 | 49 |
50 friend class Mount; | 50 friend class Mount; |
51 DISALLOW_COPY_AND_ASSIGN(MountMem); | 51 DISALLOW_COPY_AND_ASSIGN(MountMem); |
52 }; | 52 }; |
53 | 53 |
54 #endif // LIBRARIES_NACL_MOUNTS_MOUNT_MEM_H_ | 54 #endif // LIBRARIES_NACL_IO_MOUNT_MEM_H_ |
OLD | NEW |