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

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

Issue 23498015: [NaCl SDK] Support non blocking TCP/UDP (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove event friends, rename EventListenerPoll Created 7 years, 3 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_node_pipe.h
diff --git a/native_client_sdk/src/libraries/nacl_io/mount_node_pipe.h b/native_client_sdk/src/libraries/nacl_io/mount_node_pipe.h
new file mode 100644
index 0000000000000000000000000000000000000000..9e1b66c2fc68ea54cae8ecb80ce5b452bb0915d4
--- /dev/null
+++ b/native_client_sdk/src/libraries/nacl_io/mount_node_pipe.h
@@ -0,0 +1,39 @@
+// 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_NODE_PIPE_H_
+#define LIBRARIES_NACL_IO_MOUNT_NODE_PIPE_H_
+
+#include <map>
+#include <string>
+
+#include "nacl_io/event_emitter_pipe.h"
+#include "nacl_io/mount_node_stream.h"
+
+namespace nacl_io {
+
+class MountNodePipe : public MountNodeStream {
+ public:
+ explicit MountNodePipe(Mount* mnt);
+
+ virtual EventEmitter* GetEventEmitter();
+ virtual Error Read(size_t offs, void *buf, size_t count, int* out_bytes);
+ virtual Error Write(size_t offs, const void *buf,
+ size_t count, int* out_bytes);
+
+protected:
binji 2013/09/12 01:47:57 nit: indent 1 space
noelallen1 2013/09/12 23:19:03 Done.
+ Error WaitOnEvent(uint32_t events, int ms);
binji 2013/09/12 01:47:57 remove, unimplemented
noelallen1 2013/09/12 23:19:03 Done.
+
+ ScopedEmitterPipe pipe_;
+ int read_timeout_;
binji 2013/09/12 01:47:57 remove, these are defined in MountNodeStream.
noelallen1 2013/09/12 23:19:03 Done.
+ int write_timeout_;
+
+ friend class KernelProxy;
binji 2013/09/12 01:47:57 why are these friends needed?
noelallen1 2013/09/12 23:19:03 Done.
+ friend class MountStream;
+};
+
+
+} // namespace nacl_io
+
+#endif // LIBRARIES_NACL_IO_MOUNT_NODE_PIPE_H_

Powered by Google App Engine
This is Rietveld 408576698