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_H_ | 5 #ifndef LIBRARIES_NACL_IO_MOUNT_H_ |
6 #define LIBRARIES_NACL_MOUNTS_MOUNT_H_ | 6 #define LIBRARIES_NACL_IO_MOUNT_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "nacl_mounts/inode_pool.h" | 11 #include "nacl_io/inode_pool.h" |
12 #include "nacl_mounts/mount_node.h" | 12 #include "nacl_io/mount_node.h" |
13 #include "nacl_mounts/path.h" | 13 #include "nacl_io/path.h" |
14 #include "utils/macros.h" | 14 #include "utils/macros.h" |
15 #include "utils/ref_object.h" | 15 #include "utils/ref_object.h" |
16 | 16 |
17 class MountNode; | 17 class MountNode; |
18 class PepperInterface; | 18 class PepperInterface; |
19 | 19 |
20 typedef std::map<std::string, std::string> StringMap_t; | 20 typedef std::map<std::string, std::string> StringMap_t; |
21 | 21 |
22 | 22 |
23 class Mount : public RefObject { | 23 class Mount : public RefObject { |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 /*static*/ | 82 /*static*/ |
83 Mount* Mount::Create(int dev, StringMap_t& args, PepperInterface* ppapi) { | 83 Mount* Mount::Create(int dev, StringMap_t& args, PepperInterface* ppapi) { |
84 Mount* mnt = new M(); | 84 Mount* mnt = new M(); |
85 if (mnt->Init(dev, args, ppapi) == false) { | 85 if (mnt->Init(dev, args, ppapi) == false) { |
86 delete mnt; | 86 delete mnt; |
87 return NULL; | 87 return NULL; |
88 } | 88 } |
89 return mnt; | 89 return mnt; |
90 } | 90 } |
91 | 91 |
92 #endif // LIBRARIES_NACL_MOUNTS_MOUNT_H_ | 92 #endif // LIBRARIES_NACL_IO_MOUNT_H_ |
OLD | NEW |