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

Unified Diff: native_client_sdk/src/libraries/nacl_io/socket/unix_event_emitter.h

Issue 1373563003: Revert of [NaCl SDK] nacl_io: Add support for basic socketpairs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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/socket/unix_event_emitter.h
diff --git a/native_client_sdk/src/libraries/nacl_io/socket/unix_event_emitter.h b/native_client_sdk/src/libraries/nacl_io/socket/unix_event_emitter.h
deleted file mode 100644
index f8c952dd0e3ab905bb596a4d197825c16b9c34e5..0000000000000000000000000000000000000000
--- a/native_client_sdk/src/libraries/nacl_io/socket/unix_event_emitter.h
+++ /dev/null
@@ -1,50 +0,0 @@
-// Copyright 2015 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_SOCKET_UNIX_EVENT_EMITTER_H_
-#define LIBRARIES_NACL_IO_SOCKET_UNIX_EVENT_EMITTER_H_
-
-#include "nacl_io/fifo_char.h"
-#include "nacl_io/stream/stream_event_emitter.h"
-
-#include "sdk_util/macros.h"
-#include "sdk_util/scoped_ref.h"
-#include "sdk_util/simple_lock.h"
-
-namespace nacl_io {
-
-class UnixEventEmitter;
-class Node;
-
-typedef sdk_util::ScopedRef<UnixEventEmitter> ScopedUnixEventEmitter;
-
-class UnixEventEmitter : public StreamEventEmitter {
- public:
- uint32_t ReadIn_Locked(char* buffer, uint32_t len);
- uint32_t WriteOut_Locked(const char* buffer, uint32_t len);
-
- uint32_t BytesInOutputFIFO();
- uint32_t SpaceInInputFIFO();
-
- virtual ScopedUnixEventEmitter GetPeerEmitter() = 0;
-
- static ScopedUnixEventEmitter MakeUnixEventEmitter(size_t size);
-
- protected:
- UnixEventEmitter() {}
-
- // Probably only need the master's lock.
- virtual const sdk_util::SimpleLock& GetFifoLock() = 0;
- virtual FIFOInterface* in_fifo() { return in_fifoc(); }
- virtual FIFOInterface* out_fifo() { return out_fifoc(); }
- virtual FIFOChar* in_fifoc() = 0;
- virtual FIFOChar* out_fifoc() = 0;
-
- private:
- DISALLOW_COPY_AND_ASSIGN(UnixEventEmitter);
-};
-
-} // namespace nacl_io
-
-#endif // LIBRARIES_NACL_IO_SOCKET_UNIX_EVENT_EMITTER_H_

Powered by Google App Engine
This is Rietveld 408576698