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 | 9 |
10 class MountPassthrough : public Mount { | 10 class MountPassthrough : public Mount { |
11 protected: | 11 protected: |
12 MountPassthrough(); | 12 MountPassthrough(); |
13 | 13 |
14 virtual bool Init(int dev, StringMap_t& args, PepperInterface* ppapi); | 14 virtual Error Init(int dev, StringMap_t& args, PepperInterface* ppapi); |
15 virtual void Destroy(); | 15 virtual void Destroy(); |
16 | 16 |
17 public: | 17 public: |
18 virtual MountNode *Open(const Path& path, int mode); | 18 virtual Error Open(const Path& path, int mode, MountNode** out_node); |
19 virtual MountNode *OpenResource(const Path& path); | 19 virtual Error OpenResource(const Path& path, MountNode** out_node); |
20 virtual int Unlink(const Path& path); | 20 virtual Error Unlink(const Path& path); |
21 virtual int Mkdir(const Path& path, int perm); | 21 virtual Error Mkdir(const Path& path, int perm); |
22 virtual int Rmdir(const Path& path); | 22 virtual Error Rmdir(const Path& path); |
23 virtual int Remove(const Path& path); | 23 virtual Error Remove(const Path& path); |
24 | 24 |
25 private: | 25 private: |
26 friend class Mount; | 26 friend class Mount; |
27 DISALLOW_COPY_AND_ASSIGN(MountPassthrough); | 27 DISALLOW_COPY_AND_ASSIGN(MountPassthrough); |
28 }; | 28 }; |
29 | 29 |
30 #endif // LIBRARIES_NACL_IO_MOUNT_PASSTHROUGH_H_ | 30 #endif // LIBRARIES_NACL_IO_MOUNT_PASSTHROUGH_H_ |
OLD | NEW |