| OLD | NEW |
| 1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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_PASSTHROUGH_H_ | 5 #ifndef LIBRARIES_NACL_IO_MOUNT_PASSTHROUGH_H_ |
| 6 #define LIBRARIES_NACL_IO_MOUNT_PASSTHROUGH_H_ | 6 #define LIBRARIES_NACL_IO_MOUNT_PASSTHROUGH_H_ |
| 7 | 7 |
| 8 #include "nacl_io/mount.h" | 8 #include "nacl_io/mount.h" |
| 9 #include "nacl_io/typed_mount_factory.h" | 9 #include "nacl_io/typed_mount_factory.h" |
| 10 | 10 |
| 11 class MountPassthrough : public Mount { | 11 class MountPassthrough : public Mount { |
| 12 protected: | 12 protected: |
| 13 MountPassthrough(); | 13 MountPassthrough(); |
| 14 | 14 |
| 15 virtual Error Init(int dev, StringMap_t& args, PepperInterface* ppapi); | 15 virtual Error Init(int dev, StringMap_t& args, PepperInterface* ppapi); |
| 16 virtual void Destroy(); | 16 virtual void Destroy(); |
| 17 | 17 |
| 18 public: | 18 public: |
| 19 virtual Error Access(const Path& path, int a_mode); | 19 virtual Error Access(const Path& path, int a_mode); |
| 20 virtual Error Open(const Path& path, int mode, ScopedMountNode* out_node); | 20 virtual Error Open(const Path& path, int mode, ScopedMountNode* out_node); |
| 21 virtual Error OpenResource(const Path& path, ScopedMountNode* out_node); | 21 virtual Error OpenResource(const Path& path, ScopedMountNode* out_node); |
| 22 virtual Error Unlink(const Path& path); | 22 virtual Error Unlink(const Path& path); |
| 23 virtual Error Mkdir(const Path& path, int perm); | 23 virtual Error Mkdir(const Path& path, int perm); |
| 24 virtual Error Rmdir(const Path& path); | 24 virtual Error Rmdir(const Path& path); |
| 25 virtual Error Remove(const Path& path); | 25 virtual Error Remove(const Path& path); |
| 26 | 26 |
| 27 private: | 27 private: |
| 28 friend class TypedMountFactory<MountPassthrough>; | 28 friend class TypedMountFactory<MountPassthrough>; |
| 29 DISALLOW_COPY_AND_ASSIGN(MountPassthrough); | 29 DISALLOW_COPY_AND_ASSIGN(MountPassthrough); |
| 30 }; | 30 }; |
| 31 | 31 |
| 32 #endif // LIBRARIES_NACL_IO_MOUNT_PASSTHROUGH_H_ | 32 #endif // LIBRARIES_NACL_IO_MOUNT_PASSTHROUGH_H_ |
| OLD | NEW |