| 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 class PepperInterface; | 14 class PepperInterface; |
| 15 class Mount; | 15 class Mount; |
| 16 | 16 |
| 17 typedef std::map<std::string, std::string> StringMap_t; | 17 typedef std::map<std::string, std::string> StringMap_t; |
| 18 | 18 |
| 19 class MountFactory { | 19 class MountFactory { |
| 20 public: | 20 public: |
| 21 virtual ~MountFactory() {} | 21 virtual ~MountFactory() {} |
| 22 virtual Error CreateMount(int dev, | 22 virtual Error CreateMount(int dev, |
| 23 StringMap_t& args, | 23 StringMap_t& args, |
| 24 PepperInterface* ppapi, | 24 PepperInterface* ppapi, |
| 25 ScopedRef<Mount>* out_mount) = 0; | 25 ScopedRef<Mount>* out_mount) = 0; |
| 26 }; | 26 }; |
| 27 | 27 |
| 28 #endif // LIBRARIES_NACL_IO_MOUNT_FACTORY_H_ | 28 #endif // LIBRARIES_NACL_IO_MOUNT_FACTORY_H_ |
| 29 | 29 |
| OLD | NEW |