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

Side by Side 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: Merge 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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_NODE_PIPE_H_
6 #define LIBRARIES_NACL_IO_MOUNT_NODE_PIPE_H_
7
8 #include <map>
9 #include <string>
10
11 #include "nacl_io/event_emitter_pipe.h"
12 #include "nacl_io/mount_node_stream.h"
13
14 namespace nacl_io {
15
16 class MountNodePipe : public MountNodeStream {
17 public:
18 explicit MountNodePipe(Mount* mnt);
19
20 virtual EventEmitter* GetEventEmitter();
21 virtual Error Read(size_t offs, void *buf, size_t count, int* out_bytes);
22 virtual Error Write(size_t offs, const void *buf,
23 size_t count, int* out_bytes);
24
25 protected:
26 ScopedEventEmitterPipe pipe_;
27
28 friend class KernelProxy;
29 friend class MountStream;
30 };
31
32
33 } // namespace nacl_io
34
35 #endif // LIBRARIES_NACL_IO_MOUNT_NODE_PIPE_H_
OLDNEW
« no previous file with comments | « native_client_sdk/src/libraries/nacl_io/mount_node_char.h ('k') | native_client_sdk/src/libraries/nacl_io/mount_node_pipe.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698