Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(21)

Unified Diff: native_client_sdk/src/libraries/nacl_io/mount_socket.h

Issue 22587003: [NaCl SDK] Add UDP and TCP Sockets (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to browser tester fix. Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..f235232c949bf225995c7019ede78ae6f73b7869
--- /dev/null
+++ b/native_client_sdk/src/libraries/nacl_io/mount_socket.h
@@ -0,0 +1,37 @@
+// 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 "nacl_io/mount.h"
+
+namespace nacl_io {
+
+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_
« no previous file with comments | « native_client_sdk/src/libraries/nacl_io/mount_node_udp.cc ('k') | native_client_sdk/src/libraries/nacl_io/mount_socket.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698