Chromium Code Reviews| OLD | NEW |
|---|---|
| (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: | |
|
binji
2013/09/12 01:47:57
nit: indent 1 space
noelallen1
2013/09/12 23:19:03
Done.
| |
| 26 Error WaitOnEvent(uint32_t events, int ms); | |
|
binji
2013/09/12 01:47:57
remove, unimplemented
noelallen1
2013/09/12 23:19:03
Done.
| |
| 27 | |
| 28 ScopedEmitterPipe pipe_; | |
| 29 int read_timeout_; | |
|
binji
2013/09/12 01:47:57
remove, these are defined in MountNodeStream.
noelallen1
2013/09/12 23:19:03
Done.
| |
| 30 int write_timeout_; | |
| 31 | |
| 32 friend class KernelProxy; | |
|
binji
2013/09/12 01:47:57
why are these friends needed?
noelallen1
2013/09/12 23:19:03
Done.
| |
| 33 friend class MountStream; | |
| 34 }; | |
| 35 | |
| 36 | |
| 37 } // namespace nacl_io | |
| 38 | |
| 39 #endif // LIBRARIES_NACL_IO_MOUNT_NODE_PIPE_H_ | |
| OLD | NEW |