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
3 // found in the LICENSE file.
5 #ifndef LIBRARIES_NACL_IO_MOUNT_DEV_H_
6 #define LIBRARIES_NACL_IO_MOUNT_DEV_H_
8 #include "nacl_io/mount.h"
9 #include "nacl_io/typed_mount_factory.h"
15 class MountDev : public Mount {
17 virtual Error Access(const Path& path, int a_mode);
18 virtual Error Open(const Path& path,
20 ScopedMountNode* out_node);
21 virtual Error Unlink(const Path& path);
22 virtual Error Mkdir(const Path& path, int permissions);
23 virtual Error Rmdir(const Path& path);
24 virtual Error Remove(const Path& path);
29 virtual Error Init(int dev, StringMap_t& args, PepperInterface* ppapi);
32 ScopedMountNode root_;
34 friend class TypedMountFactory<MountDev>;
35 DISALLOW_COPY_AND_ASSIGN(MountDev);
38 } // namespace nacl_io
40 #endif // LIBRARIES_NACL_IO_MOUNT_DEV_H_