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 3 // found in the LICENSE file. 4 5 #ifndef LIBRARIES_NACL_IO_MOUNT_FACTORY_H_ 6 #define LIBRARIES_NACL_IO_MOUNT_FACTORY_H_ 7 8 #include <errno.h> 9 10 #include "nacl_io/error.h" 11 #include "sdk_util/scoped_ref.h" 12 13 namespace nacl_io { 14 15 class PepperInterface; 16 class Mount; 17 struct MountInitArgs; 18 19 class MountFactory { 20 public: 21 virtual ~MountFactory() {} 22 virtual Error CreateMount(const MountInitArgs& args, 23 sdk_util::ScopedRef<Mount>* out_mount) = 0; 24 }; 25 26 } // namespace nacl_io 27 28 #endif // LIBRARIES_NACL_IO_MOUNT_FACTORY_H_ 29 30