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.
5 #ifndef LIBRARIES_NACL_IO_TYPED_MOUNT_FACTORY_H_
6 #define LIBRARIES_NACL_IO_TYPED_MOUNT_FACTORY_H_
8 #include "nacl_io/mount.h"
9 #include "nacl_io/mount_factory.h"
14 class TypedMountFactory : public MountFactory {
16 virtual Error CreateMount(int dev,
18 PepperInterface* ppapi,
19 ScopedMount* out_mount) {
20 sdk_util::ScopedRef<T> mnt(new T());
21 Error error = mnt->Init(dev, args, ppapi);
30 } // namespace nacl_io
32 #endif // LIBRARIES_NACL_IO_TYPED_MOUNT_FACTORY_H_