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

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

Issue 1676913002: [mojo] Delete third_party/mojo (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: let's try that again Created 4 years, 10 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: third_party/mojo/src/mojo/edk/system/local_message_pipe_endpoint.h
diff --git a/third_party/mojo/src/mojo/edk/system/local_message_pipe_endpoint.h b/third_party/mojo/src/mojo/edk/system/local_message_pipe_endpoint.h
deleted file mode 100644
index c2736317b40d1aa49cd5d8f4d0c85ee92a0e14d7..0000000000000000000000000000000000000000
--- a/third_party/mojo/src/mojo/edk/system/local_message_pipe_endpoint.h
+++ /dev/null
@@ -1,66 +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 THIRD_PARTY_MOJO_SRC_MOJO_EDK_SYSTEM_LOCAL_MESSAGE_PIPE_ENDPOINT_H_
-#define THIRD_PARTY_MOJO_SRC_MOJO_EDK_SYSTEM_LOCAL_MESSAGE_PIPE_ENDPOINT_H_
-
-#include "mojo/public/cpp/system/macros.h"
-#include "third_party/mojo/src/mojo/edk/system/awakable_list.h"
-#include "third_party/mojo/src/mojo/edk/system/handle_signals_state.h"
-#include "third_party/mojo/src/mojo/edk/system/message_in_transit_queue.h"
-#include "third_party/mojo/src/mojo/edk/system/message_pipe_endpoint.h"
-#include "third_party/mojo/src/mojo/edk/system/system_impl_export.h"
-
-namespace mojo {
-namespace system {
-
-class MOJO_SYSTEM_IMPL_EXPORT LocalMessagePipeEndpoint final
- : public MessagePipeEndpoint {
- public:
- // If |message_queue| is non-null, its contents will be taken as the queue of
- // (already-received) messages.
- explicit LocalMessagePipeEndpoint(
- MessageInTransitQueue* message_queue = nullptr);
- ~LocalMessagePipeEndpoint() override;
-
- // |MessagePipeEndpoint| implementation:
- Type GetType() const override;
- bool OnPeerClose() override;
- void EnqueueMessage(scoped_ptr<MessageInTransit> message) override;
-
- // There's a dispatcher for |LocalMessagePipeEndpoint|s, so we have to
- // implement/override these:
- void Close() override;
- void CancelAllAwakables() override;
- MojoResult ReadMessage(UserPointer<void> bytes,
- UserPointer<uint32_t> num_bytes,
- DispatcherVector* dispatchers,
- uint32_t* num_dispatchers,
- MojoReadMessageFlags flags) override;
- HandleSignalsState GetHandleSignalsState() const override;
- MojoResult AddAwakable(Awakable* awakable,
- MojoHandleSignals signals,
- uintptr_t context,
- HandleSignalsState* signals_state) override;
- void RemoveAwakable(Awakable* awakable,
- 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_;
- AwakableList awakable_list_;
-
- MOJO_DISALLOW_COPY_AND_ASSIGN(LocalMessagePipeEndpoint);
-};
-
-} // namespace system
-} // namespace mojo
-
-#endif // THIRD_PARTY_MOJO_SRC_MOJO_EDK_SYSTEM_LOCAL_MESSAGE_PIPE_ENDPOINT_H_

Powered by Google App Engine
This is Rietveld 408576698