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

Unified Diff: native_client_sdk/src/libraries/nacl_io/kernel_handle.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/kernel_handle.h
diff --git a/native_client_sdk/src/libraries/nacl_io/kernel_handle.h b/native_client_sdk/src/libraries/nacl_io/kernel_handle.h
index ad2b9002eb2576d302a282c3bf66a1b0dcb8df90..fd76ddecfc1f0c2e134f7187f3aa1049ce08b90c 100644
--- a/native_client_sdk/src/libraries/nacl_io/kernel_handle.h
+++ b/native_client_sdk/src/libraries/nacl_io/kernel_handle.h
@@ -19,6 +19,9 @@
namespace nacl_io {
+class MountNode;
+class MountNodeSocket;
+
// KernelHandle provides a reference counted container for the open
// file information, such as it's mount, node, access type and offset.
// KernelHandle can only be referenced when the KernelProxy lock is held.
@@ -41,6 +44,10 @@ class KernelHandle : public sdk_util::RefObject {
const ScopedMountNode& node() { return node_; }
const ScopedMount& mount() { return mount_; }
+ // Returns the MountNodeSocket* if this node is a socket otherwise returns
+ // NULL.
+ MountNodeSocket* socket_node();
+
private:
ScopedMount mount_;
ScopedMountNode node_;
« no previous file with comments | « native_client_sdk/src/build_tools/test_projects.py ('k') | native_client_sdk/src/libraries/nacl_io/kernel_handle.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698