| 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: | 
|  | 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_ | 
| OLD | NEW | 
|---|