Index: native_client_sdk/src/libraries/nacl_io/mount_socket.h |
diff --git a/native_client_sdk/src/libraries/nacl_io/mount_socket.h b/native_client_sdk/src/libraries/nacl_io/mount_socket.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..fc2c28aba53b19e5fec0be55be8e371b212cdabd |
--- /dev/null |
+++ b/native_client_sdk/src/libraries/nacl_io/mount_socket.h |
@@ -0,0 +1,42 @@ |
+// Copyright (c) 2013 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef LIBRARIES_NACL_IO_MOUNT_SOCKET_H_ |
+#define LIBRARIES_NACL_IO_MOUNT_SOCKET_H_ |
+ |
+#include "nacl_io/ossocket.h" |
+#ifdef PROVIDES_SOCKET_API |
+ |
+#include <list> |
binji
2013/08/09 19:28:06
unused
noelallen1
2013/08/09 22:53:22
Done.
|
+ |
+#include <ppapi/c/pp_resource.h> |
binji
2013/08/09 19:28:06
unused
noelallen1
2013/08/09 22:53:22
Done.
|
+#include "nacl_io/mount.h" |
+ |
+namespace nacl_io { |
+ |
+class MountNodeSocket; |
binji
2013/08/09 19:28:06
unused
noelallen1
2013/08/09 22:53:22
Done.
|
+ |
+class MountSocket : public Mount { |
+ protected: |
+ MountSocket(); |
+ |
+ private: |
+ virtual Error Access(const Path& path, int a_mode); |
+ virtual Error Open(const Path& path, |
+ int o_flags, |
+ ScopedMountNode* out_node); |
+ virtual Error Unlink(const Path& path); |
+ virtual Error Mkdir(const Path& path, int permissions); |
+ virtual Error Rmdir(const Path& path); |
+ virtual Error Remove(const Path& path); |
+ |
+ private: |
+ friend class KernelProxy; |
+ DISALLOW_COPY_AND_ASSIGN(MountSocket); |
+}; |
+ |
+} // namespace nacl_io |
+ |
+#endif // PROVIDES_SOCKET_API |
+#endif // LIBRARIES_NACL_IO_MOUNT_SOCKET_H_ |