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

Unified Diff: mojo/edk/system/local_message_pipe_endpoint.h

Issue 623883002: Revert "Move mojo edk into mojo/edk" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
« no previous file with comments | « mojo/edk/system/local_data_pipe_unittest.cc ('k') | mojo/edk/system/local_message_pipe_endpoint.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/edk/system/local_message_pipe_endpoint.h
diff --git a/mojo/edk/system/local_message_pipe_endpoint.h b/mojo/edk/system/local_message_pipe_endpoint.h
deleted file mode 100644
index ccff26db6f6157b1f9e895f02af39cf8104eba79..0000000000000000000000000000000000000000
--- a/mojo/edk/system/local_message_pipe_endpoint.h
+++ /dev/null
@@ -1,64 +0,0 @@
-// Copyright 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 MOJO_EDK_SYSTEM_LOCAL_MESSAGE_PIPE_ENDPOINT_H_
-#define MOJO_EDK_SYSTEM_LOCAL_MESSAGE_PIPE_ENDPOINT_H_
-
-#include "base/compiler_specific.h"
-#include "base/macros.h"
-#include "mojo/edk/system/handle_signals_state.h"
-#include "mojo/edk/system/message_in_transit_queue.h"
-#include "mojo/edk/system/message_pipe_endpoint.h"
-#include "mojo/edk/system/system_impl_export.h"
-#include "mojo/edk/system/waiter_list.h"
-
-namespace mojo {
-namespace system {
-
-class MOJO_SYSTEM_IMPL_EXPORT LocalMessagePipeEndpoint
- : public MessagePipeEndpoint {
- public:
- LocalMessagePipeEndpoint();
- virtual ~LocalMessagePipeEndpoint();
-
- // |MessagePipeEndpoint| implementation:
- virtual Type GetType() const override;
- virtual bool OnPeerClose() override;
- virtual void EnqueueMessage(scoped_ptr<MessageInTransit> message) override;
-
- // There's a dispatcher for |LocalMessagePipeEndpoint|s, so we have to
- // implement/override these:
- virtual void Close() override;
- virtual void CancelAllWaiters() override;
- virtual MojoResult ReadMessage(UserPointer<void> bytes,
- UserPointer<uint32_t> num_bytes,
- DispatcherVector* dispatchers,
- uint32_t* num_dispatchers,
- MojoReadMessageFlags flags) override;
- virtual HandleSignalsState GetHandleSignalsState() const override;
- virtual MojoResult AddWaiter(Waiter* waiter,
- MojoHandleSignals signals,
- uint32_t context,
- HandleSignalsState* signals_state) override;
- virtual void RemoveWaiter(Waiter* waiter,
- HandleSignalsState* signals_state) override;
-
- // This is only to be used by |MessagePipe|:
- MessageInTransitQueue* message_queue() { return &message_queue_; }
-
- private:
- bool is_open_;
- bool is_peer_open_;
-
- // Queue of incoming messages.
- MessageInTransitQueue message_queue_;
- WaiterList waiter_list_;
-
- DISALLOW_COPY_AND_ASSIGN(LocalMessagePipeEndpoint);
-};
-
-} // namespace system
-} // namespace mojo
-
-#endif // MOJO_EDK_SYSTEM_LOCAL_MESSAGE_PIPE_ENDPOINT_H_
« no previous file with comments | « mojo/edk/system/local_data_pipe_unittest.cc ('k') | mojo/edk/system/local_message_pipe_endpoint.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698