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

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

Issue 1649633002: Remove files that are no longer used in the Port EDK. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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/embedder/test_embedder.cc ('k') | mojo/edk/system/broker_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/edk/system/broker.h
diff --git a/mojo/edk/system/broker.h b/mojo/edk/system/broker.h
deleted file mode 100644
index c8b44643ba6f3d48a7d5c4b69816de9c5df86692..0000000000000000000000000000000000000000
--- a/mojo/edk/system/broker.h
+++ /dev/null
@@ -1,68 +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 MOJO_EDK_SYSTEM_BROKER_H_
-#define MOJO_EDK_SYSTEM_BROKER_H_
-
-#include <stddef.h>
-#include <stdint.h>
-
-#include "mojo/edk/embedder/scoped_platform_handle.h"
-
-namespace mojo {
-namespace edk {
-class MessagePipeDispatcher;
-class RawChannel;
-
-// An interface for communicating to a central "broker" process from each
-// process using the EDK. It serves two purposes:
-// 1) Windows only: brokering to help child processes as they can't create
-// named pipes or duplicate handles.
-// 2) All platforms: support multiplexed messages pipes.
-
-class MOJO_SYSTEM_IMPL_EXPORT Broker {
- public:
- virtual ~Broker() {}
-
-#if defined(OS_WIN)
- // It is safe to call these three methods from any thread.
-
- // Create a PlatformChannelPair.
- virtual void CreatePlatformChannelPair(ScopedPlatformHandle* server,
- ScopedPlatformHandle* client) = 0;
-
- // Converts the given platform handles to tokens.
- // |tokens| should point to memory that is sizeof(uint64_t) * count;
- virtual void HandleToToken(const PlatformHandle* platform_handles,
- size_t count,
- uint64_t* tokens) = 0;
-
- // Converts the given tokens to platformhandles.
- // |handles| should point to memory that is sizeof(HANDLE) * count;
- virtual void TokenToHandle(const uint64_t* tokens,
- size_t count,
- PlatformHandle* handles) = 0;
-#endif
-
- // Multiplexing related methods. They are called from the IO thread only.
-
- // Called by |message_pipe| so that it receives messages for the given
- // globally unique |pipe_id|. When the connection is established,
- // MessagePipeDispatcher::GotNonTransferableChannel is called with the channel
- // that it can use for sending messages.
- virtual void ConnectMessagePipe(uint64_t pipe_id,
- MessagePipeDispatcher* message_pipe) = 0;
-
- // Called by |message_pipe| when it's closing so that its route can be
- // unregistered.
- // It's ok to call this from a callback (i.e. from OnError or
- // GotNonTransferableChannel).
- virtual void CloseMessagePipe(uint64_t pipe_id,
- MessagePipeDispatcher* message_pipe) = 0;
-};
-
-} // namespace edk
-} // namespace mojo
-
-#endif // MOJO_EDK_SYSTEM_BROKER_H_
« no previous file with comments | « mojo/edk/embedder/test_embedder.cc ('k') | mojo/edk/system/broker_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698