| Index: native_client_sdk/src/libraries/nacl_io/event_emitter_stream.h | 
| diff --git a/native_client_sdk/src/libraries/nacl_io/event_emitter_stream.h b/native_client_sdk/src/libraries/nacl_io/event_emitter_stream.h | 
| new file mode 100644 | 
| index 0000000000000000000000000000000000000000..01b5a5df2aa7e8b9a4c8d2fb37a2892314541e87 | 
| --- /dev/null | 
| +++ b/native_client_sdk/src/libraries/nacl_io/event_emitter_stream.h | 
| @@ -0,0 +1,43 @@ | 
| +// 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_EVENT_EMITTER_STREAM_H_ | 
| +#define LIBRARIES_NACL_IO_EVENT_EMITTER_STREAM_H_ | 
| + | 
| +#include "nacl_io/event_emitter.h" | 
| + | 
| +#include "sdk_util/macros.h" | 
| +#include "sdk_util/scoped_ref.h" | 
| + | 
| +namespace nacl_io { | 
| + | 
| +class EventEmitterStream; | 
| +class FIFOInterface; | 
| +class MountNodeStream; | 
| + | 
| +typedef sdk_util::ScopedRef<EventEmitterStream> ScopedEventEmitterStream; | 
| + | 
| +class EventEmitterStream : public EventEmitter { | 
| + public: | 
| +  EventEmitterStream(); | 
| + | 
| +  void AttachStream(MountNodeStream* stream); | 
| +  void DetachStream(); | 
| + | 
| +  MountNodeStream* stream() { return stream_; } | 
| +  virtual FIFOInterface* rx_fifo() = 0; | 
| +  virtual FIFOInterface* tx_fifo() = 0; | 
| + | 
| +protected: | 
| +  void UpdateStatus_Locked(); | 
| + | 
| +protected: | 
| +  MountNodeStream* stream_; | 
| +  DISALLOW_COPY_AND_ASSIGN(EventEmitterStream); | 
| +}; | 
| + | 
| +}  // namespace nacl_io | 
| + | 
| +#endif  // LIBRARIES_NACL_IO_EVENT_EMITTER_STREAM_H_ | 
| + | 
|  |