OLD | NEW |
1 /* Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2013 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_FACTORY_H_ | 5 #ifndef LIBRARIES_NACL_IO_MOUNT_FACTORY_H_ |
6 #define LIBRARIES_NACL_IO_MOUNT_FACTORY_H_ | 6 #define LIBRARIES_NACL_IO_MOUNT_FACTORY_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "nacl_io/error.h" | 11 #include "nacl_io/error.h" |
12 #include "sdk_util/scoped_ref.h" | 12 #include "sdk_util/scoped_ref.h" |
13 | 13 |
| 14 namespace nacl_io { |
| 15 |
14 class PepperInterface; | 16 class PepperInterface; |
15 class Mount; | 17 class Mount; |
16 | 18 |
17 typedef std::map<std::string, std::string> StringMap_t; | 19 typedef std::map<std::string, std::string> StringMap_t; |
18 | 20 |
19 class MountFactory { | 21 class MountFactory { |
20 public: | 22 public: |
21 virtual ~MountFactory() {} | 23 virtual ~MountFactory() {} |
22 virtual Error CreateMount(int dev, | 24 virtual Error CreateMount(int dev, |
23 StringMap_t& args, | 25 StringMap_t& args, |
24 PepperInterface* ppapi, | 26 PepperInterface* ppapi, |
25 ScopedRef<Mount>* out_mount) = 0; | 27 sdk_util::ScopedRef<Mount>* out_mount) = 0; |
26 }; | 28 }; |
27 | 29 |
| 30 } // namespace nacl_io |
| 31 |
28 #endif // LIBRARIES_NACL_IO_MOUNT_FACTORY_H_ | 32 #endif // LIBRARIES_NACL_IO_MOUNT_FACTORY_H_ |
29 | 33 |
OLD | NEW |