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_H_ | 5 #ifndef LIBRARIES_NACL_IO_MOUNT_H_ |
6 #define LIBRARIES_NACL_IO_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_io/inode_pool.h" | 11 #include "nacl_io/inode_pool.h" |
12 #include "nacl_io/mount_node.h" | 12 #include "nacl_io/mount_node.h" |
13 #include "nacl_io/path.h" | 13 #include "nacl_io/path.h" |
14 #include "utils/macros.h" | 14 #include "sdk_util/macros.h" |
15 #include "utils/ref_object.h" | 15 #include "sdk_util/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 { |
24 protected: | 24 protected: |
25 // The protected functions are only used internally and will not | 25 // The protected functions are only used internally and will not |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 Mount* Mount::Create(int dev, StringMap_t& args, PepperInterface* ppapi) { | 87 Mount* Mount::Create(int dev, StringMap_t& args, PepperInterface* ppapi) { |
88 Mount* mnt = new M(); | 88 Mount* mnt = new M(); |
89 if (mnt->Init(dev, args, ppapi) == false) { | 89 if (mnt->Init(dev, args, ppapi) == false) { |
90 delete mnt; | 90 delete mnt; |
91 return NULL; | 91 return NULL; |
92 } | 92 } |
93 return mnt; | 93 return mnt; |
94 } | 94 } |
95 | 95 |
96 #endif // LIBRARIES_NACL_IO_MOUNT_H_ | 96 #endif // LIBRARIES_NACL_IO_MOUNT_H_ |
OLD | NEW |