Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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_SOCKET_H_ | |
| 6 #define LIBRARIES_NACL_IO_MOUNT_SOCKET_H_ | |
| 7 | |
| 8 #include "nacl_io/ossocket.h" | |
| 9 #ifdef PROVIDES_SOCKET_API | |
| 10 | |
| 11 #include <list> | |
|
binji
2013/08/09 19:28:06
unused
noelallen1
2013/08/09 22:53:22
Done.
| |
| 12 | |
| 13 #include <ppapi/c/pp_resource.h> | |
|
binji
2013/08/09 19:28:06
unused
noelallen1
2013/08/09 22:53:22
Done.
| |
| 14 #include "nacl_io/mount.h" | |
| 15 | |
| 16 namespace nacl_io { | |
| 17 | |
| 18 class MountNodeSocket; | |
|
binji
2013/08/09 19:28:06
unused
noelallen1
2013/08/09 22:53:22
Done.
| |
| 19 | |
| 20 class MountSocket : public Mount { | |
| 21 protected: | |
| 22 MountSocket(); | |
| 23 | |
| 24 private: | |
| 25 virtual Error Access(const Path& path, int a_mode); | |
| 26 virtual Error Open(const Path& path, | |
| 27 int o_flags, | |
| 28 ScopedMountNode* out_node); | |
| 29 virtual Error Unlink(const Path& path); | |
| 30 virtual Error Mkdir(const Path& path, int permissions); | |
| 31 virtual Error Rmdir(const Path& path); | |
| 32 virtual Error Remove(const Path& path); | |
| 33 | |
| 34 private: | |
| 35 friend class KernelProxy; | |
| 36 DISALLOW_COPY_AND_ASSIGN(MountSocket); | |
| 37 }; | |
| 38 | |
| 39 } // namespace nacl_io | |
| 40 | |
| 41 #endif // PROVIDES_SOCKET_API | |
| 42 #endif // LIBRARIES_NACL_IO_MOUNT_SOCKET_H_ | |
| OLD | NEW |